-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (90 loc) · 3.99 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Eye Movement Therapy - Free Online EMDR</title>
<meta name="description" content="A simple and free web based tool for psychologists and therapists to use during EMDR therapy.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />
<link rel="stylesheet" href="styles.css">
<link rel="canonical" href="http://eyemovement.online"/>
</head>
<body>
<div id="gameContainer">
<canvas id="myCanvas"></canvas>
</div>
<div id="buttons">
<h2>Eye Movement Therapy</h2>
<h3>Digital EMDR</h3>
<br>
<p>Press spacebar or click <button id="startButton" onClick="startButton()">Start!</button> to start!</p>
<p>Remote window control
<button id="startRemoteButton" onClick="startRemote()" style='background-color:#04AA6D'>Start remote</button>
<button id="openRemoteButton" onClick="openSecondaryWindow()">Open</button>
</p>
<br>
<div>
<span>Mode: </span><span style='font-weight:bold;' id='modeDisplay'></span>
<div style="margin-top:-20px;">
<button id="blinkMode" onClick="blinkMode()">Blink</button>
<button id="sineMode" onClick="sineMode()">Sine</button>
<button id="sweepMode" onClick="sweepMode()">Sweep</button>
<button id="bounceMode" onClick="bounceMode()">Bounce</button>
</div>
</div>
<br><br>
<span>Background colour  </span>
<button id="greyBackgroundButton" onClick="backgroundColor('#000')"></button>
<button id="blackBackgroundButton" onClick="backgroundColor('#9c9c9c')"></button>
<br>
<br>
<span>Ball colour  </span>
<button id="orangeColorButton" onClick="chooseColor('orange')"></button>
<button id="deepPinkColorButton" onClick="chooseColor('deeppink')"></button>
<button id="pinkColorButton" onClick="chooseColor('pink')"></button>
<button id="yellowColorButton" onClick="chooseColor('#FFD700')"></button>
<button id="blueColorButton" onClick="chooseColor('deepskyblue')"></button>
<br>
<br>
<div class="slidecontainer">
<span>Speed  </span><span id="displaySpeed"></span>
<input type="range" min="0" max="10" value="7" class="slider" id="speedRange">
</div>
<br>
<div class="slidecontainer">
<span>Bounce  </span><span id="displayBounce"></span>
<input type="range" min="0" max="10" value="2" class="slider" id="bounceRange">
</div>
<br>
<div class="slidecontainer">
<span>Size  </span><span id="displaySize"></span>
<input type="range" min="5" max="100" value="40" class="slider" id="sizeRange">
</div>
<div id="toggleButtons" style='margin: 30px 0 5px 0;'>
<button onClick="toggleTimer()" style='margin-top:-10px'>Toggle timer</button>
<button onClick="toggleFullscreen()" style='margin-top:-10px'>Toggle fullscreen</button>
</div>
<div style="margin-top: 85px;">
<div style="text-overflow:clip; width:180px; font-size: small;">
<a style="color: rgb(129, 129, 129); font-weight: 600;" href="http://eyemovement.online/about"><span>How do I use this tool?</span></a>
</div>
<div style="float:right; margin-top: -25px;">
<button id="resetButton" onClick="reloadPage()">Reset page</button>
</div>
</div>
</div>
<p id="timer" style="font-size: 20px;">
<span id="seconds">0</span> s
<br>
<span id="hertz">0</span> Hz
</p>
<script defer src="./index.js"></script>
</body>
</html>