-
Notifications
You must be signed in to change notification settings - Fork 101
/
index.html
195 lines (176 loc) · 10.5 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!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="wheelnav.js test page for javascript way">
<meta name="author" content="gabor.berkesi@softwaretailoring.net">
<link rel="shortcut icon" href="wheelnav_favicon.png">
<title>wheelnav.js - test page</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/required/raphael.min.js"></script>
<script type="text/javascript" src="js/required/raphael.icons.js"></script>
<script type="text/javascript" src="js/dist/wheelnav.js"></script>
<script type="text/javascript">
window.onload = function () {
var myWheelnav = new wheelnav("divWheelnav");
myWheelnav.slicePathFunction = slicePath().DonutSlice;
myWheelnav.colors = new Array("mediumorchid", "royalblue", "darkorange");
myWheelnav.keynavigateEnabled = true;
myWheelnav.createWheel([icon.github, icon.people, icon.smile]);
var radialWheel = new wheelnav("radialWheel");
radialWheel.slicePathFunction = slicePath().MenuSliceWithoutLine;
radialWheel.spreaderEnable = true;
radialWheel.spreaderInTitle = "imgsrc:wheelnav_demo.gif";
radialWheel.spreaderOutTitle = "imgsrc:wheelnav_favicon.png";
radialWheel.spreaderOutTitleHeight = 50;
radialWheel.spreaderInTitleHeight = 35;
radialWheel.spreaderInPercent = 1.5;
radialWheel.spreaderOutPercent = 2.5;
radialWheel.clickModeRotate = false;
radialWheel.cssMode = true;
radialWheel.markerEnable = true;
radialWheel.markerPathFunction = markerPath().MenuMarker;
radialWheel.initWheel([icon.merge, icon.filter, icon.charging, "imgsrc:https://softwaretailoring.net/en/images/berkesi.gabor.jpg", icon.book, "6"]);
radialWheel.titleHeight = 35;
radialWheel.titleHoverHeight = 40;
radialWheel.titleSelectedHeight = 45;
radialWheel.navItems[3].titleHeight = 38;
radialWheel.navItems[3].titleHoverHeight = 48;
radialWheel.navItems[3].titleSelectedHeight = 58;
radialWheel.createWheel();
radialWheel.setTooltips(["merge", "filter", "charging", "author", "book", "six"]);
var cogWheel = new wheelnav("cogWheel");
cogWheel.slicePathFunction = slicePath().CogBasePieSlice;
cogWheel.sliceHoverPathFunction = slicePath().CogSlice;
cogWheel.sliceSelectedPathFunction = slicePath().CogSlice;
cogWheel.wheelRadius = 0.85 * cogWheel.wheelRadius;
cogWheel.navAngle = 60;
cogWheel.titleRotateAngle = -60;
cogWheel.spreaderEnable = true;
cogWheel.rotateRound = true;
cogWheel.sliceClickablePathFunction = slicePath().CogSlice;
cogWheel.clickablePercentMax = 1.3;
cogWheel.colors = new Array("315-#ddd-green", "225-#ddd-yellow", "135-#ddd-orange", "45-#ddd-red");
cogWheel.sliceTransformFunction = sliceTransform().ScaleTitleTransform;
cogWheel.sliceHoverTransformFunction = sliceTransform().ScaleTitleTransform;
cogWheel.sliceSelectedTransformFunction = sliceTransform().ScaleTitleTransform;
cogWheel.createWheel();
var textWheelRotatedTitle = new wheelnav("textWheelRotatedTitle");
textWheelRotatedTitle.slicePathFunction = slicePath().EyeSlice;
textWheelRotatedTitle.sliceSelectedTransformFunction = sliceTransform().CustomTransform;
textWheelRotatedTitle.sliceSelectedTransformCustom = new sliceTransformCustomization();
textWheelRotatedTitle.sliceSelectedTransformCustom.rotateString = "r450";
textWheelRotatedTitle.sliceSelectedTransformCustom.scaleString = "s1.5";
textWheelRotatedTitle.sliceSelectedPathFunction = slicePath().MenuSliceWithoutLine;
textWheelRotatedTitle.minPercent = 0.5;
textWheelRotatedTitle.titleRotateAngle = 270;
textWheelRotatedTitle.spreaderEnable = true;
textWheelRotatedTitle.titleSpreadScale = true;
textWheelRotatedTitle.multiSelect = true;
textWheelRotatedTitle.spreaderPathFunction = spreaderPath().StarSpreader;
textWheelRotatedTitle.spreaderPathCustom = new StarSpreaderCustomization();
textWheelRotatedTitle.spreaderPathCustom.spreaderPercent = 2;
textWheelRotatedTitle.initWheel([icon.cross, icon.cross, icon.cross, icon.cross, icon.cross, icon.cross]);
textWheelRotatedTitle.navItems[0].selectedTitle = icon.check;
textWheelRotatedTitle.navItems[1].selectedTitle = icon.check;
textWheelRotatedTitle.navItems[2].selectedTitle = icon.check;
textWheelRotatedTitle.navItems[3].selectedTitle = icon.check;
textWheelRotatedTitle.navItems[4].selectedTitle = icon.check;
textWheelRotatedTitle.navItems[5].selectedTitle = icon.check;
textWheelRotatedTitle.createWheel();
var pieWheel = new wheelnav("pieWheel");
pieWheel.slicePathFunction = slicePath().MenuSlice;
pieWheel.sliceSelectedPathFunction = slicePath().MenuSliceSelectedLine;
pieWheel.spreaderEnable = true;
pieWheel.hoverPercent = 1.05;
pieWheel.selectedPercent = 1.1;
pieWheel.wheelRadius = 1.4 * pieWheel.wheelRadius;
pieWheel.centerX = pieWheel.centerX * 0.4;
pieWheel.centerY = pieWheel.centerY * 0.4;
pieWheel.clickModeRotate = false;
pieWheel.titleRotateAngle = 0;
pieWheel.initWheel([icon.check, icon.cloud, icon.raphael, null, null, null, null, null]);
pieWheel.navItems[0].tooltip = "icon.check";
pieWheel.navItems[1].tooltip = "icon.cloud";
pieWheel.navItems[2].tooltip = "icon.raphael";
pieWheel.createWheel();
var iconWheel = new wheelnav("iconWheel");
iconWheel.slicePathFunction = slicePath().LineSlice;
iconWheel.sliceSelectedPathFunction = slicePath().FlowerSlice;
iconWheel.sliceHoverTransformFunction = sliceTransform().RotateTitleTransform;
iconWheel.spreaderEnable = true;
iconWheel.minPercent = 0.3;
iconWheel.maxPercent = 1;
iconWheel.navAngle = 30;
iconWheel.initWheel([icon.star, icon.star, icon.star, icon.star, icon.star, icon.star]);
iconWheel.navItems[0].minPercent = 0.63;
iconWheel.navItems[0].maxPercent = 1;
iconWheel.navItems[1].minPercent = 1;
iconWheel.navItems[1].maxPercent = 0.63;
iconWheel.navItems[1].initPercent = 0.63;
iconWheel.navItems[2].minPercent = 0.63;
iconWheel.navItems[2].maxPercent = 1;
iconWheel.navItems[3].minPercent = 1;
iconWheel.navItems[3].maxPercent = 0.63;
iconWheel.navItems[3].initPercent = 0.63;
iconWheel.navItems[4].minPercent = 0.63;
iconWheel.navItems[4].maxPercent = 1;
iconWheel.navItems[5].minPercent = 1;
iconWheel.navItems[5].maxPercent = 0.63;
iconWheel.navItems[5].initPercent = 0.63;
iconWheel.createWheel();
var textWheel = new wheelnav("textWheel");
textWheel.slicePathFunction = slicePath().TabSlice;
textWheel.sliceSelectedTransformFunction = sliceTransform().ScaleTransform;
textWheel.clickModeRotate = false;
textWheel.navAngle = 45;
textWheel.animatetime = 1000;
textWheel.animateeffect = "elastic";
textWheel.initWheel(["0", "1", icon["?"], "3", icon["!"]]);
textWheel.navItems[2].titleHover = icon.talke;
textWheel.navItems[4].titleHover = icon.talkq;
textWheel.createWheel();
textWheel.navItems[2].navigateFunction = function () {
textWheel.slicePathFunction = slicePath().MenuSliceWithoutLine;
textWheel.sliceClickablePathFunction = slicePath().MenuSliceWithoutLine;
textWheel.refreshWheel(true);
};
textWheel.navItems[4].navigateFunction = function () {
textWheel.slicePathFunction = slicePath().TabSlice;
textWheel.sliceClickablePathFunction = slicePath().TabSlice;
textWheel.refreshWheel(true);
};
};
</script>
</head>
<body>
<header>
<p>
This is a test page for wheelnav.js library.
For more information please visit the <a href="https://wheelnavjs.softwaretailoring.net" target="_blank">project page</a>
</p>
</header>
<div id="divWheelnav" class="wheelNavGitHub"></div>
<div id="radialWheel" class="wheelNav"></div>
<div id="cogWheel" class="wheelNav"></div>
<div id="textWheelRotatedTitle" class="wheelNav"></div>
<div id="pieWheel" class="wheelNav"></div>
<div id="iconWheel" class="wheelNav"></div>
<div style="height:50px;" ></div>
<div id="textWheel" class="wheelNav"></div>
<footer>
<br />
<p>
For available slicePaths visit the <a href="slicePathTester.html">slicePathTester</a> page.
</p>
<p>© 2014-2021 <a href="https://softwaretailoring.net" target="_blank">softwaretailoring.net</a></p>
</footer>
</body>
</html>