diff --git a/_site/auto-refresh.html b/_site/auto-refresh.html index d5b5cbc..a5c6ebe 100644 --- a/_site/auto-refresh.html +++ b/_site/auto-refresh.html @@ -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); diff --git a/auto-refresh.md b/auto-refresh.md index 02e660d..10ce193 100644 --- a/auto-refresh.md +++ b/auto-refresh.md @@ -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);