-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (60 loc) · 2.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>PolyForest® Time</title>
<meta name="description" content="Simple Time Tracking via Google Sheets API">
<meta charset="utf-8"/>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<link href="default.css" type="text/css" rel="stylesheet">
<link rel="icon" type="image/svg+xml" href="./favicon.svg">
<link rel="mask-icon" href="./safari-pinned-tab.svg" color="#ef8e0c">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
</head>
<body>
<div id="mainProgressBar" class="progressBar" style="display: none;">
<div class="line1"></div>
<div class="line2 inc"></div>
<div class="line2 dec"></div>
</div>
<div id="auth">
<img src="favicon.svg" style="height: 70px">
<h3 class="appTitle">PolyForest® Time</h3>
<!--Add buttons to initiate auth sequence and sign out-->
<button id="authorizeButton" class="withIcon" style="display: none;"><i class="material-icons">account_box</i> Log In</button>
<button id="signoutButton" class="withIcon" style="display: none;"><i class="material-icons">account_box</i> Sign Out</button>
</div>
<div id="descriptionSection" style="display: none;">
<p>PolyForest® Time is a no-frills, open source, time tracking utility that logs time to your <a href="https://drive.google.com"><img src="https://firebasestorage.googleapis.com/v0/b/drive-assets.google.com.a.appspot.com/o/Asset%20-%20Google%20Drive%20Lockup.svg?alt=media&token=4649c767-bee1-4da5-a242-713857615034" style="height: 40px; margin-bottom: -11px;" alt="Google Drive"></a></p>
<p><a href="javascript:handleAuthClick();">Log In</a> to your Google account in order to quickly create time sheets.</p>
</div>
<div id="content"><h3>Loading...</h3></div>
<div id="error"></div>
<footer>
<a href="https://polyforest.com">Copyright 2020 Poly Forest, LLC.</a>
<a href="https://github.com/polyforest/timesheet">Source</a>
<a href="https://groups.google.com/u/1/a/polyforest.com/g/polyforest-time">Forum</a>
<a href="tos.html">Terms of Service</a>
<a href="privacypolicy.html">Privacy Policy</a>
</footer>
</body>
<script src="main.js"></script>
<script src="https://apis.google.com/js/api.js"></script>
<script>
/**
* @param e Error
*/
function uncaughtErrorHandler(e) {
console.error(e);
ele("error").innerText = !!e.result ? e.result.error.message : e.message || e.details;
}
window.onerror = uncaughtErrorHandler;
// load the auth2 library and API client library.
gapi.load('client:auth2', () => {
router();
initClient().catch(uncaughtErrorHandler)
});
</script>
</html>