-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (113 loc) · 5.55 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<html>
<head>
<!--SIO-->
<meta charset="UTF-8" />
<title>Fitts Law Experiment</title>
<meta property="og:type" content="website">
<meta property="og:url" content="https://ahmedwaleed.com/custom/fitts-law/">
<meta property="og:title" content="Fitts Law Experiment">
<meta property="og:description" content="Measure your reaction time.">
<meta property="og:image" content="https://ahmedwaleed.com/custom/fitts-law/image.jpg">
<meta property="og:image:width" content="1526">
<meta property="og:image:height" content="792">
<meta name="viewport" content="width=device-width">
<link rel="icon" type="image/png" href="media/favicon.png">
<link rel="canonical" href="https://ahmedwaleed.com/custom/">
<!---Javascript--->
<!--Utilities-->
<script src="import/js/utilities.js"></script>
<script src="import/js/for-php.js"></script>
<script src="import/js/cookies.js"></script>
<script src="import/js/stopwatch.js"></script>
<!--Features-->
<script src="import/js/hints.js"></script>
<script src="import/js/leaderboard.js"></script>
<script src="import/js/ui-scripts.js"></script>
<script src="import/js/tutorial.js"></script>
<script src="import/js/buttons.js"></script>
<script src="import/js/game-logic.js"></script>
<!--ColorPicker-->
<script src="import/piklor/min.js"></script>
<script src="import/piklor/color-picker.js"></script>
<!--JQuery-->
<script src="import/jquery/jquery.min.js"></script>
<script src="import/jquery/fetch_ip.js"></script>
<!--CSS-->
<link rel="stylesheet" href="import/css/ui-styles.css">
<link rel="stylesheet" href="import/css/hints.css">
<link rel="stylesheet" href="import/css/buttons.css">
<link rel="stylesheet" href="import/piklor/custom.css">
<link rel="stylesheet" href="import/piklor/material-wfont.min.css">
</head>
<body onload="initializeButtons()">
<script>
window.addEventListener('resize', refresh);
function refresh() { location.reload(); }
</script>
<div class="picker-wrapper" style="width: 372px; pointer-events: none;">
<button class="btn btn-default">Select color</button>
<div class="color-picker"></div>
</div>
<div class="tooltip" style="top: 29; left:29; width: 165px;">
<img src="media/blank.png" /><span class="tooltiptext" style="width: 165px; top: 40; left: 10;">Unlocks
after <span class="count-down">5</span> rounds.</span>
</div>
<div class="tooltip" style="top: 90; right: 417;">
<label id="enable_2D_label">
2D Experiment:
</label><span class="tooltiptext" style="width: 160px;">Unlocks after <span class="count-down">10</span>
rounds.</span>
</div>
<label class="switch" id="enable_2D" style="pointer-events: none;">
<input type="checkbox" onchange="randomizeButtons()">
<span class="slider round"></span>
</label>
<div class="tooltip" style="right: 282;">
<img class=" raise" id="leaderboard" src="media/trophy-locked.png" alt="Leaderboard" /><span class="tooltiptext"
style="width: 160px;">Unlocks after <span class="count-down">20</span> rounds.</span>
</div>
<div id="Leaderboard_Modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<p class="modal-title">Leaderboards</p>
</div>
<div class="modal-body">
<br>
<ul>
<li class="modal-inside">Highscores:</li>
<div id="highscores" style="overflow: hidden; text-align: center; "></div>
<br>
<li class="modal-inside">Respone Accuracy in one-dimensional task space:</li>
<div id="results-1d" style="overflow: hidden; text-align: center; "></div>
<br>
<li class="modal-inside">Respone Accuracy in two-dimensional task space:</li>
<div id="results-2d" style="overflow: hidden; text-align: center; "></div>
<br>
<li class="modal-inside">Developed by: Ahmed Waleed.</li>
<div class="li">Feel free to play around your progress is never wasted.</div>
<br>
<br>
<br>
<br>
<br>
</ul>
</div>
</div>
</div>
<div class="button" id="center-button" onmousedown="lockButton(this,0)">
<div id="empty"><img src="media/dot.png" alt="" /></div>
<a href="#" style="visibility: hidden;"><strong>1</strong></a>
</div>
<div class="button" id="right-button" onmousedown="lockButton(this,1)">
<div id="right-arrow"><img src="media/right_arrow.png" alt="" /></div>
<a href="#" style="visibility: hidden;" id="right-text"><strong>2</strong></a>
</div>
<div class=" button" id="left-button" onmousedown="lockButton(this,2)">
<div id="left-arrow"><img src="media/left_arrow.png" alt="" /></div>
<a href="#" style="visibility: hidden;" id="left-text"><strong>3</strong></a>
</div>
<div class="credits" style="left:28;">Time: <span id="time"></span></div>
<a href="https://github.com/EngAhmedWaleed/Fitts-Law" target="_blank" class="credits"><button>View on GitHub
<img src="media/github.png" id="github" height="14px" /></button></a>
</body>
</html>