Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-ui
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
WEBGDE-Components
web-ui
Commits
cce321cd
Commit
cce321cd
authored
Sep 20, 2022
by
Jorem Magcawas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update pause metrics
parent
93dfa4d2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
13 deletions
+30
-13
demo_Metrics_20220920.csv
Web-GDE/metrics/demo_Metrics_20220920.csv
+4
-0
demo_Felizardo, Brylle Theodure - Application Form.xml
...ut/demo_Felizardo, Brylle Theodure - Application Form.xml
+7
-6
demo_Felizardo, Theodure Brylle - Application Form.xml
...ut/demo_Felizardo, Theodure Brylle - Application Form.xml
+7
-6
captureMetrics.js
Web-GDE/src/captureMetrics/captureMetrics.js
+12
-1
No files found.
Web-GDE/metrics/demo_Metrics_20220920.csv
0 → 100644
View file @
cce321cd
filename,speed,avg_speed
"Felizardo, Brylle Theodure - Application Form.TIFF",2019.4465220643233,2019.4465220643233
"Felizardo, Theodure Brylle - Application Form.TIFF",1667.6961087090797,1843.5713153867014
\ No newline at end of file
Web-GDE/output/demo_Felizardo, Brylle Theodure - Application Form.xml
View file @
cce321cd
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Image_Source_Path>
./input/Felizardo, Brylle Theodure - Application Form.TIFF
</Image_Source_Path>
<Image_Source_Path>
./input/Felizardo, Brylle Theodure - Application Form.TIFF
</Image_Source_Path>
<No_of_Keystrokes>
17
</No_of_Keystrokes>
<No_of_Keystrokes>
3
</No_of_Keystrokes>
<Processing_Time_Seconds>
4.721
</Processing_Time_Seconds>
<Processing_Time_Seconds>
5.348
</Processing_Time_Seconds>
<Surname>
asdfasd
</Surname>
<Surname>
MAGALONA
</Surname>
<Religion>
asdfasdf
</Religion>
<Religion>
BIBLE BAPTIST
</Religion>
<Birthdate>
2022-09-
14
</Birthdate>
<Birthdate>
2022-09-
07
</Birthdate>
<Age>
1
2
</Age>
<Age>
2
2
</Age>
<Civil_Status>
Single
</Civil_Status>
<Civil_Status>
Single
</Civil_Status>
\ No newline at end of file
Web-GDE/output/demo_Felizardo, Theodure Brylle - Application Form.xml
View file @
cce321cd
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Image_Source_Path>
./input/Felizardo, Theodure Brylle - Application Form.TIFF
</Image_Source_Path>
<Image_Source_Path>
./input/Felizardo, Theodure Brylle - Application Form.TIFF
</Image_Source_Path>
<No_of_Keystrokes>
3
1
</No_of_Keystrokes>
<No_of_Keystrokes>
3
</No_of_Keystrokes>
<Processing_Time_Seconds>
6.
827
</Processing_Time_Seconds>
<Processing_Time_Seconds>
6.
476
</Processing_Time_Seconds>
<Surname>
asdhfkjahsdkjh
</Surname>
<Surname>
ONG
</Surname>
<Religion>
ksajdhflkjasdf
</Religion>
<Religion>
CHRISTIAN
</Religion>
<Birthdate>
2022-09-
14
</Birthdate>
<Birthdate>
2022-09-
21
</Birthdate>
<Age>
12
</Age>
<Age>
21
</Age>
<Civil_Status>
Single
</Civil_Status>
<Civil_Status>
Single
</Civil_Status>
\ No newline at end of file
Web-GDE/src/captureMetrics/captureMetrics.js
View file @
cce321cd
...
@@ -13,6 +13,8 @@ let shortcut_flag = false
...
@@ -13,6 +13,8 @@ let shortcut_flag = false
const
csv_header
=
[
'filename'
,
'speed'
,
'avg_speed'
];
const
csv_header
=
[
'filename'
,
'speed'
,
'avg_speed'
];
let
temp
;
const
startMetricCapture
=
()
=>
{
const
startMetricCapture
=
()
=>
{
// reset key strokes
// reset key strokes
key_strokes
=
0
key_strokes
=
0
...
@@ -78,6 +80,8 @@ const stopMetricCapture = () => {
...
@@ -78,6 +80,8 @@ const stopMetricCapture = () => {
}
}
}
}
let
interval
=
null
;
const
showMetricCapture
=
()
=>
{
const
showMetricCapture
=
()
=>
{
const
obj
=
document
.
getElementById
(
"counter"
);
const
obj
=
document
.
getElementById
(
"counter"
);
if
(
key_strokes
!=
0
)
{
if
(
key_strokes
!=
0
)
{
...
@@ -86,9 +90,11 @@ const showMetricCapture = () => {
...
@@ -86,9 +90,11 @@ const showMetricCapture = () => {
rate
>=
8000
?
obj
.
className
=
"green"
:
obj
.
className
=
"red"
;
rate
>=
8000
?
obj
.
className
=
"green"
:
obj
.
className
=
"red"
;
obj
.
innerHTML
=
rate
+
" kph"
;
// immediately apply start value
obj
.
innerHTML
=
rate
+
" kph"
;
// immediately apply start value
}
}
setTimeout
(
showMetricCapture
,
1000
);
interval
=
setTimeout
(
showMetricCapture
,
1000
);
}
}
const
saveMetrics
=
(
metrics
)
=>
{
const
saveMetrics
=
(
metrics
)
=>
{
try
try
{
{
...
@@ -135,6 +141,8 @@ const pauseMetricCapture = () => {
...
@@ -135,6 +141,8 @@ const pauseMetricCapture = () => {
hideImage
();
hideImage
();
disableForm
();
disableForm
();
promptPaused
();
promptPaused
();
clearTimeout
(
interval
);
temp
=
key_strokes
;
// unpauseMetricCapture();
// unpauseMetricCapture();
// alert("PAUSED");
// alert("PAUSED");
}
}
...
@@ -144,6 +152,8 @@ const unpauseMetricCapture = () => {
...
@@ -144,6 +152,8 @@ const unpauseMetricCapture = () => {
time_pause
=
0
;
time_pause
=
0
;
unhideImage
();
unhideImage
();
enableForm
();
enableForm
();
key_strokes
=
temp
;
showMetricCapture
();
}
}
const
hideImage
=
()
=>
{
const
hideImage
=
()
=>
{
...
@@ -187,6 +197,7 @@ function promptPaused(){
...
@@ -187,6 +197,7 @@ function promptPaused(){
promptMain
.
appendChild
(
message
);
promptMain
.
appendChild
(
message
);
promptMain
.
appendChild
(
okButton
);
promptMain
.
appendChild
(
okButton
);
viewer
.
appendChild
(
promptMain
);
viewer
.
appendChild
(
promptMain
);
}
}
...
...
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