-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
63 lines (59 loc) · 2.73 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css">
<link rel="stylesheet" href="style.css">
<title>Fitts's Law Experiment</title>
</head>
<body>
<div id="app">
<section v-if="!hasExperimentStarted && !hasExperimentEnded" class="hero is-primary is-fullheight">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title">Fitts's Law Experiment</h1>
<h2 class="subtitle">COMP4020 HCI II</h2>
<button type="button" class="button is-primary is-inverted is-large" @click="startExperiment">Start
Experiment</button>
</div>
</div>
</section>
<section v-if="hasExperimentStarted && !hasExperimentEnded && beforeTrialsSetStart && hasTrialsSetEnded" class="hero is-light is-fullheight">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title">{{ trialSetScreenMsg }}</h1>
<button type="button" class="button is-primary is-large" @click="startTrialSet">Continue</button>
</div>
</div>
</section>
<div v-if="hasExperimentStarted && !beforeTrialsSetStart && !hasTrialEnded" class="experiment-container" :class="{'has-background-danger': isErrorSelected}"
@click="recordError">
<button class="button fitts" :class="startBtnClass" @click="selectedStart" type="button">S</button>
<button v-if="isStartSelected" class="button is-warning fitts" :class="targetBtnClass" @click="selectedTarget"
type="button">T</button>
</div>
<section v-if="hasTrialEnded && !hasExperimentEnded" class="hero is-light is-fullheight">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title">Trials Completed</h1>
<h2 class="subtitle">{{ this.numTrials }} / {{ this.MAX_NUM_TRIALS }}</h2>
<button type="button" class="button is-primary is-inverted is-large" @click="startTrial">Continue</button>
</div>
</div>
</section>
<section v-if="hasExperimentEnded" class="hero is-light is-fullheight">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title">Thank you!</h1>
<hr>
<a type="button" class="button is-primary is-primary is-large" :href="downloadLink" download="results.csv">Download</a>
</div>
</div>
</section>
</div>
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.22/dist/vue.js"></script>
<script src="app.js"></script>
</body>
</html>