diff options
| author | Di Peng | 2011-07-20 19:29:54 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-07-26 16:35:42 -0700 |
| commit | 9dea9de44917b0b72a786122e619d451ccb8b0dc (patch) | |
| tree | d4ac89c713fb0cc3e0607309bc46d1ca37ef0fc0 /docs/src/templates/index.html | |
| parent | bee78a84922da51de647af96fe86f75b1322d3d9 (diff) | |
| download | angular.js-9dea9de44917b0b72a786122e619d451ccb8b0dc.tar.bz2 | |
feat(docs): add full offline support
Diffstat (limited to 'docs/src/templates/index.html')
| -rw-r--r-- | docs/src/templates/index.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index 4ca4218a..f3754b41 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -77,10 +77,30 @@ ng:href="https://github.com/angular/angular.js/blob/master/CHANGELOG.md#{{versionNumber}}" ng:bind-template="v{{version}}"> </a> + <a ng:hide="offlineEnabled" ng:click ="subpage = true">(enable offline support)</a> + <span ng:show="offlineEnabled">(offline support enabled)</span> <span id="copyright">© 2010-2011 AngularJS</span> </div> </div> + <div id="fader" ng:show="subpage"></div> + <div id="subpage" ng:show="subpage"> + <div> + <h2>Would you like full offline support for this AngularJS Docs App?</h2> + <a ng:click="subpage=false">✕</a> + <p> + If you want to be able to access the entire AngularJS documentation offline, click the + button below. This will reload the current page and trigger background downloads of all the + necessary files (approximately 3.5MB). The next time you load the docs, the browser will + use these cached files. + <br><br> + This feature is supported on all modern browsers, except for IE9 which lacks application + cache support. + </p> + <button id="cacheButton" ng:click="enableOffline()">Let me have them all!</button> + </div> + </div> + <script src="syntaxhighlighter/syntaxhighlighter-combined.js"></script> <!-- jquery place holder --> <script src="../angular.min.js" ng:autobind></script> |
