Showing
1 changed file
with
8 additions
and
6 deletions
... | @@ -93,7 +93,7 @@ | ... | @@ -93,7 +93,7 @@ |
93 | </div> | 93 | </div> |
94 | <div class="question-field question-grade">몇학년인가요?</div> | 94 | <div class="question-field question-grade">몇학년인가요?</div> |
95 | <div class="input-grade"><div class="custom-select" style="width:208px; margin-right:40px"> | 95 | <div class="input-grade"><div class="custom-select" style="width:208px; margin-right:40px"> |
96 | - <select> | 96 | + <select name="semester" id="semester"> |
97 | <option value="0">1학년 1학기</option> | 97 | <option value="0">1학년 1학기</option> |
98 | <option value="sem-1-1">1학년 1학기</option> | 98 | <option value="sem-1-1">1학년 1학기</option> |
99 | <option value="sem-1-2">1학년 2학기</option> | 99 | <option value="sem-1-2">1학년 2학기</option> |
... | @@ -107,7 +107,7 @@ | ... | @@ -107,7 +107,7 @@ |
107 | </div></div> | 107 | </div></div> |
108 | </div> | 108 | </div> |
109 | <a href="#result" class="button2 text-center tm-down-arrow-link"> | 109 | <a href="#result" class="button2 text-center tm-down-arrow-link"> |
110 | - <button style= "color:black" class="fas fa-3x fa-caret-down tm-down-arrow" type="button" onclick="semester();return false;">계산해보기</button> | 110 | + <button style= "color:black" class="fas fa-3x fa-caret-down tm-down-arrow" type="button" onclick="semester()">계산해보기</button> |
111 | </a> | 111 | </a> |
112 | </div> | 112 | </div> |
113 | </section> | 113 | </section> |
... | @@ -429,6 +429,8 @@ | ... | @@ -429,6 +429,8 @@ |
429 | var since, until, salary, dish, everest, earth | 429 | var since, until, salary, dish, everest, earth |
430 | 430 | ||
431 | // 임시값 지정 | 431 | // 임시값 지정 |
432 | + var since = 0 | ||
433 | + var until = 0 | ||
432 | var time = 2 | 434 | var time = 2 |
433 | var distance = 30000 | 435 | var distance = 30000 |
434 | var pay = 100000 | 436 | var pay = 100000 |
... | @@ -475,10 +477,10 @@ | ... | @@ -475,10 +477,10 @@ |
475 | sum(input) | 477 | sum(input) |
476 | } | 478 | } |
477 | 479 | ||
478 | - document.getElementById("since").innerHTML = since | 480 | + document.getElementById("since").innerHTML = since.toLocaleString(); |
479 | - document.getElementById("until").innerHTML = until | 481 | + document.getElementById("until").innerHTML = until.toLocaleString(); |
480 | - document.getElementById("salary").innerHTML = salary | 482 | + document.getElementById("salary").innerHTML = salary.toLocaleString(); |
481 | - document.getElementById("dish").innerHTML = dish | 483 | + document.getElementById("dish").innerHTML = dish.toLocaleString(); |
482 | document.getElementById("everest").innerHTML = everest | 484 | document.getElementById("everest").innerHTML = everest |
483 | document.getElementById("earth").innerHTML = earth | 485 | document.getElementById("earth").innerHTML = earth |
484 | } | 486 | } | ... | ... |
-
Please register or login to post a comment