Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Last active August 29, 2015 14:01
Show Gist options
  • Save carlosrojaso/106ad6e5fa8c4275b7aa to your computer and use it in GitHub Desktop.
Save carlosrojaso/106ad6e5fa8c4275b7aa to your computer and use it in GitHub Desktop.
app cache
<!DOCTYPE html>
<html manifest="demo_html.appcache">
<body>
<script src="demo_time.js">
</script>
<p id="timePara"><button onclick="getDateTime()">Get Date and Time</button></p>
<p><img src="http://carlosrojasblog.com/wp-content/uploads/2013/09/logotipo_w4.png" width="336" height="69"></p>
<p>Try opening <a href="tryhtml5_html_manifest.htm" target="_blank">this page</a>, then go offline, and reload the page. The script and the image should still work.</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment