Skip to content

Commit

Permalink
fix : record finish
Browse files Browse the repository at this point in the history
  • Loading branch information
ha-seungwon committed Aug 17, 2023
1 parent bf9ace5 commit 71291fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/main/resources/static/js/record.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,16 @@ async function fetchMyInfo() {
currentScore.innerText = "현재 점수 : " + responseScoreInfoValue.currentScore + "점"
expectedPassPercent.innerText = "합격 예상 :" + responseScoreInfoValue.expectedPassPercent.toFixed(2) + "%"

if(responseScoreInfoValue.expectedPassPercent == 0) {
if(responseScoreInfoValue.expectedPassPercent >= 95 ) {
expectedGrade.innerText = "예측 결과 : 합격 확실"
}
if(responseScoreInfoValue.expectedPassPercent ==1) {
if(responseScoreInfoValue.expectedPassPercent >= 85 && responseScoreInfoValue.expectedPassPercent < 95) {
expectedGrade.innerText = "예측 결과 : 합격 유력"
}
if(responseScoreInfoValue.expectedPassPercent == 2) {
if(responseScoreInfoValue.expectedPassPercent >= 80 && responseScoreInfoValue.expectedPassPercent < 85) {
expectedGrade.innerText = "예측 결과 : 탈락 예상"
}
if(responseScoreInfoValue.expectedPassPercent == 3) {
if(responseScoreInfoValue.expectedPassPercent < 80 ) {
expectedGrade.innerText = "예측 결과 : 탈락 유력"
}
}
Expand All @@ -170,8 +170,7 @@ async function monthlyRecordsGraph() {
const yearScores = await fetch(currentDomain + "/api/score/year")
const expectedScores = await fetch(currentDomain + "/api/score/expect")

let percentage = (100-((await expectedScores.json()).currentPercentile))

let percentage = (100-((await expectedScores.json()).currentPercentile)).toFixed();
const container = d3.select("#gauge-container");
const width = 256;
const height = 214;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/js/setting-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ document.addEventListener("DOMContentLoaded", function () {
console.log(passwordMachResult1,passwordMachResult2);
// Call API to save password 여기서 저장 api 호출~~!!
const restPassword = passwordInput.value
const resetApplicationTypeKey = dropdownText.textContent
let resetApplicationTypeKey = dropdownText.textContent


if (resetApplicationTypeKey==="경찰직공무원(남)"){
Expand Down

0 comments on commit 71291fa

Please sign in to comment.