mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 11:27:06 +00:00
Add page that auto-refreshes every five minutes
For use in Reading School newsroom
This commit is contained in:
@@ -98,8 +98,8 @@
|
||||
<main class="main-content" id="main-content">
|
||||
<div class="mdc-top-app-bar--short-fixed-adjust">
|
||||
<h2 class="mdc-typography--headline2">Page Not Found</h2>
|
||||
<p>Sorry, but we can’t find that page on <a href="/">youngreporter.matthew-grove.ml</a>.
|
||||
Click <a href="/">here</a> to see the articles Reading School’s year 8 students have written during this year’s BBC Young Reporter.</p>
|
||||
<p>Sorry, but we can’t find that page.
|
||||
Click <a href="/">here</a> to see the articles Reading School’s year 8 students have written during this year’s BBC Young Reporter day.</p>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
18
_site/auto-refresh.html
Normal file
18
_site/auto-refresh.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<iframe id="iframe" src="/"></iframe>
|
||||
|
||||
<script>
|
||||
window.setInterval(function() {
|
||||
document.getElementById('iframe').contentWindow.location.reload();
|
||||
}, 300000);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
html, body, iframe {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -14,6 +14,17 @@
|
||||
|
||||
|
||||
|
||||
<url>
|
||||
<loc>/auto-refresh.html</loc>
|
||||
<lastmod>2019-03-06</lastmod>
|
||||
<changefreq>hourly</changefreq>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<url>
|
||||
<loc>/</loc>
|
||||
<lastmod>2019-03-06</lastmod>
|
||||
|
||||
Reference in New Issue
Block a user