-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
244 lines (203 loc) · 11.1 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!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="Mandala paths for wheelnav.js library">
<meta name="author" content="gabor.berkesi@softwaretailoring.net">
<link rel="shortcut icon" href="http://wheelnavjs.softwaretailoring.net/wheelnav_favicon.png">
<title>wheelnav.js - mandalas</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.min.js"></script>
<script type="text/javascript" src="js/raphael.icons.js"></script>
<script type="text/javascript" src="js/wheelnav.js"></script>
<script type="text/javascript" src="js/wheelnav.mandala.js"></script>
<script type="text/javascript">
var mandalaWheel;
var selectedToFront = true;
window.onload = function () {
setYinYangMandala();
};
var setYinYangMandala = function () {
mandalaWheel = new wheelnav("mandalaWheelDiv");
mandalaWheel.slicePathFunction = slicePath().YinYangSlice;
mandalaWheel.sliceHoverTransformFunction = sliceTransform().RotateTitleTransform;
mandalaWheel.sliceTransformFunction = sliceTransform().ScaleTitleTransform;
mandalaWheel.sliceSelectedTransformFunction = sliceTransform().ScaleTitleTransform;
mandalaWheel.colors = new Array("#000", "#FFF");
mandalaWheel.animatetime = 5000;
mandalaWheel.animateeffect = "linear";
mandalaWheel.rotateRoundCount = 100;
mandalaWheel.initWheel([icon.smile, icon.smile]);
mandalaWheel.navItems[0].titleAttr = { font: mandalaWheel.titleFont, fill: "#FFF", stroke: "none", cursor: 'pointer' };
mandalaWheel.navItems[0].titleSelectedAttr = { font: mandalaWheel.titleFont, fill: "#FFF" };
mandalaWheel.navItems[0].titleHoverAttr = { font: this.titleFont, fill: "#EEE", cursor: 'pointer', stroke: "none" };
mandalaWheel.navItems[0].slicePathAttr = { stroke: "#000", "stroke-width": 2, cursor: 'pointer' };
mandalaWheel.navItems[0].sliceHoverAttr = { stroke: "#000", "stroke-width": 2 };
mandalaWheel.navItems[0].sliceSelectedAttr = { stroke: "#000", "stroke-width": 2 };
mandalaWheel.navItems[1].titleAttr = { font: mandalaWheel.titleFont, fill: "#000", stroke: "none", cursor: 'pointer' };
mandalaWheel.navItems[1].titleSelectedAttr = { font: mandalaWheel.titleFont, fill: "#000" };
mandalaWheel.navItems[1].titleHoverAttr = { font: this.titleFont, fill: "#111", cursor: 'pointer', stroke: "none" };
mandalaWheel.navItems[1].slicePathAttr = { stroke: "#000", "stroke-width": 2, cursor: 'pointer' };
mandalaWheel.navItems[1].sliceHoverAttr = { stroke: "#000", "stroke-width": 2 };
mandalaWheel.navItems[1].sliceSelectedAttr = { stroke: "#000", "stroke-width": 2 };
mandalaWheel.createWheel();
mandalaWheel.navigateWheel(0);
selectedToFront = true;
//selectAllMandala();
setButtonAnimate(false);
}
var setFlowerMandala = function () {
mandalaWheel = new wheelnav("mandalaWheelDiv");
mandalaWheel.slicePathFunction = mandalaPath().FlowerSlice;
mandalaWheel.sliceSelectedPathFunction = mandalaPath().FlowerSliceSelected;
mandalaWheel.navItemCount = 6;
mandalaWheel.clickModeRotate = false;
mandalaWheel.multiSelect = true;
mandalaWheel.colors = colorpalette.fractallove;
mandalaWheel.createWheel();
mandalaWheel.navigateWheel(0);
selectedToFront = true;
selectAllMandala();
setButtonAnimate(true);
}
var setCoordMandala = function () {
mandalaWheel = new wheelnav("mandalaWheelDiv");
mandalaWheel.slicePathFunction = mandalaPath().CoordSlice;
mandalaWheel.sliceSelectedPathFunction = mandalaPath().CoordSliceSelected;
mandalaWheel.navAngle = 18;
mandalaWheel.navItemCount = 5;
mandalaWheel.clickModeRotate = false;
mandalaWheel.multiSelect = true;
mandalaWheel.colors = colorpalette.fractallovetwo;
mandalaWheel.createWheel();
mandalaWheel.navigateWheel(0);
selectedToFront = true;
selectAllMandala();
setButtonAnimate(true);
}
var setSpiralMandala = function () {
mandalaWheel = new wheelnav("mandalaWheelDiv");
mandalaWheel.slicePathFunction = mandalaPath().SpiralSlice;
mandalaWheel.sliceSelectedPathFunction = mandalaPath().SpiralSliceSelected;
mandalaWheel.navItemCount = 6;
mandalaWheel.clickModeRotate = false;
mandalaWheel.multiSelect = true;
mandalaWheel.colors = colorpalette.fractallove;
mandalaWheel.createWheel();
mandalaWheel.navigateWheel(2);
mandalaWheel.navigateWheel(4);
selectedToFront = true;
selectAllMandala();
setButtonAnimate(true);
}
var setHexaMandala = function () {
mandalaWheel = new wheelnav("mandalaWheelDiv");
mandalaWheel.slicePathFunction = mandalaPath().HexaSlice;
mandalaWheel.sliceSelectedPathFunction = mandalaPath().HexaSliceSelected;
mandalaWheel.navItemCount = 24;
mandalaWheel.rotateRoundCount = 100;
mandalaWheel.multiSelect = true;
mandalaWheel.colors = colorpalette.theworldismine;
mandalaWheel.createWheel();
mandalaWheel.navigateWheel(23);
selectedToFront = true;
//selectAllMandala();
setButtonAnimate(false);
}
var setHexaCircleMandala = function () {
mandalaWheel = new wheelnav("mandalaWheelDiv");
mandalaWheel.slicePathFunction = mandalaPath().HexaCircleSlice;
mandalaWheel.sliceSelectedPathFunction = mandalaPath().HexaCircleSliceSelected;
mandalaWheel.navItemCount = 10;
mandalaWheel.clickModeRotate = false;
mandalaWheel.multiSelect = true;
mandalaWheel.colors = colorpalette.pisycholand;
mandalaWheel.createWheel();
mandalaWheel.navigateWheel(0);
selectedToFront = true;
selectAllMandala();
setButtonAnimate(true);
}
var setHexaTriangleMandala = function () {
mandalaWheel = new wheelnav("mandalaWheelDiv");
mandalaWheel.slicePathFunction = mandalaPath().HexaTriangleSlice;
mandalaWheel.sliceSelectedPathFunction = mandalaPath().HexaTriangleSliceSelected;
mandalaWheel.navItemCount = 12;
mandalaWheel.clickModeRotate = false;
mandalaWheel.multiSelect = true;
mandalaWheel.colors = colorpalette.makeLOVEnotWAR;
mandalaWheel.createWheel();
mandalaWheel.navigateWheel(0);
mandalaWheel.navigateWheel(1);
mandalaWheel.navigateWheel(3);
mandalaWheel.navigateWheel(5);
mandalaWheel.navigateWheel(7);
mandalaWheel.navigateWheel(9);
mandalaWheel.navigateWheel(11);
selectedToFront = true;
selectAllMandala();
setButtonAnimate(true);
}
var setHexaFlowerMandala = function () {
mandalaWheel = new wheelnav("mandalaWheelDiv");
mandalaWheel.slicePathFunction = mandalaPath().HexaFlowerSlice;
mandalaWheel.sliceSelectedPathFunction = mandalaPath().HexaFlowerSliceSelected;
mandalaWheel.navItemCount = 6;
mandalaWheel.clickModeRotate = false;
mandalaWheel.multiSelect = true;
mandalaWheel.colors = colorpalette.fractallove;
mandalaWheel.createWheel();
mandalaWheel.navigateWheel(0);
selectedToFront = false;
selectAllMandala();
setButtonAnimate(true);
}
var selectAllMandala = function () {
for (var i = 0; i < mandalaWheel.navItems.length; i++) {
mandalaWheel.navigateWheel(i, selectedToFront);
}
}
var setButtonAnimate = function (visible) {
if (visible) {
document.getElementById("buttonAnimate").removeAttribute("hidden");
}
else {
document.getElementById("buttonAnimate").setAttribute("hidden", "hidden");
}
}
</script>
</head>
<body>
<header>
<p>
These are mandala <a href="https://github.com/softwaretailoring/wheelnav.mandala" target="_blank" title="GitHub">paths</a> for wheelnav.js library.
For more information please visit the <a href="http://wheelnavjs.softwaretailoring.net" target="_blank">project page</a>
</p>
</header>
<div class="mandalaButtons">
<a href="#" onclick="setYinYangMandala();">YinYang</a>
<a href="#" onclick="setFlowerMandala();">Flower</a>
<a href="#" onclick="setHexaFlowerMandala();">Flower 2</a>
<a href="#" onclick="setCoordMandala();">Coord</a>
<a href="#" onclick="setSpiralMandala();">Spiral</a>
<a href="#" onclick="setHexaMandala();">Hexa</a>
<a href="#" onclick="setHexaCircleMandala();">Hexa 2</a>
<a href="#" onclick="setHexaTriangleMandala();">Hexa 3</a>
</div>
<div style="height:20px;" ></div>
<div id="mandalaWheelDiv" class="wheelNavBig"></div>
<div style="height:20px;" ></div>
<div style="text-align: center;" ><input id="buttonAnimate" type="button" onclick="selectAllMandala();" class="mandalaButton" value="Animate"/></div>
<div style="height:100px;" ></div>
<footer>
<label>© 2015 <a href="http://softwaretailoring.net" target="_blank">softwaretailoring.net</a></label>
</footer>
</body>
</html>