-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
74 lines (65 loc) · 3.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Datetime plugin for wheelnav.js library">
<meta name="author" content="[email protected]">
<link rel="shortcut icon" href="http://wheelnavjs.softwaretailoring.net/wheelnav_favicon.png">
<title>wheelnav.js - datetime</title>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="css/index.css" rel="stylesheet">
<script type="text/javascript" src="js/raphael.js"></script>
<script type="text/javascript" src="js/wheelnav.js"></script>
<script type="text/javascript" src="js/wheelnav.datetime.js"></script>
<script type="text/javascript">
var calendar;
window.onload = function () {
setDonutWheel(false);
};
setDonutWheel = function (isfix) {
calendar = new wheelnavdatetime("divWheelnavDateTime");
calendar.slicePathType = calendar.wheelTypes.Donut;
calendar.fixDate = isfix;
calendar.fixTime = isfix;
calendar.timeVisible = isfix;
calendar.selectionEnable = !isfix;
calendar.createWheelNav();
calendar.setDateTime();
};
setMenuWheel = function (isfix) {
calendar = new wheelnavdatetime("divWheelnavDateTime");
calendar.slicePathType = calendar.wheelTypes.Menu;
calendar.fixDate = isfix;
calendar.fixTime = isfix;
calendar.timeVisible = isfix;
calendar.selectionEnable = !isfix;
calendar.createWheelNav();
calendar.setDateTime();
};
</script>
</head>
<body>
<header>
<p>
This is a datetime <a href="https://github.com/softwaretailoring/wheelnav.datetime" target="_blank" title="GitHub">plugin</a> for wheelnav.js library.
For more information please visit the <a href="http://wheelnavjs.softwaretailoring.net" target="_blank">project page</a>
</p>
</header>
<p class="datetimeButtons">
<a href="#" onclick="setDonutWheel(false);">Donut</a>
<a href="#" onclick="setMenuWheel(false);">Menu</a>
<a href="#" onclick="setDonutWheel(true);">Donut-fix</a>
<a href="#" onclick="setMenuWheel(true);">Menu-fix</a>
</p>
<div id="divWheelnavDateTime" class="wheelNav"></div>
<footer>
<label>© 2015 <a href="http://softwaretailoring.net" target="_blank">softwaretailoring.net</a></label>
</footer>
</body>
</html>