-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecondpg_slide_total_140.js
More file actions
225 lines (157 loc) · 4.87 KB
/
Copy pathsecondpg_slide_total_140.js
File metadata and controls
225 lines (157 loc) · 4.87 KB
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
$("#container1").on('click',function(){
$.ajax({
url : "secondpg_slide_lib_140.php",
dataType : "html",
async : false,
type : "post", // post 또는 get
success : function(result){
$("#all").html(result);
}
});
});
$("#container2").on('click',function(){
$.ajax({
url : "secondpg_slide_prac_140.php",
dataType : "html",
async : false,
type : "post", // post 또는 get
success : function(result){
$("#all").html(result);
}
});
});
$("#container3").on('click',function(){
$.ajax({
url : "secondpg_slide_major_140.php",
dataType : "html",
async : false,
type : "post", // post 또는 get
success : function(result){
$("#all").html(result);
}
});
});
$("#container4").on('click',function(){
$.ajax({
url : "secondpg_slide_eng_140.php",
dataType : "html",
async : false,
type : "post", // post 또는 get
success : function(result){
$("#all").html(result);
}
});
});
$("#container6").on('click',function(){
$.ajax({
url : "secondpg_tab_taken.php",
dataType : "html",
async : false,
type : "post", // post 또는 get
success : function(result){
$("#alloflist").html(result);
}
});
});
var target1=$('#t1').val();
var base1=$('#b1').val();
var circle1 = new ProgressBar.Circle('#compo1', { //노랑
color: '#ff0006',
strokeWidth: 10,
trailWidth: 10,
trailColor: '#B4B4DC',
duration: 1500,
text: {
value: '0'
},
step: function(state, bar) {
bar.setText((bar.value() * base1).toFixed(0)+"/"+base1);
}
});
circle1.path.setAttribute('stroke-linecap', 'round');
circle1.animate(1/base1*target1);
var target2=$('#t2').val();
var base2=$('#b2').val();
var circle2 = new ProgressBar.Circle('#compo2', { //노랑
color: '#ff0006',
strokeWidth: 10,
trailWidth: 10,
trailColor: '#B4B4DC',
duration: 1500,
text: {
value: '0'
},
step: function(state, bar) {
bar.setText((bar.value() * base2).toFixed(0)+"/"+base2);
}
});
circle2.path.setAttribute('stroke-linecap', 'round');
circle2.animate(1/base2*target2);
var target3=$('#t3').val();
var base3=$('#b3').val();
var circle3 = new ProgressBar.Circle('#compo3', { //노랑
color: '#ff0006',
strokeWidth: 10,
trailWidth: 10,
trailColor: '#B4B4DC',
duration: 1500,
text: {
value: '0'
},
step: function(state, bar) {
bar.setText((bar.value() * base3).toFixed(0)+"/" + base3);
}
});
circle3.path.setAttribute('stroke-linecap', 'round');
circle3.animate(1/base3*target3);
var target4=$('#t4').val();
var base4=$('#b4').val();
var circle4 = new ProgressBar.Circle('#compo4', { //노랑
color: '#ffd655',
strokeWidth: 10,
trailWidth: 10,
trailColor: '#B4B4DC',
duration: 1500,
text: {
value: '0'
},
step: function(state, bar) {
bar.setText((bar.value() * base4).toFixed(0)+"/"+base4);
}
});
circle4.path.setAttribute('stroke-linecap', 'round');
circle4.animate(1/base4*target4);
var target5=$('#t5').val();
var base5=$('#b5').val();
var circle5 = new ProgressBar.Circle('#compo5', { //노랑
color: 'transparent',
strokeWidth: 10,
trailWidth: 10,
trailColor: 'transparent',
duration: 1500,
text: {
value: '0'
},
step: function(state, bar) {
bar.setText((bar.value() * base5).toFixed(0)+"/"+base5);
}
});
circle5.path.setAttribute('stroke-linecap', 'round');
circle5.animate(1/base5*target5);
var target6=$('#t6').val();
var base6=$('#b6').val();
var circle6 = new ProgressBar.Circle('#compo6', { //노랑
color: 'white',
strokeWidth: 0,
trailWidth: 10,
trailColor: 'transparent',
duration: 1500,
text: {
value: '0'
},
step: function(state, bar) {
bar.setText((bar.value() * base6).toFixed(0)+"/"+base6);
}
});
circle6.path.setAttribute('stroke-linecap', 'round');
circle6.animate(1/base6*target6);