Skip to content

Commit d2114b7

Browse files
committed
💄Judge/Sign small improve
1 parent 99bb31b commit d2114b7

File tree

4 files changed

+99
-83
lines changed

4 files changed

+99
-83
lines changed

‎public/javascripts/line_sign.2022.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ app.controller('ddController', ['$scope', '$uibModal', '$log', '$timeout', '$htt
335335
};
336336

337337
$scope.nlPoints = function(){
338-
return 15 * $scope.victimNL_S + 30 * $scope.victimNL_G - 5 * $scope.misidentNL_C;
338+
return 15 * $scope.victimNL_S + 30 * $scope.victimNL_G;
339339
}
340340

341341

‎views/line_judge.pug‎

Lines changed: 68 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ html(ng-app="ddApp")
200200
.input-group-append
201201
button.btn.btn-success(type='button', ng-click='increment($index,$last)')
202202
i.fas.fa-plus(aria-hidden='true')
203-
hr(ng-show='!$last')
204-
div(ng-if="$index == EvacuationAreaLoPIndex && league != 'LineNL'", style="border: solid 3px #e74c3c;border-radius:calc(0.5rem - 1px);")
205-
h3.card-header(style="background-color: #e74c3c;color: #fff;border-radius:calc(0.2rem - 1px) calc(0.2rem - 1px) 0 0;margin-left:-1px;") {{'line.judge.rescue' | translate}}
203+
204+
div(ng-if="$index == EvacuationAreaLoPIndex && league != 'LineNL'", style="border: solid 4px #e74c3c;border-radius:calc(0.5rem - 1px);margin-top:15px;")
205+
h3.card-header(style="background-color: #e74c3c;color: #fff;border-radius:calc(0.2rem - 1px) calc(0.2rem - 1px) 0 0;") {{'line.judge.rescue' | translate}}
206206
span.badge.badge-danger {{evacuationLevel-1?'line.judge.high':'line.judge.low' | translate}}
207-
.row
207+
.row(style="padding:10px;")
208208
.col-4(ng-click="addVictimTmp('L')")
209209
span Max : {{maxLiveVictims}}
210210
br
@@ -222,68 +222,70 @@ html(ng-app="ddApp")
222222
.victim_btn(style='width:100%;position: relative;', ng-style="{'background-color': count_victim_list('K') + count_victim_tmp('K') >= 1?'#ccc':'#E1FFFE'}")
223223
img.img-thumbnail(src='/images/rescuekit-1.png', height='60px', ng-if="kitLevel==1")
224224
img.img-thumbnail(src='/images/rescuekit-2.png', height='60px', ng-if="kitLevel==2")
225-
table(border='1', style='width:100%; text-align: center; margin-top: 10px;', ng-repeat='j in range(6)', ng-if='victim_tmp.length > j*5')
226-
tbody
227-
tr
228-
td(ng-repeat='i in range(5)', ng-dblclick='delete_victim_tmp(j*5 + i)', ng-swipe-left='delete_victim_tmp(j*5 + i)')
229-
img(src='/images/liveVictim.png', width='30px', ng-if="victim_tmp[j*5 + i] == 'L'")
230-
img(src='/images/deadVictim.png', width='30px', ng-if="victim_tmp[j*5 + i] == 'D'")
231-
img(src='/images/rescuekit-1.png', width='30px', ng-if="victim_tmp[j*5 + i] == 'K' && kitLevel==1")
232-
img(src='/images/rescuekit-2.png', width='30px', ng-if="victim_tmp[j*5 + i] == 'K' && kitLevel==2")
233-
span(style='width:30px;', ng-hide='victim_tmp[j*5 + i]') ---
234-
div(style='margin-top:20px;', ng-show='victim_tmp[0]')
235-
button.btn.btn-warning(style='margin:0 10px 10px 0;', type='button', ng-click='victim_tmp_clear()')
236-
i.far.fa-trash-alt(aria-hidden='true')   Clear
237-
button.btn.btn-success(style='margin:0 10px 10px 0;', type='button', ng-click='victimRegist()')
238-
i.fas.fa-arrow-down(aria-hidden='true')   Register
239-
div(ng-show="victim_list.length > 0")
240-
hr
241-
h6 {{'line.judge.rescuedVictims' | translate}}
242-
span(style='font-size:9px;') {{'line.judge.rescuedVictimsMes' | translate}}
243-
table(border='1', style='width:100%; text-align: center; margin-top: 10px;', ng-repeat='j in range(6)', ng-if='victim_list.length > j*5 || j == 0')
244-
tbody
245-
tr
246-
th(style='text-align:center;', ng-repeat='i in range(5)') {{j*5 + i+1}}
247-
tr
248-
td(ng-repeat='i in range(5)', ng-style="{'background-color': victim_list[j*5 + i].effective?'#E1FFFE':'#ccc'}", ng-dblclick='delete_victim(j*5 + i)', ng-swipe-left='delete_victim(j*5 + i)')
249-
img(src='/images/liveVictim.png', width='30px', ng-if="victim_list[j*5 + i].type == 'L'")
250-
img(src='/images/deadVictim.png', width='30px', ng-if="victim_list[j*5 + i].type == 'D'")
251-
img(src='/images/rescuekit-1.png', width='30px', ng-if="victim_list[j*5 + i].type == 'K' && kitLevel==1")
252-
img(src='/images/rescuekit-2.png', width='30px', ng-if="victim_list[j*5 + i].type == 'K' && kitLevel==2")
253-
span(style='width:30px;', ng-hide='victim_list[j*5 + i]') ---
254-
br
255-
span(ng-show='victim_list[j*5 + i]')
256-
| {{calc_victim_multipliers(victim_list[j*5 + i].type,victim_list[j*5 + i].effective)}}
257-
div(ng-if="league == 'LineNL'", style="border: solid 3px #e74c3c;border-radius:calc(0.5rem - 1px);")
258-
h3.card-header(style="background-color: #e74c3c;color: #fff;border-radius:calc(0.2rem - 1px) calc(0.2rem - 1px) 0 0;margin-left:-1px;") {{'line.judge.rescue' | translate}} (NL)
259-
.row(style="margin-top:20px;")
260-
div(style='width:40%;font-size:10px;', align='center')
261-
img(src='/images/blackVictim.png', height='40px')
262-
div(style='width:60%;position: relative;')
263-
.input-group.mb-3(style='width:100%; height:40px;position:absolute;margin: auto;top: calc(50% - 20px);')
264-
.input-group-prepend
265-
button.btn.btn-danger(type='button', ng-click='victimNL("S",-1)')
266-
i.fas.fa-minus(aria-hidden='true')
267-
div(style='background-color: #F2F2F2; width:40%; text-align: center;')
268-
span.count {{victimNL_S}}
269-
.input-group-append
270-
button.btn.btn-success(type='button', ng-click='victimNL("S",1)')
271-
i.fas.fa-plus(aria-hidden='true')
272-
.row(style="margin-top:20px;margin-bottom:20px;")
273-
div(style='width:40%;font-size:10px;', align='center')
274-
img(src='/images/greenVictim.png', height='40px')
275-
div(style='width:60%;position: relative;')
276-
.input-group.mb-3(style='width:100%; height:40px;position:absolute;margin: auto;top: calc(50% - 20px);')
277-
.input-group-prepend
278-
button.btn.btn-danger(type='button', ng-click='victimNL("G",-1)')
279-
i.fas.fa-minus(aria-hidden='true')
280-
div(style='background-color: #F2F2F2; width:40%; text-align: center;')
281-
span.count {{victimNL_G}}
282-
.input-group-append
283-
button.btn.btn-success(type='button', ng-click='victimNL("G",1)')
284-
i.fas.fa-plus(aria-hidden='true')
225+
.col-12
226+
table(border='1', style='width:100%; text-align: center; margin-top: 10px;', ng-repeat='j in range(6)', ng-if='victim_tmp.length > j*5')
227+
tbody
228+
tr
229+
td(ng-repeat='i in range(5)', ng-dblclick='delete_victim_tmp(j*5 + i)', ng-swipe-left='delete_victim_tmp(j*5 + i)')
230+
img(src='/images/liveVictim.png', width='30px', ng-if="victim_tmp[j*5 + i] == 'L'")
231+
img(src='/images/deadVictim.png', width='30px', ng-if="victim_tmp[j*5 + i] == 'D'")
232+
img(src='/images/rescuekit-1.png', width='30px', ng-if="victim_tmp[j*5 + i] == 'K' && kitLevel==1")
233+
img(src='/images/rescuekit-2.png', width='30px', ng-if="victim_tmp[j*5 + i] == 'K' && kitLevel==2")
234+
span(style='width:30px;', ng-hide='victim_tmp[j*5 + i]') ---
235+
div(style='margin-top:20px;', ng-show='victim_tmp[0]')
236+
button.btn.btn-warning(style='margin:0 10px 10px 0;', type='button', ng-click='victim_tmp_clear()')
237+
i.far.fa-trash-alt(aria-hidden='true')   Clear
238+
button.btn.btn-success(style='margin:0 10px 10px 0;', type='button', ng-click='victimRegist()')
239+
i.fas.fa-arrow-down(aria-hidden='true')   Register
240+
div(ng-show="victim_list.length > 0")
241+
hr
242+
h6 {{'line.judge.rescuedVictims' | translate}}
243+
span(style='font-size:9px;') {{'line.judge.rescuedVictimsMes' | translate}}
244+
table(border='1', style='width:100%; text-align: center; margin-top: 10px;', ng-repeat='j in range(6)', ng-if='victim_list.length > j*5 || j == 0')
245+
tbody
246+
tr
247+
th(style='text-align:center;', ng-repeat='i in range(5)') {{j*5 + i+1}}
248+
tr
249+
td(ng-repeat='i in range(5)', ng-style="{'background-color': victim_list[j*5 + i].effective?'#E1FFFE':'#ccc'}", ng-dblclick='delete_victim(j*5 + i)', ng-swipe-left='delete_victim(j*5 + i)')
250+
img(src='/images/liveVictim.png', width='30px', ng-if="victim_list[j*5 + i].type == 'L'")
251+
img(src='/images/deadVictim.png', width='30px', ng-if="victim_list[j*5 + i].type == 'D'")
252+
img(src='/images/rescuekit-1.png', width='30px', ng-if="victim_list[j*5 + i].type == 'K' && kitLevel==1")
253+
img(src='/images/rescuekit-2.png', width='30px', ng-if="victim_list[j*5 + i].type == 'K' && kitLevel==2")
254+
span(style='width:30px;', ng-hide='victim_list[j*5 + i]') ---
255+
br
256+
span(ng-show='victim_list[j*5 + i]')
257+
| {{calc_victim_multipliers(victim_list[j*5 + i].type,victim_list[j*5 + i].effective)}}
258+
259+
div(ng-if="$index == EvacuationAreaLoPIndex && league == 'LineNL'", style="border: solid 4px #e74c3c;border-radius:calc(0.5rem - 1px);margin-top:15px;")
260+
h3.card-header(style="background-color: #e74c3c;color: #fff;border-radius:calc(0.2rem - 1px) calc(0.2rem - 1px) 0 0;") {{'line.judge.rescue' | translate}} (NL)
261+
.row(style="margin-top:20px;")
262+
div(style='width:40%;font-size:10px;', align='center')
263+
img(src='/images/blackVictim.png', height='40px')
264+
div(style='width:60%;position: relative;')
265+
.input-group.mb-3(style='width:100%; height:40px;position:absolute;margin: auto;top: calc(50% - 20px);')
266+
.input-group-prepend
267+
button.btn.btn-danger(type='button', ng-click='victimNL("S",-1)')
268+
i.fas.fa-minus(aria-hidden='true')
269+
div(style='background-color: #F2F2F2; width:40%; text-align: center;')
270+
span.count {{victimNL_S}}
271+
.input-group-append
272+
button.btn.btn-success(type='button', ng-click='victimNL("S",1)')
273+
i.fas.fa-plus(aria-hidden='true')
274+
.row(style="margin-top:20px;margin-bottom:20px;")
275+
div(style='width:40%;font-size:10px;', align='center')
276+
img(src='/images/greenVictim.png', height='40px')
277+
div(style='width:60%;position: relative;')
278+
.input-group.mb-3(style='width:100%; height:40px;position:absolute;margin: auto;top: calc(50% - 20px);')
279+
.input-group-prepend
280+
button.btn.btn-danger(type='button', ng-click='victimNL("G",-1)')
281+
i.fas.fa-minus(aria-hidden='true')
282+
div(style='background-color: #F2F2F2; width:40%; text-align: center;')
283+
span.count {{victimNL_G}}
284+
.input-group-append
285+
button.btn.btn-success(type='button', ng-click='victimNL("G",1)')
286+
i.fas.fa-plus(aria-hidden='true')
285287
//hr
286-
//.row(style="margin-top:10px;padding-bottom:20px;")
288+
.row(style="margin-top:10px;padding-bottom:20px;")
287289
div(style='width:40%;font-size:10px;', align='center')
288290
img(src='/images/misidentNL.png', height='40px')
289291
div(style='width:60%;position: relative;')
@@ -296,6 +298,7 @@ html(ng-app="ddApp")
296298
.input-group-append
297299
button.btn.btn-success(type='button', ng-click='misidentNL(1)')
298300
i.fas.fa-plus(aria-hidden='true')
301+
hr(ng-show='!$last')
299302

300303
h3.card-header
301304
i.fas.fa-door-open(aria-hidden='true')

‎views/line_sign.pug‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ html(ng-app="ddApp")
121121
div(ng-if="league=='LineNL'")
122122
h2 {{'line.sign.rescue' | translate}} (NL)
123123
.row(style="display: flex;flex-wrap: wrap;")
124-
.col-lg-8
124+
.col-lg-6
125125
.alert.alert-info(style='margin-bottom:50px;text-align:center;', role='alert')
126126
.row
127127
.col-5
@@ -144,18 +144,21 @@ html(ng-app="ddApp")
144144
span(style='font-size:25px;') {{30 * victimNL_G}} {{'common.point' | translate}}
145145
//.col-1
146146
h1(style="text-align: center;line-height: 165px;") -
147-
//.col-4
148-
.victim_btn(style='width:100%;position: relative; background-color: #E1FFFE;')
149-
img.img-thumbnail(src='/images/misidentNL.png', style="height:90px;")
150-
div(style="margin-top:10px;")
151-
span(style='font-size:1vw;color:#444;') 5 {{'common.point' | translate}} x
152-
i.fas.fa-history.fa-2x  {{misidentNL_C}}
153-
span.badge.badge-warning(style='margin-top:10px;')
154-
span(style='font-size:25px;') {{5 * misidentNL_C}} {{'common.point' | translate}}
155-
.col-lg-4
156-
.alert.alert-primary(style='margin-bottom:50px;text-align:center;', role='alert')
157-
h2 {{'line.sign.rescue' | translate}} {{'common.stotal' | translate}}
158-
h1 {{nlPoints()}} {{'common.point' | translate}}
147+
148+
.col-lg-6
149+
.alert.alert-primary(style='margin-bottom:50px;text-align:center;', role='alert')
150+
.row
151+
.col-6
152+
h2 {{'line.sign.rescue' | translate}} {{'common.stotal' | translate}}
153+
h1 {{nlPoints()}} {{'common.point' | translate}}
154+
.col-6
155+
.victim_btn(style='width:100%;position: relative; background-color: #E1FFFE;')
156+
img.img-thumbnail(src='/images/misidentNL.png', style="height:90px;")
157+
div(style="margin-top:10px;")
158+
span(style='font-size:1vw;color:#444;')
159+
i.fas.fa-history.fa-2x  {{misidentNL_C}}
160+
//span.badge.badge-warning(style='margin-top:10px;')
161+
span(style='font-size:25px;') {{5 * misidentNL_C}} {{'common.point' | translate}}
159162
hr
160163
h2 {{'line.sign.exitBonus' | translate}}
161164
.alert.alert-primary(style='margin-bottom:50px;text-align:center;', role='alert')

‎views/line_view.pug‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ html(ng-app="ddApp")
159159
div(ng-if="league=='LineNL'")
160160
h2 {{'line.sign.rescue' | translate}} (NL)
161161
.row(style="display: flex;flex-wrap: wrap;")
162-
.col-lg-8
162+
.col-lg-6
163163
.alert.alert-info(style='margin-bottom:50px;text-align:center;', role='alert')
164164
.row
165165
.col-5
@@ -190,10 +190,20 @@ html(ng-app="ddApp")
190190
i.fas.fa-history.fa-2x  {{misidentNL_C}}
191191
span.badge.badge-warning(style='margin-top:10px;')
192192
span(style='font-size:25px;') {{5 * misidentNL_C}} {{'common.point' | translate}}
193-
.col-lg-4
193+
.col-lg-6
194194
.alert.alert-primary(style='margin-bottom:50px;text-align:center;', role='alert')
195-
h2 {{'line.sign.rescue' | translate}} {{'common.stotal' | translate}}
196-
h1 {{nlPoints()}} {{'common.point' | translate}}
195+
.row
196+
.col-6
197+
h2 {{'line.sign.rescue' | translate}} {{'common.stotal' | translate}}
198+
h1 {{nlPoints()}} {{'common.point' | translate}}
199+
.col-6
200+
.victim_btn(style='width:100%;position: relative; background-color: #E1FFFE;')
201+
img.img-thumbnail(src='/images/misidentNL.png', style="height:90px;")
202+
div(style="margin-top:10px;")
203+
span(style='font-size:1vw;color:#444;')
204+
i.fas.fa-history.fa-2x  {{misidentNL_C}}
205+
//span.badge.badge-warning(style='margin-top:10px;')
206+
span(style='font-size:25px;') {{5 * misidentNL_C}} {{'common.point' | translate}}
197207
hr
198208
h2 {{'line.sign.exitBonus' | translate}}
199209
.alert.alert-primary(style='margin-bottom:50px;text-align:center;', role='alert')

0 commit comments

Comments
 (0)