Last active
December 18, 2015 15:29
-
-
Save longzheng/5804979 to your computer and use it in GitHub Desktop.
Google Docs TV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>TV</title> | |
<style> | |
html, body { | |
background: black; | |
padding: 0; | |
margin: 0; | |
width: 100%; | |
height: 100%; | |
} | |
</style> | |
<script> | |
// update with the desired time to refresh the presentation (in minutes) | |
var refreshMinutes = 30; | |
var timer=setInterval(function(){refreshFrame()}, refreshMinutes*60*1000); | |
function refreshFrame() | |
{ | |
var iframe = document.getElementById('presentFrame'); | |
var iframeURL = iframe.src; | |
iframe.src = iframeURL; | |
} | |
</script> | |
</head> | |
<body> | |
<!-- update the presentation ID with your own presentation --> | |
<!-- update the &delayms= with the time to show each slide (in milliseconds) --> | |
<iframe id="presentFrame" src="https://docs.google.com/presentation/d/1I5P8MxsLHdxzOYNahEfH5egU91IJrAGprFo0melj4H0/embed?start=true&loop=true&delayms=4000" frameborder="0" width="100%" height="100%" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment