-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (81 loc) · 3.98 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
<html>
<head>
<link rel="icon" href="favicon.ico">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Dienstplan</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
rel="stylesheet" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css?v=1.4">
</head>
<body>
<div class="container-fluid">
<h1>Dienstplan</h1>
<form class="user-inputs">
<div class="form-row">
<div class="form-group col">
<label for="start">Start</label>
<input type="date" class="form-control" id="start"
aria-describedby="startHelp" placeholder="First date">
<small id="startHelp" class="form-text text-muted">First date of the calendar, optional.</small>
</div>
<div class="form-group col">
<label for="weeks">Durations</label>
<select class="form-control" id="weeks" aria-describedby="weeksHelp">
<option value="month">Whole month</option>
<option value="4">4 weeks</option>
<option value="3">3 weeks</option>
<option value="2" selected>2 weeks</option>
<option value="1">1 week</option>
</select>
<small id="weeksHelp" class="form-text text-muted">Duration to retrieve.</small>
</div>
</div>
<div class="form-row">
<div class="form-group col">
<label for="token">PaperShift API Key</label>
<input type="text" class="form-control" id="token" aria-describedby="tokenHelp">
<small id="weeksHelp" class="form-text text-muted">
As guided <a href="https://developers.papershift.com/docs#section-2-get-your-papershift-api-key" target="_blank">here</a>.
</small>
</div>
<div class="form-group col">
<label for="refresh">Auto Refresh</label>
<input type="number" min="0" max="120" value="0" class="form-control"
id="refresh" aria-describedby="refreshHelp">
<small id="refreshHelp" class="form-text text-muted">Time in minutes to auto refresh page.</small>
</div>
</div>
<button type="submit" id="retrieve" class="btn btn-primary">Retrieve</button>
</form>
<div class="progress" style="display: none;">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar"
aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
</div>
<div id="table" style="display: none;"></div>
<div class="alert alert-danger" role="alert" style="display: none;">
There was an error retrieving data. Please <a href="" id="refresh">try again</a>.
</div>
<footer class="text-muted" style="display: none;">
<div class="container-fluid">
<div class="row">
<div class="col-sm">
Next refresh: <span id="nextRefresh"></span>.
</div>
<div class="col-sm text-center">
Script version 1.5.<br />
</div>
<div class="col-sm text-right">
Generated at <span id="scriptTime"></span>.
</div>
</div>
</div>
</footer>
</div>
<script src="format.js?v=1.5"></script>
<script src="paper.js?v=1.5"></script>
<script src="holidays.js?v=1.5"></script>
<script src="display.js?v=1.5"></script>
<script src="index.js?v=1.5"></script>
</body>
</html>