-
Notifications
You must be signed in to change notification settings - Fork 0
/
committee.html
118 lines (107 loc) · 2.17 KB
/
committee.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
<html>
<head>
<title>Commitee</title>
<style>
div.container {
align: center;
width: 80%;
height: 80%;
position: absolute;
margin: auto;
top: 0; left: 0; right: 0; bottom: 0;
overflow: auto;
display: table;
}
div.container table{
align-items: center;
margin-left: 20%;
margin-top: 0;
}
div.circle {
display: inline-block;
position: relative;
}
.circles-decimals {
font-size: .4em;
}
</style>
</head>
<body>
<div class="container">
<br>
<div align='center' style="font-size: 80;">
Name
</div>
<br>
<br>
<div align="center">
<div class="circle" id="scoreCircle"></div>
</div>
<table border="0" cellpadding="0" cellspacing="15">
<!-- <tr>
<td>
</td>
<td align="center" colspan="2">
<img src="img/temp.png" width="90" height="90" />
</td>
<td>
</td>
<td>
</td>
</tr> -->
<tr>
<!-- <td>
<img src="img/temp.png" width="90" height="90" />
</td> -->
<td></td>
<td align="center" >
</td>
<td>
</td>
<td></td>
<!-- <td>
<img src="img/temp.png" width="90" height="90" />
</td> -->
</tr>
<!-- <tr>
<td>
</td>
<td align="center">
<img src="img/temp.png" width="90" height="90" />
</td>
<td align="center">
<img src="img/temp.png" width="90" height="90" />
</td>
<td>
</td>
</tr> -->
</table>
</div>
<script src="js/circles.min.js"></script>
<script>
//@ http://jsfromhell.com/array/shuffle [v1.0]
function shuffle(o){ //v1.0
for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
}
var color = ['#F4BCBF', '#D43A43'];
var scoreCircle = document.getElementById('scoreCircle');
var percentage = 20;
var circle = Circles.create({
id: scoreCircle.id,
value: percentage,
radius: 180,
width: 30,
colors: color
});
document.getElementById('add_button').onclick = function()
{
circle.update(circle._value + 10, 250);
};
document.getElementById('substract_button').onclick = function()
{
circle.update(circle._value - 10, 250);
};
</script>
</body>
</html>