Created
November 8, 2016 01:04
-
-
Save ericelliott/79af253bc2eafc3801951c2b7228ad9f to your computer and use it in GitHub Desktop.
UpUp Example
This file contains hidden or 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
<script src="/upup.min.js"></script> | |
<script> | |
UpUp.start({ | |
'content-url': 'schedule.html?user=joe', // show this when the user is offline | |
'assets': [ // define additional assets needed while offline: | |
'img/logo.png', // such as images, | |
'css/offline.css', // custom stylesheets, | |
'schedule.json?user=joe', // dynamic requests with data per user, | |
'js/angular.min.js', // javascript libraries and frameworks, | |
'mov/intro.mp4', // videos, | |
'contacts.pdf' // and more. | |
] | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment