-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstackoverflow30591371.html
78 lines (64 loc) · 6.81 KB
/
stackoverflow30591371.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
<!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="Sample for a stackoverflow question about custom icon. Presented by wheelnav.js">
<meta name="author" content="gabor.berkesi@softwaretailoring.net">
<link rel="shortcut icon" href="http://wheelnavjs.softwaretailoring.net/wheelnav_favicon.png">
<title>wheelnav.js - Stackoverflow sample for lion svg icon</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 rel="stylesheet" href="css/default.css" />
<script type="text/javascript" src="js/raphael.min.js"></script>
<script type="text/javascript" src="js/wheelnav.min.js"></script>
<script type="text/javascript">
window.onload = function () {
var path_a = "M 0.00 0.00 L 27.39 0.00 C 27.82 0.61 28.68 1.82 29.11 2.42 C 32.78 4.14 33.05 8.47 33.97 11.91 C 35.39 9.61 36.73 7.26 38.06 4.91 C 37.99 7.33 37.89 9.75 37.85 12.18 C 38.54 8.95 38.63 5.61 37.92 2.37 C 36.80 4.54 35.77 6.75 34.76 8.96 C 33.95 5.24 31.80 1.99 28.54 0.00 L 50.00 0.00 L 50.00 29.99 C 48.25 27.65 45.99 25.77 43.58 24.16 C 45.00 26.32 46.59 28.35 48.14 30.40 C 47.53 30.47 46.30 30.59 45.68 30.65 C 46.80 31.84 47.91 33.03 49.01 34.23 C 49.26 33.74 49.75 32.74 50.00 32.25 L 50.00 51.00 L 0.00 51.00 L 0.00 0.00 Z";
var path_b = " M 27.39 0.00 L 28.54 0.00 C 31.80 1.99 33.95 5.24 34.76 8.96 C 35.77 6.75 36.80 4.54 37.92 2.37 C 38.63 5.61 38.54 8.95 37.85 12.18 C 37.89 9.75 37.99 7.33 38.06 4.91 C 36.73 7.26 35.39 9.61 33.97 11.91 C 33.05 8.47 32.78 4.14 29.11 2.42 C 28.68 1.82 27.82 0.61 27.39 0.00 Z";
var path_c = " M 2.78 11.05 C 7.94 6.81 14.16 3.46 20.93 3.05 C 24.09 2.93 27.13 4.17 29.54 6.15 C 30.08 5.47 30.62 4.79 31.18 4.13 C 31.36 6.70 31.48 9.27 31.48 11.84 C 30.11 9.02 28.34 5.89 25.01 5.16 C 17.04 2.97 9.58 7.53 2.78 11.05 Z";
var path_d = " M 8.70 9.84 C 13.03 7.40 17.89 5.04 23.02 5.97 C 25.35 6.22 26.89 8.16 28.47 9.66 C 26.12 8.49 23.85 6.67 21.07 6.82 C 16.76 6.89 12.83 8.88 8.70 9.84 Z";
var path_e = " M 18.74 14.77 C 20.40 13.59 22.34 12.62 24.31 13.85 C 24.31 14.53 24.28 15.20 24.23 15.87 C 22.64 17.29 23.60 19.33 23.76 21.11 C 22.28 19.38 21.62 17.37 22.73 15.22 C 22.06 15.16 20.72 15.04 20.05 14.98 C 20.26 17.31 20.50 19.63 20.67 21.96 C 19.12 19.86 18.76 17.32 18.74 14.77 Z";
var path_f = " M 37.99 14.79 C 40.72 17.00 42.73 19.91 43.97 23.19 C 42.83 22.87 40.57 22.23 39.43 21.92 C 39.83 22.63 40.62 24.06 41.01 24.77 C 39.25 23.27 37.25 22.09 35.24 20.96 C 37.44 20.90 39.64 20.88 41.84 20.88 C 40.55 18.86 39.23 16.85 37.99 14.79 Z";
var path_g = " M 31.10 32.89 C 29.68 29.70 29.08 26.25 29.21 22.76 C 29.88 25.69 30.50 28.66 31.82 31.37 C 34.29 36.36 33.25 42.09 32.83 47.40 C 32.06 47.31 31.30 47.22 30.53 47.13 C 30.12 47.68 29.29 48.76 28.88 49.30 C 31.08 44.21 33.35 38.37 31.10 32.89 Z";
var path_h = " M 43.58 24.16 C 45.99 25.77 48.25 27.65 50.00 29.99 L 50.00 32.25 C 49.75 32.74 49.26 33.74 49.01 34.23 C 47.91 33.03 46.80 31.84 45.68 30.65 C 46.30 30.59 47.53 30.47 48.14 30.40 C 46.59 28.35 45.00 26.32 43.58 24.16 Z";
var path_i = " M 31.77 26.72 C 35.70 27.90 37.71 31.56 37.81 35.49 C 38.68 36.54 39.53 37.60 40.37 38.67 C 38.98 37.92 37.58 37.19 36.15 36.50 C 36.78 32.52 34.79 29.12 31.77 26.72 Z";
var path_j = " M 23.70 43.41 C 25.25 39.00 24.60 34.17 26.30 29.80 C 25.95 32.89 25.91 35.99 25.89 39.09 C 25.75 42.55 23.87 45.58 22.04 48.40 C 21.22 48.49 19.58 48.69 18.76 48.78 C 20.48 47.06 22.01 45.16 23.70 43.41 Z";
var path_k = " M 42.80 41.08 C 44.86 39.40 46.70 37.47 48.33 35.36 C 47.90 36.92 47.41 38.46 46.90 39.98 C 45.53 40.36 44.17 40.73 42.80 41.08 Z"; // The last 'z' must be lowercase!
lion = path_a + path_b + path_c + path_d + path_e + path_f + path_g + path_h + path_i + path_j + path_k;
var lionWheel = new wheelnav("lionWheel", null, 300, 300);
lionWheel.rotateRound = true;
lionWheel.clockwise = false;
lionWheel.slicePathAttr = { stroke: "#E7E7E7", "stroke-width": 3, cursor: 'pointer' };
lionWheel.sliceHoverAttr = { stroke: "#E7E7E7", "stroke-width": 5, cursor: 'pointer' };
lionWheel.sliceSelectedAttr = { stroke: "#E7E7E7", "stroke-width": 3, cursor: 'default' };
lionWheel.colors = ["#fff"];
lionWheel.titleAttr = { fill: "none", stroke: "#009afd", "stroke-width": 1, cursor: 'pointer' };
lionWheel.titleHoverAttr = { fill: "none", stroke: "#009afd", "stroke-width": 2, cursor: 'pointer' };
lionWheel.titleSelectedAttr = { fill: "none", stroke: "#009afd", "stroke-width": 2, cursor: 'default' };
lionWheel.createWheel([lion, lion, lion]);
};
</script>
<style>
body {
background-color: #E7E7E7;
}
</style>
</head>
<body>
<a href="https://github.com/softwaretailoring/wheelnav.inspirations" class="github-corner"><svg id="github" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>
<header>
<p>
Sample for a <a href="http://stackoverflow.com/questions/30591371/how-can-i-add-my-own-icon-to-raphaels-free-icon-stock" target="_blank">stackoverflow</a> question.
</p>
</header>
<div id="lionWheel" class="wheelNav"></div>
<footer>
<p>© 2015.06.04. via <a href="http://twitter.com/sftwr_tlrng" target="_blank">@sftwr_tlrng</a> with <a href="http://wheelnavjs.softwaretailoring.net">wheelnav.js</a></p>
</footer>
</body>
</html>