mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-11-01 13:23:53 +00:00
Force full refresh on iframes
This commit is contained in:
1 parent
e529a20fa1
commit
4f55157898
2 files changed
+6
-6
No files matched your search
@@ -6,12 +6,12 @@
|
||||
window.setInterval(function() {
|
||||
document.getElementById('articles-1').style.zIndex = "2";
|
||||
document.getElementById('articles-2').style.zIndex = "1";
|
||||
document.getElementById('articles-2').contentWindow.location.reload();
|
||||
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload();
|
||||
document.getElementById('articles-2').contentWindow.location.reload(true);
|
||||
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload(true);
|
||||
setTimeout(function() {
|
||||
document.getElementById('articles-2').style.zIndex = "2";
|
||||
document.getElementById('articles-1').style.zIndex = "1";
|
||||
document.getElementById('articles-1').contentWindow.location.reload();
|
||||
document.getElementById('articles-1').contentWindow.location.reload(true);
|
||||
}, 10000)
|
||||
}, 20000);
|
||||
</script>
|
||||
|
||||
+3
-3
@@ -12,12 +12,12 @@ layout: none
|
||||
window.setInterval(function() {
|
||||
document.getElementById('articles-1').style.zIndex = "2";
|
||||
document.getElementById('articles-2').style.zIndex = "1";
|
||||
document.getElementById('articles-2').contentWindow.location.reload();
|
||||
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload();
|
||||
document.getElementById('articles-2').contentWindow.location.reload(true);
|
||||
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload(true);
|
||||
setTimeout(function() {
|
||||
document.getElementById('articles-2').style.zIndex = "2";
|
||||
document.getElementById('articles-1').style.zIndex = "1";
|
||||
document.getElementById('articles-1').contentWindow.location.reload();
|
||||
document.getElementById('articles-1').contentWindow.location.reload(true);
|
||||
}, 10000)
|
||||
}, 20000);
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user