-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
43 lines (40 loc) · 1.76 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Google Drive Viewer</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="main.css">
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
<div class="container row">
<div class="col s12" >
<button class="waves-effect waves-light btn right" id="signin-button" onclick="handleSignInClick()">Sign In</button>
<button style="display:none" class="waves-effect waves-light btn right" id="signout-button" onclick="handleSignOutClick()">Sign Out</button>
</div>
</div>
<div id="root" ></div>
<script type="text/babel" src="GoogleDrive.js"></script>
<script type="text/babel">
function init(){
window.reactApp = ReactDOM.render(
<GoogleDrive />,
document.getElementById('root')
);
}
</script>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script type="text/javascript" src="apikey.js"></script>
<script type="text/javascript" src="gdrive.js"></script>
<script async defer src="https://apis.google.com/js/api.js"
onload="this.onload=function(){};handleClientLoad()"
onreadystatechange="if (this.readyState === 'complete') this.onload()">
</script>
</body>
</html>