Joung Jiwon

함수 연결 수정

......@@ -93,7 +93,7 @@
</div>
<div class="question-field question-grade">몇학년인가요?</div>
<div class="input-grade"><div class="custom-select" style="width:208px; margin-right:40px">
<select>
<select name="semester" id="semester">
<option value="0">1학년 1학기</option>
<option value="sem-1-1">1학년 1학기</option>
<option value="sem-1-2">1학년 2학기</option>
......@@ -107,7 +107,7 @@
</div></div>
</div>
<a href="#result" class="button2 text-center tm-down-arrow-link">
<button style= "color:black" class="fas fa-3x fa-caret-down tm-down-arrow" type="button" onclick="semester();return false;">계산해보기</button>
<button style= "color:black" class="fas fa-3x fa-caret-down tm-down-arrow" type="button" onclick="semester()">계산해보기</button>
</a>
</div>
</section>
......@@ -429,6 +429,8 @@
var since, until, salary, dish, everest, earth
// 임시값 지정
var since = 0
var until = 0
var time = 2
var distance = 30000
var pay = 100000
......@@ -475,10 +477,10 @@
sum(input)
}
document.getElementById("since").innerHTML = since
document.getElementById("until").innerHTML = until
document.getElementById("salary").innerHTML = salary
document.getElementById("dish").innerHTML = dish
document.getElementById("since").innerHTML = since.toLocaleString();
document.getElementById("until").innerHTML = until.toLocaleString();
document.getElementById("salary").innerHTML = salary.toLocaleString();
document.getElementById("dish").innerHTML = dish.toLocaleString();
document.getElementById("everest").innerHTML = everest
document.getElementById("earth").innerHTML = earth
}
......