index.html revision 868fa2fe829687343ffae624259930155e16dbd8
1<!DOCTYPE html> 2<html> 3 <!-- 4 Copyright (c) 2012 The Chromium Authors. All rights reserved. 5 Use of this source code is governed by a BSD-style license that can be 6 found in the LICENSE file. 7 --> 8<head> 9 <meta http-equiv="Pragma" content="no-cache"> 10 <meta http-equiv="Expires" content="-1"> 11 <title>{{title}}</title> 12 <script type="text/javascript" src="common.js"></script> 13 <script type="text/javascript" src="example.js"></script> 14</head> 15<body data-width="200" data-height="200" data-custom-load="true" {{attrs}}> 16 <h1>{{title}}</h1> 17 <h2>Status: <code id="statusField">NO-STATUS</code></h2> 18 <p>The File IO example demonstrates saving, loading, and deleting files 19 from the persistent file store.</p> 20 21 <textarea id="fileEditor" 22 cols="40" 23 rows="10" 24 wrap="hard" 25 placeholder="Enter some text to save in a file..."></textarea> 26 <br>File Name 27 <input type="text" id="fileName" action="" value="/filename.txt"> 28 <button id="saveButton" action="">Save</button> 29 <button id="loadButton" action="">Load</button> 30 <button id="deleteButton" action="">Delete</button> 31 32 <br>Directory Name 33 <input type="text" id="dirName" action="" value="/"> 34 <button id="listButton" action="">List</button> 35 36 <!-- The NaCl plugin will be embedded inside the element with id "listener". 37 See common.js.--> 38 <div id="listener"></div> 39</body> 40</html> 41