forked from technoweenie/cronwtf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (55 loc) · 1.57 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>CronWTF!</title>
<script type="text/javascript" src="javascripts/cronwtf.js"></script>
<script type="text/javascript" src="javascripts/mootools.js"></script>
<script type="text/javascript">
window.onload = function() {
$('cron').addEvents({
keyup: function() { this.fireEvent('cron') },
cron: function() {
var list = $('results')
while(list.childNodes.length > 0)
list.removeChild(list.childNodes[0])
CronWTF.parse(this.value).each(function(entry) {
list.appendChild(new Element('li', {text: entry}))
})
}
})
$('cron').fireEvent('cron')
}
</script>
<style type="text/css">
body {
font-family: Helvetica, Arial, sans-serif;
}
#img {
width:400px;
float:right;
padding:0;
margin:0 0 1.5em 1.5em;
}
#img img { margin:0; padding:0;}
textarea {
width:450px;
height:100px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="img"><img src="images/wtf.jpg" alt="WTF?" width="387" height="362" /></div>
<form>
<div>
<textarea id="cron">#min hour dom mon dow
0 0 1 * * COMMAND
</textarea>
<ul id="results"></ul>
<p><a href="http://techno-weenie.net/2009/3/15/wtf-does-that-cron-do">instructions</a>, <a href="test.html">tests</a>, <a href="http://github.com/technoweenie/cronwtf">code</a></p>
</div>
</form>
</div>
</body>
</html>