-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (48 loc) · 2.4 KB
/
index.html
File metadata and controls
59 lines (48 loc) · 2.4 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Google Calendar API</title>
<meta charset='utf-8' />
</head>
<!--Add basic CSS formatting-->
<link rel="stylesheet" type="text/css" href="css/calendarPortal.css" media="screen" />
<body>
<p>Google Calendar Create Event</p>
<form name="createEvent">
<label>Event Summary:</label>
<input type="text" name="summary" id="summary"><br>
<label>Start Date:</label>
<input type="text" name="startdate" id="startdatetime"><br>
<label>End Date:</label>
<input type="text" name="enddate" id="enddatetime"><br>
<label>Attendees:</label>
<input type="text" name="attendees" id="attendees"><br>
<label>Location:</label>
<input type="text" name="location" id="location"><br>
<br>
<input type="submit" value="Submit" width="48" height="48" onClick="insertEvent();">
</form>
<br><br>
<!--Add buttons to initiate auth sequence and sign out-->
<button id="authorize-button" aligh="left" style="display: none;">Authorize</button>
<button id="signout-button" aligh="right" style="display: none;">Sign Out</button>
<br><br>
<!--List upcoming events is from Google's API Getting Started:-->
<button id="event-button">Show New Events</button>
<pre id="content"></pre>
<!--Google oAuth Configuration from their quickstart guide: https://developers.google.com/calendar/quickstart/js -->
<script src="scripts/googleAuth.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>
<!--jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!--jquery validate -->
<script src="https://cdn.jsdelivr.net/npm/jquery-validation@1.17.0/dist/jquery.validate.js"></script>
<!--jquery css-->
<link rel="stylesheet" type="text/css" src="jquery.css" />
<!--jquery validate UI-->
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<!--calender event handler-->
<script src="scripts/calHandle.js"></script>
</body>
</html>