Home | History | Annotate | Download | only in drive
      1 <!DOCTYPE html>
      2 <html>
      3 <!--
      4 Copyright (c) 2013 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 {{attrs}}>
     16   <h1>{{title}}</h1>
     17   <h2>Status: <code id="statusField">NO-STATUS</code></h2>
     18   <p>
     19     This example demonstrates reading from and writing to your Google Drive
     20     account. To run:
     21     <ol>
     22       <li>
     23         Click the "Sign In" button below to authorize access to your
     24         account.
     25       </li>
     26       <li>
     27         Click the "Get File" button to read the file "hello nacl.txt" from your
     28         account.
     29         <ul>
     30           <li>If it exists, it will be modified.</li>
     31           <li>If it doesn't exist, it will be created.</li>
     32         </ul>
     33       </li>
     34       <li>
     35         The file will be downloaded, and the contents displayed below. Try
     36         looking on
     37         <a href="https://drive.google.com" target="_blank">Google Drive</a> to
     38         see the changes as well!
     39       </li>
     40     </ol>
     41   </p>
     42   <button id="signIn" hidden>Sign In</button>
     43   <button id="getFile" hidden>Get File</button>
     44   <div id="listener"></div>
     45   <pre id="log"></pre>
     46   <div>
     47     File Contents:
     48     <pre style="border: 1px solid #ccc" id="contents"></pre>
     49   </div>
     50 </body>
     51 </html>
     52