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.
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>
17 <h2>Status:
<code id=
"statusField">NO-STATUS
</code></h2>
19 This example demonstrates reading from and writing to your Google Drive
23 Click the
"Sign In" button below to authorize access to your
27 Click the
"Get File" button to read the file
"hello nacl.txt" from your
30 <li>If it exists, it will be modified.
</li>
31 <li>If it doesn't exist, it will be created.
</li>
35 The file will be downloaded, and the contents displayed below. Try
37 <a href=
"https://drive.google.com" target=
"_blank">Google Drive
</a> to
38 see the changes as well!
42 <button id=
"signIn" hidden
>Sign In
</button>
43 <button id=
"getFile" hidden
>Get File
</button>
44 <div id=
"listener"></div>
48 <pre style=
"border: 1px solid #ccc" id=
"contents"></pre>