History

Tweak offline page Q&A

Thibaut committed 11 years ago

Commit 3dd07d21 parent 16486ff1 file · +2 −2Browse files

Unified · Split

assets/javascripts/templates/pages/offline_tmpl.coffee+2−2
@@ -23,7 +23,7 @@ app.templates.offlinePage = (docs) -> """ · 22 unmodified lines
23 <h1 class="_lined-heading">Questions & Answers</h1>23 <h1 class="_lined-heading">Questions & Answers</h1>
24 <dl>24 <dl>
25 <dt>How does this work?25 <dt>How does this work?
26 <dd>Each page is cached as a key-value pair in <a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API">IndexedDB</a> (downloaded from a single JSON file).<br>26 <dd>Each page is cached as a key-value pair in <a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API">IndexedDB</a> (downloaded from a single file).<br>
27 The app also uses <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache">AppCache</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API">localStorage</a> to cache the assets and index files.27 The app also uses <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache">AppCache</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API">localStorage</a> to cache the assets and index files.
28 <dt>Can I close the tab/browser?28 <dt>Can I close the tab/browser?
29 <dd>#{canICloseTheTab()}29 <dd>#{canICloseTheTab()}
@@ -44,7 +44,7 @@ canICloseTheTab = -> · 14 unmodified lines
44 """ Yes! Even offline, you can open a new tab, go to <a href="http://devdocs.io">devdocs.io</a>, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand).<br>44 """ Yes! Even offline, you can open a new tab, go to <a href="http://devdocs.io">devdocs.io</a>, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand).<br>
45 Note that loading any page other than <a href="http://devdocs.io">devdocs.io</a> directly won't work (due to limitations in AppCache). """45 Note that loading any page other than <a href="http://devdocs.io">devdocs.io</a> directly won't work (due to limitations in AppCache). """
46 else46 else
47 """ No. Because AppCache is unavailable in your browser (or has been disabled), loading <a href="http://devdocs.io">devdocs.io</a> offline won't work.<br>47 """ No. AppCache isn't available in your browser (or is disabled) so loading <a href="http://devdocs.io">devdocs.io</a> offline won't work.<br>
48 The current tab will continue to work, though (provided you installed all the documentations you want to use beforehand). """48 The current tab will continue to work, though (provided you installed all the documentations you want to use beforehand). """
49 49
50app.templates.offlineDoc = (doc, status) ->50app.templates.offlineDoc = (doc, status) ->