Skip to content

Instantly share code, notes, and snippets.

@MattiasNilsson
Last active June 20, 2016 06:35
Show Gist options
  • Save MattiasNilsson/9877203f079006233131 to your computer and use it in GitHub Desktop.
Save MattiasNilsson/9877203f079006233131 to your computer and use it in GitHub Desktop.
Player Jonnan
<html>
<head>
<title>TEST</title>
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body>
<h1>TEST</h1>
<div id="myDiv">
PLAYER JONNAN!
</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
updateContent();
function updateContent() {
setTimeout(updateContent, 30000);
$('#myDiv').load('http://www.sunet.se #myDiv');
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment