mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 11:27:06 +00:00
Force full refresh on iframes
This commit is contained in:
@@ -6,12 +6,12 @@
|
|||||||
window.setInterval(function() {
|
window.setInterval(function() {
|
||||||
document.getElementById('articles-1').style.zIndex = "2";
|
document.getElementById('articles-1').style.zIndex = "2";
|
||||||
document.getElementById('articles-2').style.zIndex = "1";
|
document.getElementById('articles-2').style.zIndex = "1";
|
||||||
document.getElementById('articles-2').contentWindow.location.reload();
|
document.getElementById('articles-2').contentWindow.location.reload(true);
|
||||||
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload();
|
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload(true);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
document.getElementById('articles-2').style.zIndex = "2";
|
document.getElementById('articles-2').style.zIndex = "2";
|
||||||
document.getElementById('articles-1').style.zIndex = "1";
|
document.getElementById('articles-1').style.zIndex = "1";
|
||||||
document.getElementById('articles-1').contentWindow.location.reload();
|
document.getElementById('articles-1').contentWindow.location.reload(true);
|
||||||
}, 10000)
|
}, 10000)
|
||||||
}, 20000);
|
}, 20000);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ layout: none
|
|||||||
window.setInterval(function() {
|
window.setInterval(function() {
|
||||||
document.getElementById('articles-1').style.zIndex = "2";
|
document.getElementById('articles-1').style.zIndex = "2";
|
||||||
document.getElementById('articles-2').style.zIndex = "1";
|
document.getElementById('articles-2').style.zIndex = "1";
|
||||||
document.getElementById('articles-2').contentWindow.location.reload();
|
document.getElementById('articles-2').contentWindow.location.reload(true);
|
||||||
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload();
|
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload(true);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
document.getElementById('articles-2').style.zIndex = "2";
|
document.getElementById('articles-2').style.zIndex = "2";
|
||||||
document.getElementById('articles-1').style.zIndex = "1";
|
document.getElementById('articles-1').style.zIndex = "1";
|
||||||
document.getElementById('articles-1').contentWindow.location.reload();
|
document.getElementById('articles-1').contentWindow.location.reload(true);
|
||||||
}, 10000)
|
}, 10000)
|
||||||
}, 20000);
|
}, 20000);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user