Add page that auto-refreshes every five minutes

For use in Reading School newsroom
This commit is contained in:
Matthew Grove
2019-03-06 09:22:53 +00:00
parent 7ac9ae0a65
commit 207c04d3b2
5 changed files with 56 additions and 4 deletions

4
404.md
View File

@@ -4,5 +4,5 @@ description: This page can't be found - Reading School - BBC Young Reporter
layout: 404 layout: 404
--- ---
Sorry, but we can't find that page on [youngreporter.matthew-grove.ml](/). Sorry, but we can't find that page.
Click [here](/) to see the articles Reading School's year 8 students have written during this year's BBC Young Reporter. Click [here](/) to see the articles Reading School's year 8 students have written during this year's BBC Young Reporter day.

View File

@@ -98,8 +98,8 @@
<main class="main-content" id="main-content"> <main class="main-content" id="main-content">
<div class="mdc-top-app-bar--short-fixed-adjust"> <div class="mdc-top-app-bar--short-fixed-adjust">
<h2 class="mdc-typography--headline2">Page Not Found</h2> <h2 class="mdc-typography--headline2">Page Not Found</h2>
<p>Sorry, but we cant find that page on <a href="/">youngreporter.matthew-grove.ml</a>. <p>Sorry, but we cant find that page.
Click <a href="/">here</a> to see the articles Reading Schools year 8 students have written during this years BBC Young Reporter.</p> Click <a href="/">here</a> to see the articles Reading Schools year 8 students have written during this years BBC Young Reporter day.</p>
</div> </div>
</main> </main>

18
_site/auto-refresh.html Normal file
View 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>

View File

@@ -14,6 +14,17 @@
<url>
<loc>/auto-refresh.html</loc>
<lastmod>2019-03-06</lastmod>
<changefreq>hourly</changefreq>
<priority>0.5</priority>
</url>
<url> <url>
<loc>/</loc> <loc>/</loc>
<lastmod>2019-03-06</lastmod> <lastmod>2019-03-06</lastmod>

23
auto-refresh.md Normal file
View File

@@ -0,0 +1,23 @@
---
title: BBC Young Reporter
description: News articles written by Reading School students in year 8
layout: none
---
<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>