forked from mikeee324/TimingField
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (39 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>TimingField</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" type="text/css" rel="stylesheet" media="screen" />
<link href="timingfield.css" type="text/css" rel="stylesheet" media="screen" />
</head>
<body>
<input type="text" class="timing" />
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="timingfield.js"></script>
<script type="text/javascript">
jQuery(document).ready(function ($) {
// optional settings
$.fn.timingfield.defaults = {
maxHour: 23,
minutesInterval: 5,
width: '100%',
signText: '+/-',
daysText: 'Days',
hoursText: 'Hours',
minutesText: 'Minutes',
secondsText: 'Seconds',
useTimestamp: true,
signVisible: true,
daysVisible: true,
hoursVisible: true,
minutesVisible: true,
secondsVisible: false,
defaultValue: 86400
};
$(".timing").timingfield();
});
</script>
</body>
</html>