mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 11:27:06 +00:00
Include Young Reporter Twitter feed on auto-refresh page
This commit is contained in:
@@ -1,18 +1,32 @@
|
|||||||
<iframe id="iframe" src="/"></iframe>
|
<script src="/js/jquery.min.js"></script>
|
||||||
|
|
||||||
|
<iframe id="articles" src="/"></iframe>
|
||||||
|
<p><a class="twitter-timeline" id="tweets" 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>
|
<script>
|
||||||
window.setInterval(function() {
|
window.setInterval(function() {
|
||||||
document.getElementById('iframe').contentWindow.location.reload();
|
document.getElementById('iframe').contentWindow.location.reload();
|
||||||
}, 300000);
|
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload();
|
||||||
|
}, 60000);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
html, body {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
html, body, iframe {
|
html, body, iframe {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
#articles {
|
||||||
|
width: 70%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.twitter-timeline {
|
||||||
|
width: 30% !important;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -4,20 +4,34 @@ description: News articles written by Reading School students in year 8
|
|||||||
layout: none
|
layout: none
|
||||||
---
|
---
|
||||||
|
|
||||||
<iframe id="iframe" src="/"></iframe>
|
<script src="/js/jquery.min.js"></script>
|
||||||
|
|
||||||
|
<iframe id="articles" src="/"></iframe>
|
||||||
|
<a class="twitter-timeline" id="tweets" 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>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.setInterval(function() {
|
window.setInterval(function() {
|
||||||
document.getElementById('iframe').contentWindow.location.reload();
|
document.getElementById('iframe').contentWindow.location.reload();
|
||||||
}, 300000);
|
document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload();
|
||||||
|
}, 60000);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
html, body {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
html, body, iframe {
|
html, body, iframe {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
#articles {
|
||||||
|
width: 70%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.twitter-timeline {
|
||||||
|
width: 30% !important;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user