mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 03:17:07 +00:00
Force full refresh on iframes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user