</h1> <h2>Status: <code id="statusField">NO-STATUS</code></h2> <!-- The <EMBED> element is wrapped inside a <DIV>, which has both a 'load' and a 'message' event listener attached. This wrapping method is used instead of attaching the event listeners directly to the <EMBED> element to ensure that the listeners are active before the NaCl module 'load' event fires. This also allows you to use PPB_Messaging.PostMessage() (in C) or pp::Instance.PostMessage() (in C++) from within the initialization code in your NaCl module. The src points to a manifest file, which provides the Native Client plug-in a mapping between architecture and NaCl Executable (NEXE). We use a non-zero sized embed to give Chrome space to place the bad plug-in graphic, if there is a problem. --> <div id="listener"> <script type="text/javascript"> window.webkitStorageInfo.requestQuota(window.PERSISTENT, 1024*1024, function(bytes) { updateStatus('Allocated '+bytes+' bytes of persistant storage.'); createNaClModule('<NAME>', '<tc>', 200, 200); }, function(e) { alert('Failed to allocate space') }); var listener = document.getElementById('listener') listener.addEventListener('load', moduleDidLoad, true); listener.addEventListener('message', handleMessage, true); </script> <textarea id="file_editor" cols="40" rows="10" wrap="hard" placeholder="Enter some text to save in a file..."></textarea> <br>File Name <input type="text" id="file_name" action=""/> <button id="save_but" onclick="saveFile()" action="">Save</button> <button id="load_but" onclick="loadFile()" action="">Load</button> <button id="delete_but" onclick="deleteFile()" action="">Delete</button> </div> </body> </html>