Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DHAS
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thitichaipun Wutthisak
DHAS
Commits
d03b679c
Commit
d03b679c
authored
Mar 18, 2021
by
peema_phongam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
single choice float score
parent
4be4cd00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
PreviewExam.Controller.js
...b.war/JS/AngularTools/JobRouter/PreviewExam.Controller.js
+2
-2
preview.singlechoice.html
.../JS/AngularTools/JobRouter/exam/preview.singlechoice.html
+1
-1
No files found.
hrAppWeb.war/JS/AngularTools/JobRouter/PreviewExam.Controller.js
View file @
d03b679c
...
...
@@ -517,7 +517,7 @@ angular.module('myHR').controller('PreviewExam', ['$scope', '$http', '$mdDialog'
templateUrl
:
'../JS/AngularTools/JobRouter/exam/preview.singlechoice.html'
,
link
:
function
(
$scope
,
element
,
attr
){
$scope
.
getMaxScore
=
function
(){
return
parse
In
t
(
Math
.
max
.
apply
(
null
,
$scope
.
obj
.
choice
.
map
(
ch
=>
ch
.
value
)))
return
parse
Floa
t
(
Math
.
max
.
apply
(
null
,
$scope
.
obj
.
choice
.
map
(
ch
=>
ch
.
value
)))
}
$scope
.
getScore
=
function
(){
...
...
@@ -526,7 +526,7 @@ angular.module('myHR').controller('PreviewExam', ['$scope', '$http', '$mdDialog'
if
(
$scope
.
getMaxScore
()
!=
0
){
if
(
objselect
!=
undefined
&&
(
objselect
.
value
!=
''
&&
objselect
.
value
!=
null
)){
result
=
parse
In
t
(
objselect
.
value
)
result
=
parse
Floa
t
(
objselect
.
value
)
}
}
...
...
hrAppWeb.war/JS/AngularTools/JobRouter/exam/preview.singlechoice.html
View file @
d03b679c
...
...
@@ -10,6 +10,6 @@
<div
class=
'row'
>
<div
class=
'col-xs-1 col-sm-1 col-md-1'
></div>
<div
class=
'col-xs-10 col-sm-10 col-md-10'
>
<label
class=
'score-show'
>
Score: {{ getScore() }} / {{ getMaxScore() }}
</
div
>
<label
class=
'score-show'
>
Score: {{ getScore() }} / {{ getMaxScore() }}
</
label
>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment