mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 03:17:07 +00:00
Add page that auto-refreshes every five minutes
For use in Reading School newsroom
This commit is contained in:
23
auto-refresh.md
Normal file
23
auto-refresh.md
Normal 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>
|
||||
Reference in New Issue
Block a user