forked from larrybolt/online-ics-feed-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (78 loc) · 1.85 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Online ICS feed viewer</title>
<link href='./fullcalendar.min.css' rel='stylesheet' />
<link href='./fullcalendar.print.min.css' rel='stylesheet' media='print' />
<script src='./lib/moment.min.js'></script>
<script src='./lib/jquery.min.js'></script>
<script src='./fullcalendar.min.js'></script>
<script src='./ical.min.js'></script>
<script src='./urlhash.js'></script>
<script src='./script.js'></script>
<style>
body {
margin: 40px 10px;
padding: 0;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
font-size: 14px;
}
#calendar, header, h1, footer {
max-width: 900px;
margin: 0 auto;
}
body.from_url header {
display: none;
}
body.from_url footer {
display: none;
}
header {
margin: 0 auto 20px
}
input[type="text"] {
width: 70%;
font-size: medium;
padding: 4px
}
header button {
font-size: medium;
padding: 4px;
width: 20%
}
.line {
display: flex;
}
small.source {
position: absolute;
right: 3px; bottom: 3px;
}
#share {
display: none;
}
</style>
</head>
<body>
<h1>Online ics feed ical viewer</h1>
<header>
<p class="line">
<input type="text" id="eventsource" placeholder="copy/paste the url and press fetch...">
<button id="fetch">fetch</button><br>
<label>Cors ignored?<input type="checkbox" id="cors-enabled" checked="checked"></label>
</p>
<p>
<label for="myfile">or select local file</label>
<input type="file" id="myfile" name="myfile" onchange='openFile(event)'>
</p>
</header>
<div id='calendar'></div>
<footer class="line" id="share">
Hide input when sharing url:
<input type="checkbox">
</footer>
<small class="source">
<a href="https://github.com/larrybolt/online-ics-feed-viewer">source</a>
</small>
</body>
</html>