initial import
[offlinemoodle.git] / go_offline.html
blob43b5d07dd5ed43e59f8079771c16f9a51a82a01f
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <!--
4 Copyright 2007, Google Inc.
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11 2. Redistributions in binary form must reproduce the above copyright notice,
12 this list of conditions and the following disclaimer in the documentation
13 and/or other materials provided with the distribution.
14 3. Neither the name of Google Inc. nor the names of its contributors may be
15 used to endorse or promote products derived from this software without
16 specific prior written permission.
18 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
19 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
20 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
21 EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 -->
30 <html xmlns="http://www.w3.org/1999/xhtml">
31 <head>
32 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
33 <script type="text/javascript" src="gears_init.js"></script>
34 <script type="text/javascript" src="go_offline.js"></script>
35 <script type="text/javascript" src="fetch_db.js"></script>
37 <title>Enable Offline Usage</title>
38 <style type="text/css">
39 <!--
40 .style1 {
41 color: #003399;
42 font-style: italic;
43 font-weight: bold;
44 font-size: large;
46 .style3 {
47 color: #009933;
48 font-weight: bold;
49 font-style: italic;
51 -->
52 </style>
53 </head>
55 <body onload="init()">
56 <h2>Getting offline-enabled documents with Gears </h2>
57 <p>&nbsp;</p>
58 <div>
59 <p class="style1">Status Message: <span id="textOut" class="style3"></span></p>
60 </div>
63 <p><strong>Q:</strong> I want to see these documents when I'm not online! What must I do?<br />
64 <strong>A:</strong> <a href="http://gears.google.com/">Install Gears</a> on your computer and then click &quot;Capture&quot; to store the documents to your computer. You can then access the URLs without a network connection. </p>
66 <p>
67 <button onclick="createStore()" > Capture </button>
68 </p>
71 <p><strong>Q:</strong> I want to remove my offline access to these documents. What must I do?<br />
72 <strong>A: </strong>Click &quot;Erase&quot; below to removed the &quot;captured&quot; documents from your computer. The documents will no longer be available without a network connection. </p>
74 <p>
75 <button onclick="removeStore()" > Erase </button>
76 </p>
78 <p>
79 <button onclick="fetchDb()" > Fetch </button>
80 </p>
82 <p>
83 <button onclick="cacheDb()" > Cache </button>
84 </p>
86 <p>
87 <button onclick="displayDb()"> Display </button>
88 </p>
90 <div id = 'useless' style = 'display:none'></div>
92 <div id = 'dbresult' style = 'display:none'></div>
94 <div id = 'dbdisplay' ></div>
96 </body>
97 </html>