Force full refresh on iframes

This commit is contained in:
Matthew Grove
2019-03-06 12:25:10 +00:00
parent e529a20fa1
commit 4f55157898
2 changed files with 6 additions and 6 deletions

View File

@@ -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>

View File

@@ -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>