Files
bbc-young-reporter/_site/auto-refresh.html

90 lines
3.1 KiB
HTML

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="HandheldFriendly" content="True" />
<link rel="icon" href="/images/favicon.png" />
<!-- add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes" />
<!-- add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="BBC Young Reporter" />
<link rel="apple-touch-icon-precomposed" href="/images/favicon.png" />
<!-- tile icon & colour for Windows 8 -->
<meta name="msapplication-TileImage" content="/images/favicon.png" />
<meta name="msapplication-TileColor" content="#1d2f53" />
<!-- page info -->
<title>BBC Young Reporter | Reading School</title>
<meta name="description" content="News articles written by Reading School students in year 8" />
<meta name="keywords" content="" />
<!-- stylesheets -->
<link rel="stylesheet" href="/assets/css/main.css" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-124505000-1" type="text/javascript"></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-124505000-2');
</script>
<!-- jQuery -->
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/timeago.js"></script>
</head>
<iframe id="articles-1" class="articles" src="/years/2020"></iframe>
<iframe id="articles-2" class="articles" src="/years/2020"></iframe>
<p><a class="twitter-timeline" data-dnt="true" href="https://twitter.com/BBCYoungReport?ref_src=twsrc%5Etfw">Tweets by BBCYoungReport</a> <script async="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></p>
<script>
window.setInterval(function() {
document.getElementById('articles-1').style.zIndex = "2";
document.getElementById('articles-2').style.zIndex = "1";
document.getElementById('articles-2').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(true);
}, 10000)
}, 20000);
</script>
<style>
html, body {
width: 100%;
}
html, body, iframe {
height: 100%;
margin: 0;
padding: 0;
border: none;
}
.articles {
width: 70%;
position: absolute;
top: 0;
left: 0;
background: white;
}
#articles-1 {
z-index: 2;
}
#articles-2 {
z-index: 1;
}
.twitter-timeline {
width: 30% !important;
float: right;
}
</style>