This repository has been archived by the owner on Jan 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
index.html
77 lines (60 loc) · 2.79 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Realtime Cube</title>
<meta http-equiv="X-UA-Compatible" content="IE=9">
<!-- Load the RealTime libraries. -->
<script type="text/javascript"
src="https://apis.google.com/js/api.js"></script>
<!-- Load the utility library. -->
<script type="text/javascript"
src="js/realtime-client-utils.js"></script>
<script type="text/javascript" src="js/realtimecube.js"></script>
<meta charset="utf-8" />
<script src="cube3d/js/oz.js"></script>
<script src="cube3d/js/css3.oz.js"></script>
<script src="cube3d/js/rubik.js"></script>
<script src="cube3d/js/quaternion.js"></script>
<link rel="stylesheet" href="cube3d/css/style.css" />
<meta name="viewport" content="width=device-width" />
</head>
<!-- Start RealTime when the body has loaded. -->
<body onLoad='startRealtimeCube()'>
<div class="container">
<img id="logo" src="images/icon_128.png">
<div class="main-heading-1">Realtime Cube</div>
<div class="main-heading-2">A 3D collaborative puzzle cube built using the <a target="_blank" href="https://developers.google.com/drive/realtime/">Google Drive Realtime API</a></div>
<hr>
<button id="authorizeButton" disabled class="button button-submit">Authorize for Google Drive</button>
<div id="collaborators">
<div id="title"><b>Collaborators:</b></div>
<div id="collaborators-container">
</div>
<button id="shareButton" class="button button-share" onclick="showShareDialog()">Share</button>
</div>
<div id="loading" style="display: none">
<img src="images/loading_spinner_16.gif" /> Loading...
</div>
<div id="content" style="display:none;">
<div id="instructions">
Instructions:
<div>Drag cube to rotate face</div>
<div>Drag background to rotate cube</div>
<div>Click to <a href="javascript:scrambleCube()">scramble cube</a></div>
</div>
<br>
</div>
</div>
<a href="https://github.com/googledrive/realtime-cube"><img style="position: fixed; bottom: 0; right: 0; border: 0;" src="/images/github.png" alt="Fork me on GitHub"></a>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25993200-5']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>