Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-074
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-074
2022-074
Commits
f507e92d
Commit
f507e92d
authored
Nov 13, 2022
by
Wasala W.L.M.K.S - IT19177106
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model creation complete with code modification
parent
dd479d86
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
+23
-16
frontend/images/task1/result1.png
frontend/images/task1/result1.png
+0
-0
frontend/task1.html
frontend/task1.html
+23
-16
No files found.
frontend/images/task1/result1.png
View replaced file @
dd479d86
View file @
f507e92d
17.7 KB
|
W:
|
H:
7.17 KB
|
W:
|
H:
2-up
Swipe
Onion skin
frontend/task1.html
View file @
f507e92d
...
...
@@ -19,7 +19,7 @@
}
.dropdown
{
position
:
absolute
;
/* position: absolute; */
display
:
none
;
width
:
200px
;
height
:
30px
;
...
...
@@ -30,7 +30,7 @@
}
.details
{
position
:
absolute
;
/* position: absolute; */
display
:
none
;
width
:
642px
;
height
:
550px
;
...
...
@@ -80,15 +80,6 @@
<img
id=
"result"
class=
"slide "
style=
"display: none;"
src=
"images/task1/result1.png"
>
<img
id=
"details"
class=
"details "
style=
"display: none;"
src=
"images/task1/detail.png"
>
<div
id=
"resultChart"
style=
"display: none; position: absolute; top:190px; left:60%; z-index: 9; width: 800px; height: 400px;"
>
<canvas
id=
"objectChart"
width=
"500px"
height=
"300px"
></canvas>
<canvas
id=
"typeChart"
width=
"500px"
height=
"300px"
></canvas>
</div>
<!-- dropdown for 1st bar chart-->
<div>
<select
id=
"slideList"
class=
"dropdown"
onchange=
"slideChange()"
>
...
...
@@ -114,8 +105,21 @@
<option
value=
"19"
>
Slide 19
</option>
<option
value=
"all"
>
All Slide
</option>
</select>
<button
class=
"dropdown"
onclick=
"window.print()"
>
තොරතුරු බාගත කරගන්න
</button>
</div>
<img
id=
"details"
class=
"details "
style=
"display: none;"
src=
"images/task1/detail.png"
>
<div
id=
"resultChart"
style=
"display: none; margin-left: 40px; top:190px; left:60%; z-index: 9; width: 800px; height: 400px;"
>
<h1
id=
"avgAttention"
></h1>
<canvas
id=
"objectChart"
width=
"500px"
height=
"300px"
></canvas>
<canvas
id=
"typeChart"
width=
"500px"
height=
"300px"
></canvas>
</div>
<script
type=
"text/javascript"
>
function
slideChange
()
{
...
...
@@ -905,14 +909,11 @@
var
xprediction
=
data
.
x
;
//these x coordinates are relative to the viewport
var
yprediction
=
data
.
y
;
//these y coordinates are relative to the viewport
// console.log(elapsedTime); //elapsed time is based on time since begin was called
// console.log(xprediction,yprediction);
if
(
slide
!=
"
ch
"
&&
slide
!=
"
result
"
)
{
gazeObject
=
getGazeObject
(
slide
,
xprediction
,
yprediction
)
// console.log("gazeObject")
// console.log(gazeObject)
// console.log("/gazeObject")
if
(
arr
[
slide
]
==
undefined
)
{
arr
[
slide
]
=
[];
}
...
...
@@ -2420,8 +2421,14 @@
}
typeChart
=
drawChart
(
slideNumber
,
percentArr2
,
typeChart
,
'
typeChart
'
,
'
Type Percentage
'
)
}
// avgAttention
avgAtt
=
100
-
percentArr2
.
sall
.
none
console
.
log
(
"
Average attention:
"
+
Math
.
round
(
avgAtt
*
100
)
/
100
+
"
%
"
)
$
(
"
#avgAttention
"
).
html
(
"
Average attention:
"
+
Math
.
round
(
avgAtt
*
100
)
/
100
+
"
%
"
)
$
(
"
#resultChart
"
).
show
();
$
(
"
#dropdown
"
).
show
();
$
(
"
.dropdown
"
).
show
();
$
(
"
#details
"
).
show
();
}
...
...
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