index.html 1.79 KB
Newer Older
1 2 3 4 5 6 7 8 9 10


<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width">

    <title>Service worker demo</title>
11 12 13 14 15
  <script src="lib/sha256.js"></script>
  <script src="lib/sha256.amd.js"></script>
  <script src="lib/rsvp.js"></script>
  <script src="lib/utils/promise.js"></script>
  <script src="lib/jio-latest.js"></script>
16 17 18 19 20 21
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>

  <body>
22
    <h1>Free Web Initiative: Start your Website</h1>
23 24 25 26 27 28
    <p>You can start building this website by editing the content of the input here:</p>
    <ul>
      <li>First field: the path</li>
      <li>First field: mimetype</li>
      <li>First field: the content</li>
    </ul>
29
    <p>Have fun building the web :) <a href="todo.html">TODO</a></p>
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    <div class="output">
      <div id="status"></div>

      <div id="commands" style="display: none">
        <div>
          <label for="url">Resource URL:</label>
          <input id="url" type="text" size="50" value="test.html">
          <button id="get">Get from Cache</button>           
          <input id="mimetype" type="text" size="50" value="text/html">
        <div>
          <textarea id="information" cols="35" wrap="soft"></textarea>
        </div>
        <div>
          <button id="add">Add to Cache</button>
          <button id="delete">Delete from Cache</button>
        </div>
        <div>
          <button id="list-contents">List Cache Contents</button>
          <button id="save-contents">Save Cache</button>
          <button id="load-contents">Load Cache</button>
        </div>
        <ul id="contents"></ul>
      </div>
    </div>

    <script src="app.js"></script>
  </body>
57
</html>