Showing
5 changed files
with
537 additions
and
0 deletions
package-lock.json
0 → 100644
This diff is collapsed. Click to expand it.
package.json
0 → 100644
server.js
0 → 100644
| 1 | +const express = require('express'); | ||
| 2 | +const app = express(); | ||
| 3 | + | ||
| 4 | +app.listen(8080, function(){ | ||
| 5 | + console.log('listening on 8080'); | ||
| 6 | +}); | ||
| 7 | + | ||
| 8 | +app.get('/test', function(req, res){ | ||
| 9 | + res.send('test'); | ||
| 10 | +}); | ||
| 11 | + | ||
| 12 | +app.get('/', function(req, res){ | ||
| 13 | + res.sendFile(__dirname + '/main.html'); | ||
| 14 | + res.sendFile(__dirname + '/main.css'); | ||
| 15 | +}); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -33,9 +33,155 @@ function shuffle(x){ | ... | @@ -33,9 +33,155 @@ function shuffle(x){ |
| 33 | } | 33 | } |
| 34 | } | 34 | } |
| 35 | } | 35 | } |
| 36 | + console.log(dusan_hitter_shuffle); | ||
| 36 | //나머지 팀들 똑같이 추가 | 37 | //나머지 팀들 똑같이 추가 |
| 38 | + if(x.name === "hanhwa"){ | ||
| 39 | + for(j = 0; j < hanhwa_hitter_shuffle.length; j++){ | ||
| 40 | + if(hanhwa_hitter_shuffle.length == 0){ | ||
| 41 | + continue; | ||
| 42 | + } | ||
| 43 | + else if(x.value == hanhwa_hitter_shuffle[j][0]){ | ||
| 44 | + console.log(x.value == hanhwa_hitter_shuffle[j][0]) | ||
| 45 | + return 0; | ||
| 46 | + } | ||
| 47 | + } | ||
| 48 | + for(i = 0; i < hanhwa_hitter.length; i++){ | ||
| 49 | + if(x.value == hanhwa_hitter[i][0]){ | ||
| 50 | + hanhwa_hitter_shuffle.push(hanhwa_hitter[i]); | ||
| 51 | + } | ||
| 52 | + } | ||
| 53 | + } | ||
| 54 | + console.log(hanhwa_hitter_shuffle); | ||
| 55 | + | ||
| 56 | + if(x.name === "kiwoom"){ | ||
| 57 | + for(j = 0; j < kiwoom_hitter_shuffle.length; j++){ | ||
| 58 | + if(kiwoom_hitter_shuffle.length == 0){ | ||
| 59 | + continue; | ||
| 60 | + } | ||
| 61 | + else if(x.value == kiwoom_hitter_shuffle[j][0]){ | ||
| 62 | + console.log(x.value == kiwoom_hitter_shuffle[j][0]) | ||
| 63 | + return 0; | ||
| 64 | + } | ||
| 65 | + } | ||
| 66 | + for(i = 0; i < kiwoom_hitter.length; i++){ | ||
| 67 | + if(x.value == kiwoom_hitter[i][0]){ | ||
| 68 | + kiwoom_hitter_shuffle.push(kiwoom_hitter[i]); | ||
| 69 | + } | ||
| 70 | + } | ||
| 71 | + } | ||
| 72 | + console.log(kiwoom_hitter_shuffle); | ||
| 73 | + | ||
| 74 | + if(x.name === "kt"){ | ||
| 75 | + for(j = 0; j < kt_hitter_shuffle.length; j++){ | ||
| 76 | + if(kt_hitter_shuffle.length == 0){ | ||
| 77 | + continue; | ||
| 78 | + } | ||
| 79 | + else if(x.value == kt_hitter_shuffle[j][0]){ | ||
| 80 | + console.log(x.value == kt_hitter_shuffle[j][0]) | ||
| 81 | + return 0; | ||
| 82 | + } | ||
| 83 | + } | ||
| 84 | + for(i = 0; i < kt_hitter.length; i++){ | ||
| 85 | + if(x.value == kt_hitter[i][0]){ | ||
| 86 | + kt_hitter_shuffle.push(kt_hitter[i]); | ||
| 87 | + } | ||
| 88 | + } | ||
| 89 | + } | ||
| 90 | + console.log(kt_hitter_shuffle); | ||
| 91 | + | ||
| 92 | + if(x.name === "lg"){ | ||
| 93 | + for(j = 0; j < lg_hitter_shuffle.length; j++){ | ||
| 94 | + if(lg_hitter_shuffle.length == 0){ | ||
| 95 | + continue; | ||
| 96 | + } | ||
| 97 | + else if(x.value == lg_hitter_shuffle[j][0]){ | ||
| 98 | + console.log(x.value == lg_hitter_shuffle[j][0]) | ||
| 99 | + return 0; | ||
| 100 | + } | ||
| 101 | + } | ||
| 102 | + for(i = 0; i < lg_hitter.length; i++){ | ||
| 103 | + if(x.value == lg_hitter[i][0]){ | ||
| 104 | + lg_hitter_shuffle.push(lg_hitter[i]); | ||
| 105 | + } | ||
| 106 | + } | ||
| 107 | + } | ||
| 108 | + console.log(lg_hitter_shuffle); | ||
| 109 | + | ||
| 110 | + if(x.name === "lotte"){ | ||
| 111 | + for(j = 0; j < lotte_hitter_shuffle.length; j++){ | ||
| 112 | + if(lotte_hitter_shuffle.length == 0){ | ||
| 113 | + continue; | ||
| 114 | + } | ||
| 115 | + else if(x.value == lotte_hitter_shuffle[j][0]){ | ||
| 116 | + console.log(x.value == lotte_hitter_shuffle[j][0]) | ||
| 117 | + return 0; | ||
| 118 | + } | ||
| 119 | + } | ||
| 120 | + for(i = 0; i < lotte_hitter.length; i++){ | ||
| 121 | + if(x.value == lotte_hitter[i][0]){ | ||
| 122 | + lotte_hitter_shuffle.push(lotte_hitter[i]); | ||
| 123 | + } | ||
| 124 | + } | ||
| 125 | + } | ||
| 126 | + console.log(lotte_hitter_shuffle); | ||
| 127 | + | ||
| 128 | + if(x.name === "nc"){ | ||
| 129 | + for(j = 0; j < nc_hitter_shuffle.length; j++){ | ||
| 130 | + if(nc_hitter_shuffle.length == 0){ | ||
| 131 | + continue; | ||
| 132 | + } | ||
| 133 | + else if(x.value == nc_hitter_shuffle[j][0]){ | ||
| 134 | + console.log(x.value == nc_hitter_shuffle[j][0]) | ||
| 135 | + return 0; | ||
| 136 | + } | ||
| 137 | + } | ||
| 138 | + for(i = 0; i < nc_hitter.length; i++){ | ||
| 139 | + if(x.value == nc_hitter[i][0]){ | ||
| 140 | + nc_hitter_shuffle.push(nc_hitter[i]); | ||
| 141 | + } | ||
| 142 | + } | ||
| 143 | + } | ||
| 144 | + console.log(nc_hitter_shuffle); | ||
| 145 | + | ||
| 146 | + if(x.name === "samsung"){ | ||
| 147 | + for(j = 0; j < samsung_hitter_shuffle.length; j++){ | ||
| 148 | + if(samsung_hitter_shuffle.length == 0){ | ||
| 149 | + continue; | ||
| 150 | + } | ||
| 151 | + else if(x.value == samsung_hitter_shuffle[j][0]){ | ||
| 152 | + console.log(x.value == samsung_hitter_shuffle[j][0]) | ||
| 153 | + return 0; | ||
| 154 | + } | ||
| 155 | + } | ||
| 156 | + for(i = 0; i < samsung_hitter.length; i++){ | ||
| 157 | + if(x.value == samsung_hitter[i][0]){ | ||
| 158 | + samsung_hitter_shuffle.push(samsung_hitter[i]); | ||
| 159 | + } | ||
| 160 | + } | ||
| 161 | + } | ||
| 162 | + console.log(samsung_hitter_shuffle); | ||
| 163 | + | ||
| 164 | + if(x.name === "ssg"){ | ||
| 165 | + for(j = 0; j < ssg_hitter_shuffle.length; j++){ | ||
| 166 | + if(ssg_hitter_shuffle.length == 0){ | ||
| 167 | + continue; | ||
| 168 | + } | ||
| 169 | + else if(x.value == ssg_hitter_shuffle[j][0]){ | ||
| 170 | + console.log(x.value == ssg_hitter_shuffle[j][0]) | ||
| 171 | + return 0; | ||
| 172 | + } | ||
| 173 | + } | ||
| 174 | + for(i = 0; i < ssg_hitter.length; i++){ | ||
| 175 | + if(x.value == ssg_hitter[i][0]){ | ||
| 176 | + ssg_hitter_shuffle.push(ssg_hitter[i]); | ||
| 177 | + } | ||
| 178 | + } | ||
| 179 | + } | ||
| 180 | + console.log(ssg_hitter_shuffle); | ||
| 37 | } | 181 | } |
| 38 | 182 | ||
| 183 | +////////////////remove | ||
| 184 | + | ||
| 39 | function remove(x){ | 185 | function remove(x){ |
| 40 | if(document.getElementById(x.name).name == 'kia'){ | 186 | if(document.getElementById(x.name).name == 'kia'){ |
| 41 | for(i = 0; i < kia_hitter_shuffle.length; i++){ | 187 | for(i = 0; i < kia_hitter_shuffle.length; i++){ |
| ... | @@ -49,4 +195,112 @@ function remove(x){ | ... | @@ -49,4 +195,112 @@ function remove(x){ |
| 49 | } | 195 | } |
| 50 | console.log(kia_hitter_shuffle); | 196 | console.log(kia_hitter_shuffle); |
| 51 | //나머지 팀들 똑같이 추가 | 197 | //나머지 팀들 똑같이 추가 |
| 198 | + | ||
| 199 | + if(document.getElementById(x.name).name == 'dusan'){ | ||
| 200 | + for(i = 0; i < dusan_hitter_shuffle.length; i++){ | ||
| 201 | + if(dusan_hitter_shuffle.length == 0){ | ||
| 202 | + return 0; | ||
| 203 | + } | ||
| 204 | + else if(document.getElementById(x.name).value == dusan_hitter_shuffle[i][0]){ | ||
| 205 | + dusan_hitter_shuffle.splice(i,1); | ||
| 206 | + } | ||
| 207 | + } | ||
| 208 | + } | ||
| 209 | + console.log(dusan_hitter_shuffle); | ||
| 210 | + | ||
| 211 | + if(document.getElementById(x.name).name == 'hanhwa'){ | ||
| 212 | + for(i = 0; i < hanhwa_hitter_shuffle.length; i++){ | ||
| 213 | + if(hanhwa_hitter_shuffle.length == 0){ | ||
| 214 | + return 0; | ||
| 215 | + } | ||
| 216 | + else if(document.getElementById(x.name).value == hanhwa_hitter_shuffle[i][0]){ | ||
| 217 | + hanhwa_hitter_shuffle.splice(i,1); | ||
| 218 | + } | ||
| 219 | + } | ||
| 220 | + } | ||
| 221 | + console.log(hanhwa_hitter_shuffle); | ||
| 222 | + | ||
| 223 | + if(document.getElementById(x.name).name == 'kiwoom'){ | ||
| 224 | + for(i = 0; i < kiwoom_hitter_shuffle.length; i++){ | ||
| 225 | + if(kiwoom_hitter_shuffle.length == 0){ | ||
| 226 | + return 0; | ||
| 227 | + } | ||
| 228 | + else if(document.getElementById(x.name).value == kiwoom_hitter_shuffle[i][0]){ | ||
| 229 | + kiwoom_hitter_shuffle.splice(i,1); | ||
| 230 | + } | ||
| 231 | + } | ||
| 232 | + } | ||
| 233 | + console.log(kiwoom_hitter_shuffle); | ||
| 234 | + | ||
| 235 | + if(document.getElementById(x.name).name == 'kt'){ | ||
| 236 | + for(i = 0; i < kt_hitter_shuffle.length; i++){ | ||
| 237 | + if(kt_hitter_shuffle.length == 0){ | ||
| 238 | + return 0; | ||
| 239 | + } | ||
| 240 | + else if(document.getElementById(x.name).value == kt_hitter_shuffle[i][0]){ | ||
| 241 | + kt_hitter_shuffle.splice(i,1); | ||
| 242 | + } | ||
| 243 | + } | ||
| 244 | + } | ||
| 245 | + console.log(kt_hitter_shuffle); | ||
| 246 | + | ||
| 247 | + if(document.getElementById(x.name).name == 'lg'){ | ||
| 248 | + for(i = 0; i < lg_hitter_shuffle.length; i++){ | ||
| 249 | + if(lg_hitter_shuffle.length == 0){ | ||
| 250 | + return 0; | ||
| 251 | + } | ||
| 252 | + else if(document.getElementById(x.name).value == lg_hitter_shuffle[i][0]){ | ||
| 253 | + lg_hitter_shuffle.splice(i,1); | ||
| 254 | + } | ||
| 255 | + } | ||
| 256 | + } | ||
| 257 | + console.log(lg_hitter_shuffle); | ||
| 258 | + | ||
| 259 | + if(document.getElementById(x.name).name == 'lotte'){ | ||
| 260 | + for(i = 0; i < lotte_hitter_shuffle.length; i++){ | ||
| 261 | + if(lotte_hitter_shuffle.length == 0){ | ||
| 262 | + return 0; | ||
| 263 | + } | ||
| 264 | + else if(document.getElementById(x.name).value == lotte_hitter_shuffle[i][0]){ | ||
| 265 | + lotte_hitter_shuffle.splice(i,1); | ||
| 266 | + } | ||
| 267 | + } | ||
| 268 | + } | ||
| 269 | + console.log(lotte_hitter_shuffle); | ||
| 270 | + | ||
| 271 | + if(document.getElementById(x.name).name == 'nc'){ | ||
| 272 | + for(i = 0; i < nc_hitter_shuffle.length; i++){ | ||
| 273 | + if(nc_hitter_shuffle.length == 0){ | ||
| 274 | + return 0; | ||
| 275 | + } | ||
| 276 | + else if(document.getElementById(x.name).value == nc_hitter_shuffle[i][0]){ | ||
| 277 | + nc_hitter_shuffle.splice(i,1); | ||
| 278 | + } | ||
| 279 | + } | ||
| 280 | + } | ||
| 281 | + console.log(nc_hitter_shuffle); | ||
| 282 | + | ||
| 283 | + if(document.getElementById(x.name).name == 'samsung'){ | ||
| 284 | + for(i = 0; i < samsung_hitter_shuffle.length; i++){ | ||
| 285 | + if(samsung_hitter_shuffle.length == 0){ | ||
| 286 | + return 0; | ||
| 287 | + } | ||
| 288 | + else if(document.getElementById(x.name).value == samsung_hitter_shuffle[i][0]){ | ||
| 289 | + samsung_hitter_shuffle.splice(i,1); | ||
| 290 | + } | ||
| 291 | + } | ||
| 292 | + } | ||
| 293 | + console.log(samsung_hitter_shuffle); | ||
| 294 | + | ||
| 295 | + if(document.getElementById(x.name).name == 'ssg'){ | ||
| 296 | + for(i = 0; i < ssg_hitter_shuffle.length; i++){ | ||
| 297 | + if(ssg_hitter_shuffle.length == 0){ | ||
| 298 | + return 0; | ||
| 299 | + } | ||
| 300 | + else if(document.getElementById(x.name).value == ssg_hitter_shuffle[i][0]){ | ||
| 301 | + ssg_hitter_shuffle.splice(i,1); | ||
| 302 | + } | ||
| 303 | + } | ||
| 304 | + } | ||
| 305 | + console.log(ssg_hitter_shuffle); | ||
| 52 | } | 306 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -33,9 +33,155 @@ function shuffle(x){ | ... | @@ -33,9 +33,155 @@ function shuffle(x){ |
| 33 | } | 33 | } |
| 34 | } | 34 | } |
| 35 | } | 35 | } |
| 36 | + console.log(dusan_hitter_shuffle); | ||
| 36 | //나머지 팀들 똑같이 추가 | 37 | //나머지 팀들 똑같이 추가 |
| 38 | + if(x.name === "hanhwa"){ | ||
| 39 | + for(j = 0; j < hanhwa_hitter_shuffle.length; j++){ | ||
| 40 | + if(hanhwa_hitter_shuffle.length == 0){ | ||
| 41 | + continue; | ||
| 42 | + } | ||
| 43 | + else if(x.value == hanhwa_hitter_shuffle[j][0]){ | ||
| 44 | + console.log(x.value == hanhwa_hitter_shuffle[j][0]) | ||
| 45 | + return 0; | ||
| 46 | + } | ||
| 47 | + } | ||
| 48 | + for(i = 0; i < hanhwa_hitter.length; i++){ | ||
| 49 | + if(x.value == hanhwa_hitter[i][0]){ | ||
| 50 | + hanhwa_hitter_shuffle.push(hanhwa_hitter[i]); | ||
| 51 | + } | ||
| 52 | + } | ||
| 53 | + } | ||
| 54 | + console.log(hanhwa_hitter_shuffle); | ||
| 55 | + | ||
| 56 | + if(x.name === "kiwoom"){ | ||
| 57 | + for(j = 0; j < kiwoom_hitter_shuffle.length; j++){ | ||
| 58 | + if(kiwoom_hitter_shuffle.length == 0){ | ||
| 59 | + continue; | ||
| 60 | + } | ||
| 61 | + else if(x.value == kiwoom_hitter_shuffle[j][0]){ | ||
| 62 | + console.log(x.value == kiwoom_hitter_shuffle[j][0]) | ||
| 63 | + return 0; | ||
| 64 | + } | ||
| 65 | + } | ||
| 66 | + for(i = 0; i < kiwoom_hitter.length; i++){ | ||
| 67 | + if(x.value == kiwoom_hitter[i][0]){ | ||
| 68 | + kiwoom_hitter_shuffle.push(kiwoom_hitter[i]); | ||
| 69 | + } | ||
| 70 | + } | ||
| 71 | + } | ||
| 72 | + console.log(kiwoom_hitter_shuffle); | ||
| 73 | + | ||
| 74 | + if(x.name === "kt"){ | ||
| 75 | + for(j = 0; j < kt_hitter_shuffle.length; j++){ | ||
| 76 | + if(kt_hitter_shuffle.length == 0){ | ||
| 77 | + continue; | ||
| 78 | + } | ||
| 79 | + else if(x.value == kt_hitter_shuffle[j][0]){ | ||
| 80 | + console.log(x.value == kt_hitter_shuffle[j][0]) | ||
| 81 | + return 0; | ||
| 82 | + } | ||
| 83 | + } | ||
| 84 | + for(i = 0; i < kt_hitter.length; i++){ | ||
| 85 | + if(x.value == kt_hitter[i][0]){ | ||
| 86 | + kt_hitter_shuffle.push(kt_hitter[i]); | ||
| 87 | + } | ||
| 88 | + } | ||
| 89 | + } | ||
| 90 | + console.log(kt_hitter_shuffle); | ||
| 91 | + | ||
| 92 | + if(x.name === "lg"){ | ||
| 93 | + for(j = 0; j < lg_hitter_shuffle.length; j++){ | ||
| 94 | + if(lg_hitter_shuffle.length == 0){ | ||
| 95 | + continue; | ||
| 96 | + } | ||
| 97 | + else if(x.value == lg_hitter_shuffle[j][0]){ | ||
| 98 | + console.log(x.value == lg_hitter_shuffle[j][0]) | ||
| 99 | + return 0; | ||
| 100 | + } | ||
| 101 | + } | ||
| 102 | + for(i = 0; i < lg_hitter.length; i++){ | ||
| 103 | + if(x.value == lg_hitter[i][0]){ | ||
| 104 | + lg_hitter_shuffle.push(lg_hitter[i]); | ||
| 105 | + } | ||
| 106 | + } | ||
| 107 | + } | ||
| 108 | + console.log(lg_hitter_shuffle); | ||
| 109 | + | ||
| 110 | + if(x.name === "lotte"){ | ||
| 111 | + for(j = 0; j < lotte_hitter_shuffle.length; j++){ | ||
| 112 | + if(lotte_hitter_shuffle.length == 0){ | ||
| 113 | + continue; | ||
| 114 | + } | ||
| 115 | + else if(x.value == lotte_hitter_shuffle[j][0]){ | ||
| 116 | + console.log(x.value == lotte_hitter_shuffle[j][0]) | ||
| 117 | + return 0; | ||
| 118 | + } | ||
| 119 | + } | ||
| 120 | + for(i = 0; i < lotte_hitter.length; i++){ | ||
| 121 | + if(x.value == lotte_hitter[i][0]){ | ||
| 122 | + lotte_hitter_shuffle.push(lotte_hitter[i]); | ||
| 123 | + } | ||
| 124 | + } | ||
| 125 | + } | ||
| 126 | + console.log(lotte_hitter_shuffle); | ||
| 127 | + | ||
| 128 | + if(x.name === "nc"){ | ||
| 129 | + for(j = 0; j < nc_hitter_shuffle.length; j++){ | ||
| 130 | + if(nc_hitter_shuffle.length == 0){ | ||
| 131 | + continue; | ||
| 132 | + } | ||
| 133 | + else if(x.value == nc_hitter_shuffle[j][0]){ | ||
| 134 | + console.log(x.value == nc_hitter_shuffle[j][0]) | ||
| 135 | + return 0; | ||
| 136 | + } | ||
| 137 | + } | ||
| 138 | + for(i = 0; i < nc_hitter.length; i++){ | ||
| 139 | + if(x.value == nc_hitter[i][0]){ | ||
| 140 | + nc_hitter_shuffle.push(nc_hitter[i]); | ||
| 141 | + } | ||
| 142 | + } | ||
| 143 | + } | ||
| 144 | + console.log(nc_hitter_shuffle); | ||
| 145 | + | ||
| 146 | + if(x.name === "samsung"){ | ||
| 147 | + for(j = 0; j < samsung_hitter_shuffle.length; j++){ | ||
| 148 | + if(samsung_hitter_shuffle.length == 0){ | ||
| 149 | + continue; | ||
| 150 | + } | ||
| 151 | + else if(x.value == samsung_hitter_shuffle[j][0]){ | ||
| 152 | + console.log(x.value == samsung_hitter_shuffle[j][0]) | ||
| 153 | + return 0; | ||
| 154 | + } | ||
| 155 | + } | ||
| 156 | + for(i = 0; i < samsung_hitter.length; i++){ | ||
| 157 | + if(x.value == samsung_hitter[i][0]){ | ||
| 158 | + samsung_hitter_shuffle.push(samsung_hitter[i]); | ||
| 159 | + } | ||
| 160 | + } | ||
| 161 | + } | ||
| 162 | + console.log(samsung_hitter_shuffle); | ||
| 163 | + | ||
| 164 | + if(x.name === "ssg"){ | ||
| 165 | + for(j = 0; j < ssg_hitter_shuffle.length; j++){ | ||
| 166 | + if(ssg_hitter_shuffle.length == 0){ | ||
| 167 | + continue; | ||
| 168 | + } | ||
| 169 | + else if(x.value == ssg_hitter_shuffle[j][0]){ | ||
| 170 | + console.log(x.value == ssg_hitter_shuffle[j][0]) | ||
| 171 | + return 0; | ||
| 172 | + } | ||
| 173 | + } | ||
| 174 | + for(i = 0; i < ssg_hitter.length; i++){ | ||
| 175 | + if(x.value == ssg_hitter[i][0]){ | ||
| 176 | + ssg_hitter_shuffle.push(ssg_hitter[i]); | ||
| 177 | + } | ||
| 178 | + } | ||
| 179 | + } | ||
| 180 | + console.log(ssg_hitter_shuffle); | ||
| 37 | } | 181 | } |
| 38 | 182 | ||
| 183 | +////////////////remove | ||
| 184 | + | ||
| 39 | function remove(x){ | 185 | function remove(x){ |
| 40 | if(document.getElementById(x.name).name == 'kia'){ | 186 | if(document.getElementById(x.name).name == 'kia'){ |
| 41 | for(i = 0; i < kia_hitter_shuffle.length; i++){ | 187 | for(i = 0; i < kia_hitter_shuffle.length; i++){ |
| ... | @@ -49,4 +195,112 @@ function remove(x){ | ... | @@ -49,4 +195,112 @@ function remove(x){ |
| 49 | } | 195 | } |
| 50 | console.log(kia_hitter_shuffle); | 196 | console.log(kia_hitter_shuffle); |
| 51 | //나머지 팀들 똑같이 추가 | 197 | //나머지 팀들 똑같이 추가 |
| 198 | + | ||
| 199 | + if(document.getElementById(x.name).name == 'dusan'){ | ||
| 200 | + for(i = 0; i < dusan_hitter_shuffle.length; i++){ | ||
| 201 | + if(dusan_hitter_shuffle.length == 0){ | ||
| 202 | + return 0; | ||
| 203 | + } | ||
| 204 | + else if(document.getElementById(x.name).value == dusan_hitter_shuffle[i][0]){ | ||
| 205 | + dusan_hitter_shuffle.splice(i,1); | ||
| 206 | + } | ||
| 207 | + } | ||
| 208 | + } | ||
| 209 | + console.log(dusan_hitter_shuffle); | ||
| 210 | + | ||
| 211 | + if(document.getElementById(x.name).name == 'hanhwa'){ | ||
| 212 | + for(i = 0; i < hanhwa_hitter_shuffle.length; i++){ | ||
| 213 | + if(hanhwa_hitter_shuffle.length == 0){ | ||
| 214 | + return 0; | ||
| 215 | + } | ||
| 216 | + else if(document.getElementById(x.name).value == hanhwa_hitter_shuffle[i][0]){ | ||
| 217 | + hanhwa_hitter_shuffle.splice(i,1); | ||
| 218 | + } | ||
| 219 | + } | ||
| 220 | + } | ||
| 221 | + console.log(hanhwa_hitter_shuffle); | ||
| 222 | + | ||
| 223 | + if(document.getElementById(x.name).name == 'kiwoom'){ | ||
| 224 | + for(i = 0; i < kiwoom_hitter_shuffle.length; i++){ | ||
| 225 | + if(kiwoom_hitter_shuffle.length == 0){ | ||
| 226 | + return 0; | ||
| 227 | + } | ||
| 228 | + else if(document.getElementById(x.name).value == kiwoom_hitter_shuffle[i][0]){ | ||
| 229 | + kiwoom_hitter_shuffle.splice(i,1); | ||
| 230 | + } | ||
| 231 | + } | ||
| 232 | + } | ||
| 233 | + console.log(kiwoom_hitter_shuffle); | ||
| 234 | + | ||
| 235 | + if(document.getElementById(x.name).name == 'kt'){ | ||
| 236 | + for(i = 0; i < kt_hitter_shuffle.length; i++){ | ||
| 237 | + if(kt_hitter_shuffle.length == 0){ | ||
| 238 | + return 0; | ||
| 239 | + } | ||
| 240 | + else if(document.getElementById(x.name).value == kt_hitter_shuffle[i][0]){ | ||
| 241 | + kt_hitter_shuffle.splice(i,1); | ||
| 242 | + } | ||
| 243 | + } | ||
| 244 | + } | ||
| 245 | + console.log(kt_hitter_shuffle); | ||
| 246 | + | ||
| 247 | + if(document.getElementById(x.name).name == 'lg'){ | ||
| 248 | + for(i = 0; i < lg_hitter_shuffle.length; i++){ | ||
| 249 | + if(lg_hitter_shuffle.length == 0){ | ||
| 250 | + return 0; | ||
| 251 | + } | ||
| 252 | + else if(document.getElementById(x.name).value == lg_hitter_shuffle[i][0]){ | ||
| 253 | + lg_hitter_shuffle.splice(i,1); | ||
| 254 | + } | ||
| 255 | + } | ||
| 256 | + } | ||
| 257 | + console.log(lg_hitter_shuffle); | ||
| 258 | + | ||
| 259 | + if(document.getElementById(x.name).name == 'lotte'){ | ||
| 260 | + for(i = 0; i < lotte_hitter_shuffle.length; i++){ | ||
| 261 | + if(lotte_hitter_shuffle.length == 0){ | ||
| 262 | + return 0; | ||
| 263 | + } | ||
| 264 | + else if(document.getElementById(x.name).value == lotte_hitter_shuffle[i][0]){ | ||
| 265 | + lotte_hitter_shuffle.splice(i,1); | ||
| 266 | + } | ||
| 267 | + } | ||
| 268 | + } | ||
| 269 | + console.log(lotte_hitter_shuffle); | ||
| 270 | + | ||
| 271 | + if(document.getElementById(x.name).name == 'nc'){ | ||
| 272 | + for(i = 0; i < nc_hitter_shuffle.length; i++){ | ||
| 273 | + if(nc_hitter_shuffle.length == 0){ | ||
| 274 | + return 0; | ||
| 275 | + } | ||
| 276 | + else if(document.getElementById(x.name).value == nc_hitter_shuffle[i][0]){ | ||
| 277 | + nc_hitter_shuffle.splice(i,1); | ||
| 278 | + } | ||
| 279 | + } | ||
| 280 | + } | ||
| 281 | + console.log(nc_hitter_shuffle); | ||
| 282 | + | ||
| 283 | + if(document.getElementById(x.name).name == 'samsung'){ | ||
| 284 | + for(i = 0; i < samsung_hitter_shuffle.length; i++){ | ||
| 285 | + if(samsung_hitter_shuffle.length == 0){ | ||
| 286 | + return 0; | ||
| 287 | + } | ||
| 288 | + else if(document.getElementById(x.name).value == samsung_hitter_shuffle[i][0]){ | ||
| 289 | + samsung_hitter_shuffle.splice(i,1); | ||
| 290 | + } | ||
| 291 | + } | ||
| 292 | + } | ||
| 293 | + console.log(samsung_hitter_shuffle); | ||
| 294 | + | ||
| 295 | + if(document.getElementById(x.name).name == 'ssg'){ | ||
| 296 | + for(i = 0; i < ssg_hitter_shuffle.length; i++){ | ||
| 297 | + if(ssg_hitter_shuffle.length == 0){ | ||
| 298 | + return 0; | ||
| 299 | + } | ||
| 300 | + else if(document.getElementById(x.name).value == ssg_hitter_shuffle[i][0]){ | ||
| 301 | + ssg_hitter_shuffle.splice(i,1); | ||
| 302 | + } | ||
| 303 | + } | ||
| 304 | + } | ||
| 305 | + console.log(ssg_hitter_shuffle); | ||
| 52 | } | 306 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment