Index: native_client_sdk/src/examples/demo/drive/index.html |
diff --git a/native_client_sdk/src/examples/demo/drive/index.html b/native_client_sdk/src/examples/demo/drive/index.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..47fe15e5cfa8209b1a8a58f8e3f4d000e7eb9171 |
--- /dev/null |
+++ b/native_client_sdk/src/examples/demo/drive/index.html |
@@ -0,0 +1,51 @@ |
+<!DOCTYPE html> |
+<html> |
+<!-- |
+Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+Use of this source code is governed by a BSD-style license that can be |
+found in the LICENSE file. |
+--> |
+<head> |
+ <meta http-equiv="Pragma" content="no-cache"> |
+ <meta http-equiv="Expires" content="-1"> |
+ <title>{{title}}</title> |
+ <script type="text/javascript" src="common.js"></script> |
+ <script type="text/javascript" src="example.js"></script> |
+</head> |
+<body {{attrs}}> |
+ <h1>{{title}}</h1> |
+ <h2>Status: <code id="statusField">NO-STATUS</code></h2> |
+ <p> |
+ This example demonstrates reading from and writing to your Google Drive |
+ account. To run: |
+ <ol> |
+ <li> |
+ Click the "Sign In" button below to authorize access to your |
+ account. |
+ </li> |
+ <li> |
+ Click the "Get File" button to read the file "hello nacl.txt" from your |
+ account. |
+ <ul> |
+ <li>If it exists, it will be modified.</li> |
+ <li>If it doesn't exist, it will be created.</li> |
+ </ul> |
+ </li> |
+ <li> |
+ The file will be downloaded, and the contents displayed below. Try |
+ looking on |
+ <a href="https://drive.google.com" target="_blank">Google Drive</a> to |
+ see the changes as well! |
+ </li> |
+ </ol> |
+ </p> |
+ <button id="signIn" hidden>Sign In</button> |
+ <button id="getFile" hidden>Get File</button> |
+ <div id="listener"></div> |
+ <pre id="log"></pre> |
+ <div> |
+ File Contents: |
+ <pre style="border: 1px solid #ccc" id="contents"></pre> |
+ </div> |
+</body> |
+</html> |