-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
48 lines (41 loc) · 1.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!--
Copyright (C) 2015 Apple Inc. All Rights Reserved.
See LICENSE.txt for this sample’s licensing information
Abstract:
The main HTML file of the CloudKit Catalog sample app.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CloudKit Test</title>
<link rel="stylesheet" href="css/cloudkit-catalog.css">
</head>
<body>
<script>
/*
* Initialize the global objects we will need.
*/
if(typeof CKCatalog === 'undefined') {
CKCatalog = {};
}
if(typeof CKCatalog.tabs === 'undefined') {
CKCatalog.tabs = {
'readme': [{}],
'not-found': [{}]
};
}
</script>
<div id="apple-sign-in-button"></div>
<div id="apple-sign-out-button"></div><br>
<span id="username"></span><br><br>
<!-- <button type="button" onclick="readQuery()">Get Table</button>
-->
<script src="js/init.js"></script>
<script src="js/cloudkit-code-samples/authentication.js"></script>
<script>
window.addEventListener('cloudkitloaded',CKCatalog.init);
</script>
<script async src="https://cdn.apple-cloudkit.com/ck/1/cloudkit.js"></script>
</body>
</html>