-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (82 loc) · 3.72 KB
/
index.html
File metadata and controls
92 lines (82 loc) · 3.72 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<link rel="stylesheet" href="./css/style.css">
<title>Auditory Stroop Task | LPMB Lab</title>
</head>
<body class="container bg-primary min-vh-100 d-flex flex-column align-items-center justify-content-center text-center">
<section class="container" id="landing">
<button class="btn btn-light text-primary shadow-lg w-100 p-5 fw-bold" onclick="showForm()">New
Participant</button>
</section>
<section class="d-none bg-white p-5 shadow-sm rounded" id="newParticipantForm">
<form onsubmit="formSubmitHandler(); return false;">
<div class="mb-3">
<label for="participantID" class="form-label">Participant ID</label>
<input type="number" class="form-control" id="participantID">
</div>
<div class="mb-3">
<label for="numTrials" class="form-label">Number of Trials</label>
<input type="number" min="1" class="form-control" id="numTrials">
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="recordData" checked>
<label class="form-check-label" for="recordData">Record data</label>
</div>
<button type="submit" class="btn btn-primary d-block mx-auto mt-5 w-100 shadow-sm">Start</button>
<button type="button" onclick="showLanding();"
class="btn btn-primary d-block mx-auto mt-3 w-100 shadow-sm">Cancel</button>
</form>
</section>
<section class="w-100 w-md-50 w-lg-25 d-none" id="controls">
<audio src="./assets/audio/0.wav" , id="audio0"></audio>
<audio src="./assets/audio/1.wav" , id="audio1"></audio>
<audio src="./assets/audio/2.wav" , id="audio2"></audio>
<audio src="./assets/audio/3.wav" , id="audio3"></audio>
<p class="text-light fs-5" id="isRecording"></p>
<p class="text-light fs-4" id="currentTrial"></p>
<div class="container">
<div class="row gx-3 my-3">
<div class="col">
<button type="button" onclick="play(2)" class="btn btn-light py-4 text-primary text-uppercase fw-bold col-12">
HIGH <br /> “LOW”
</button>
</div>
<div class="col">
<button type="button" onclick="play(3)"
class="btn btn-light py-4 text-primary text-uppercase fw-bold col-12">
HIGH <br /> “HIGH”
</button>
</div>
</div>
<div class="row gx-3 my-3">
<div class="col">
<button type="button" onclick="play(0)"
class="btn btn-light py-4 text-primary text-uppercase fw-bold col-12">
LOW <br /> “LOW”
</button>
</div>
<div class="col">
<button type="button" onclick="play(1)"
class="btn btn-light py-4 text-primary text-uppercase fw-bold col-12">
LOW <br /> “HIGH”
</button>
</div>
</div>
<button class="btn btn-light text-primary mt-5 shadow-lg w-100 p-5 fw-bold" id="playNext"
onclick="playNext()">Play
Next</button>
</div>
</section>
<script src="./js/script.js"></script>
</body>
</html>