aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/templates/index.html')
-rw-r--r--docs/src/templates/index.html20
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">&#10005;</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>