-
Notifications
You must be signed in to change notification settings - Fork 3
/
brianwave.html
110 lines (86 loc) · 3.93 KB
/
brianwave.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href ="css/bootstrap.min.css">
<link rel="stylesheet" href="css/custom_css.css">
<script src="js/d3.v4.min.js"></script>
<title>Brainwave Visualization</title>
</head>
<body>
<div class="container">
<div class="row" id="row_title" style="text-align: center;">
<div class="col">
<h1 style="color: rgb(25, 231, 221);">Brainwave Visualization</h1>
</div>
</div>
<div class="row" id="row_0">
<div class="col" style="text-align: center;">
<button type="button" class="btn btn-primary btn-lg">Raw Brainwave Data (updated every 2 seconds)</button>
<h5 id="sensor_status">Bad connection and/or electrode not touching the skin</h5>
<script src="js/noise_status.js"></script>
</div>
</div>
<hr>
<div class="row" id="row_1">
<div class="col" style="text-align: center;">
<h3 style="color: rgb(25, 231, 221);">Raw Brainwave Data</h3>
<div id="raw_value"></div>
<script src="js/raw_value.js"></script>
</div>
</div>
<hr>
<div class="row" id="row_2">
<div class="col" style="text-align: center;">
<h3 style="color: rgb(25, 138, 231);">Brainwave Bands Strength</h3>
<h5 style="color: rgb(25, 138, 231);"> <------- Low <span style="color: rgb(212, 160, 17);">Brain Activity</span> High --------></h5>
<div id="band_value"></div>
<script src="js/bands_value.js"></script>
</div>
</div>
<hr>
<div class="row" id="row_3">
<div class="col" style="text-align: center;">
<h3 style="color: rgb(231, 142, 25);">Welch's Periodogram</h3>
<div id="welch_value"></div>
<script src="js/welch_value.js"></script>
</div>
</div>
<hr>
<div class="row" id="row_4">
<div class="col" style="text-align: center;">
<h3 style="color: rgb(129, 236, 115);">Brainwave Spectrogram</h3>
<div id="spectrogram">
<img id='spect_img' src="data/spectrogram.png?1576573831">
</div>
</div>
</div>
<hr>
<div class="row" id="row_5">
<div class="col" style="text-align: center;">
<h3 style="color:rgb(6, 161, 167);">Brainwave Sound Visualization (if you can hear it)</h3>
<div id="sound_value"></div>
<script src="js/sound_value.js"></script>
</div>
</div>
<hr>
<div class="row" id="row_6">
<div class="col" style="text-align: center;">
<h3 style="color: rgb(6, 161, 167);">Brainwave Audio</h3>
<audio controls>
<source id = "audio_data" src="data/brain_wave_sound.mp3?1576573831" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
</div>
<hr>
</div>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
</body>
</html>