-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
124 lines (114 loc) · 4.62 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>KNoodle</title>
<link href="./style.css" rel="stylesheet">
<script src="./lib/solid-client-authn.bundle.js"></script>
<script src="index.js"></script>
</head>
<body>
<div id="header">
<h1>🍜 KNoodle</h1>
<p>Read our <a href="./faq">frequently asked questions</a>.</p>
</div>
<div class="container">
<div class="grid-left">
<div id="check-logged-in-message">
Checking if you are already logged in...
</div>
<div id="webid-form" class="hidden">
<label for="webid">WebID</label><input type="text" id="webid" placeholder="Enter your WebID">
<button id="log-in-btn">Log in</button>
</div>
<div id="no-oidc-issuer-error" class="hidden error">
<p>
No OIDC issues is found in your WebID. Please use as predicate <code>http://www.w3.org/ns/solid/terms#oidcIssuer</code> and
use a named node for your issuer.
</p>
</div>
<div id="oidc-issuer-form" class="hidden">
<label for="oidc-issuers">Choose your OIDC issuer to log in with</label>
<select name="oidc-issuers" id="oidc-issuers"></select>
<button id="select-oidc-issuer-btn">Log in</button>
</div>
<div id="current-user" class="hidden"></div>
<div id="participants" class="hidden">
<h3>Select participants</h3>
<div id="participant-list"></div>
<div class="hidden loader lds-dual-ring"></div>
</div>
<div id="invalid-participants" class="hidden">
<div class="outer">
<h4 class="inner"><span id="invalid-participants-count"></span> invalid participants</h4>
<button id="see-invalid-participants-btn" class="inner">See details</button>
<button id="hide-invalid-participants-btn" class="hidden inner">Hide details</button>
</div>
<ul id="invalid-participants-list" class="hidden"></ul>
</div>
<div id="error" class="hidden error"></div>
<div id="find-slots" class="hidden">
<div>
<button id="btn">Find slots</button>
</div>
<div>
<button id="show-vacation-days-btn">Show vacation days</button>
</div>
<div>
<button id="show-personal-slots-btn">Show only my slots</button>
</div>
<div class="hidden loader lds-dual-ring"></div>
</div>
</div>
<div class="grid-right">
<div id="available-slots" class="hidden">
<h3>Available slots</h3>
<div id="slots">
<table>
<tbody></tbody>
</table>
</div>
<div id="desired-slot-message">
Click on the desired slot to add it to your calendar.
</div>
<div id="no-slots-message" class="hidden">
No slots have been found for the selected participants.
</div>
</div>
<div id="add-slot" class="hidden">
<h3>Add slot to your calendar</h3>
<h4>Set the start and end time</h4>
<label for="final-slot-start-time">Start time:</label>
<input type="time" id="final-slot-start-time" name="final-slot-start-time" required>
<label for="final-slot-end-time">End time:</label>
<input type="time" id="final-slot-end-time" name="final-slot-end-time" required>
<p>On <span id="finale-date"></span></p>
<h4>Select your calendar</h4>
<table>
<tbody>
<tr><td id="google-calendar"><a>Google Calendar</a></td></tr>
<tr><td id="outlook"><a>Outlook</a></td></tr>
<tr><td id="office365"><a>Office 365</a></td></tr>
<tr><td id="yahoo"><a>Yahoo</a></td></tr>
<tr><td id="other-app"><a>Other calendar application</a></td></tr>
</tbody>
</table>
<div id="update-desired-slot-message">
Click on another slot or change the times to update the links.
</div>
</div>
<div id="vacation-days-container" class="hidden">
<h3>Vacation days</h3>
<div id="vacation-days">
<table>
<tbody></tbody>
</table>
</div>
<div id="no-vacation-days-message" class="hidden">
This person has no vacation days planned.
</div>
</div>
</div>
</div>
</body>
</html>