-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerator.php
More file actions
64 lines (64 loc) · 2.25 KB
/
generator.php
File metadata and controls
64 lines (64 loc) · 2.25 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
60
61
62
63
64
<html>
<head>
<title>ical query generator</title>
<link rel="stylesheet" type="text/css" href="generator.css">
</head>
<body>
<form action="#" id="f">
<label for="ical_url">Original .ics file url: </label>
<input type="text" name="ical_url" id="ical_url" class="half_width">
<br />
<br />
<label for="regex">Regular expression: </label>
<input type="text" name="regex" id="regex" class="half_width">
<br />
<label for="search_summary">Search in summary: </label>
<input type="checkbox" name="search_summary" id="search_summary" checked="">
<br />
<label for="search_description">Search in description: </label>
<input type="checkbox" name="search_description" id="search_description" checked="">
<br />
<br />
<label for="regex_not">Regular expression (NOT): </label>
<input type="text" name="regex_not" id="regex_not" class="half_width">
<br />
<label for="search_summary_not">Search in summary: </label>
<input type="checkbox" name="search_summary_not" id="search_summary_not">
<br />
<label for="search_description_not">Search in description: </label>
<input type="checkbox" name="search_description_not" id="search_description_not">
<br />
<br />
<a id="new_form_link" href="#" onclick="return addForm(2);">Add another .ics file</a>
<br />
<br />
<br />
<label for="name">Name: </label>
<input type="text" name="name" id="name" class="half_width">
<br />
<label for="desc">Description: </label>
<input type="text" name="desc" id="desc" class="half_width">
<br />
<label for="ttl">Update interval (in hours): </label>
<input type="number" min="1" step="1" value="1" name="ttl" id="ttl">
<br />
<input type="submit" value="Generate Link" onclick="return generate();">
</form>
<br />
<br />
<br />
<label for="out">Link (long): </label>
<input type="text" id="out">
<br />
<label for="out2">Link (short): </label>
<input type="text" id="out2">
<br />
<br />
<br />
<br />
<br />
<br />
<p>Info: takes the original .ics file and parses it. Keeps only the events that contain the first regex and that do not contain the second regex (according to the fields to search in).
</body>
<script type="text/javascript" src="generator.js"></script>
</html>