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
1d835085
Commit
1d835085
authored
Oct 06, 2022
by
Jorem Magcawas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
bbf00f27
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
+26
-4
disable.js
Web-GDE/disable.js
+20
-0
index.html
Web-GDE/index.html
+3
-1
captureMetrics.js
Web-GDE/src/captureMetrics/captureMetrics.js
+2
-2
tiffViewer.js
Web-GDE/src/tiffViewer/tiffViewer.js
+1
-1
No files found.
Web-GDE/disable.js
0 → 100644
View file @
1d835085
window
.
onclick
=
(
event
)
=>
{
if
(
event
.
path
[
0
].
id
==
'pause'
)
{
disableForm
();
}
if
(
event
.
path
[
0
].
id
==
'continue'
)
{
enableForm
();
}
}
function
disableForm
()
{
var
element
=
document
.
getElementById
(
"TiffViewer_ButtonContainer"
);
element
.
style
.
visibility
=
'hidden'
;
}
function
enableForm
()
{
var
element
=
document
.
getElementById
(
"TiffViewer_ButtonContainer"
);
element
.
style
.
visibility
=
'visible'
;
}
Web-GDE/index.html
View file @
1d835085
...
@@ -149,6 +149,7 @@
...
@@ -149,6 +149,7 @@
</script>
</script>
<script
src=
"./src/endSession/endSession.js"
></script>
<script
src=
"./src/endSession/endSession.js"
></script>
<script
src=
"./src/tiffViewer/tiffViewer.js"
></script>
<script
src=
"./src/tiffViewer/tiffViewer.js"
></script>
<!-- <script src="./src/highlight/highlight.js"></script> disble highlight-->
<script
src=
"./disable.js"
></script>
<!-- <script src="./src/highlight/highlight.js"></script> -->
</html>
</html>
\ No newline at end of file
Web-GDE/src/captureMetrics/captureMetrics.js
View file @
1d835085
...
@@ -65,7 +65,6 @@ const startMetricCapture = () => {
...
@@ -65,7 +65,6 @@ const startMetricCapture = () => {
window
.
onclick
=
(
event
)
=>
{
window
.
onclick
=
(
event
)
=>
{
if
(
event
.
path
[
0
].
id
==
'pause'
)
{
if
(
event
.
path
[
0
].
id
==
'pause'
)
{
console
.
log
(
"im paused"
);
pauseMetricCapture
();
pauseMetricCapture
();
}
}
}
}
...
@@ -102,7 +101,7 @@ const showMetricCapture = () => {
...
@@ -102,7 +101,7 @@ const showMetricCapture = () => {
let
time_spent
=
((
Date
.
now
()
-
time_start
)
/
1000
)
-
time_pause_spent
;
let
time_spent
=
((
Date
.
now
()
-
time_start
)
/
1000
)
-
time_pause_spent
;
let
rate
=
((
key_strokes
/
time_spent
)
*
3600
).
toFixed
(
0
);
let
rate
=
((
key_strokes
/
time_spent
)
*
3600
).
toFixed
(
0
);
rate
>=
ALLOWED_KPH
?
obj
.
className
=
"green"
:
obj
.
className
=
"red"
;
rate
>=
ALLOWED_KPH
?
obj
.
className
=
"green"
:
obj
.
className
=
"red"
;
obj
.
innerHTML
=
rate
+
" kph"
;
// immediately apply start value
obj
.
innerHTML
=
(
rate
<
0
?
0
:
rate
)
+
" kph"
;
// immediately apply start value
}
}
interval
=
setTimeout
(
showMetricCapture
,
1000
);
interval
=
setTimeout
(
showMetricCapture
,
1000
);
}
}
...
@@ -203,6 +202,7 @@ function promptPaused() {
...
@@ -203,6 +202,7 @@ function promptPaused() {
message
.
innerHTML
=
'Session Paused'
;
message
.
innerHTML
=
'Session Paused'
;
var
okButton
=
document
.
createElement
(
'button'
);
var
okButton
=
document
.
createElement
(
'button'
);
okButton
.
setAttribute
(
"id"
,
"continue"
);
okButton
.
innerHTML
=
'continue'
;
okButton
.
innerHTML
=
'continue'
;
okButton
.
onclick
=
function
()
{
okButton
.
onclick
=
function
()
{
promptMain
.
style
.
display
=
'none'
;
promptMain
.
style
.
display
=
'none'
;
...
...
Web-GDE/src/tiffViewer/tiffViewer.js
View file @
1d835085
...
@@ -616,6 +616,6 @@ function TIFFViewer(xhr, TiffViewerImageName) {
...
@@ -616,6 +616,6 @@ function TIFFViewer(xhr, TiffViewerImageName) {
div.scrollTop += 20;
div.scrollTop += 20;
}
}
});
});
initHighlight();
//
initHighlight();
}
}
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