-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
37 lines (37 loc) · 2.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>EMDR</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<div id="app" v-bind:style="{ backgroundColor: background, cursor: (isRun ? 'none' : '')}">
<b-navbar type="dark" variant="dark" fixed="top" v-show="menu">
<b-navbar-brand>EMDR</b-navbar-brand>
<b-navbar-nav>
<b-form inline>
<b-button :pressed.sync="isRun" v-if="isRun" variant="danger" class="mx-1">Stop [↵]</b-button>
<b-button :pressed.sync="isRun" v-else variant="success" class="mx-1">Start [↵]</b-button>
<b-form-select v-model="direction" :options="directions" class="mx-1"></b-form-select>
<b-form-spinbutton v-model="speed" min="1" max="240" :formatter-fn="speedFormatter" class="mx-1"></b-form-spinbutton>
<b-form-spinbutton v-model="durationTotal" min="1" max="999" :formatter-fn="durationTotalFormatter" class="mx-1"></b-form-spinbutton>
<b-form-spinbutton v-model="width" min="1" max="100" :formatter-fn="widthFormatter" class="mx-1"></b-form-spinbutton>
<verte v-model="background" model="rgb" class="mx-1"></verte>
<verte v-model="foreground" model="rgb" class="mx-1"></verte>
<b-form-checkbox v-model="circle" size="lg" class="mx-1">Circles [C]</b-form-checkbox>
<b-form-checkbox v-model="sound" size="lg" class="mx-1">Sound [S]</b-form-checkbox>
</b-form>
</b-navbar-nav>
<b-navbar-nav class="ml-auto">
<b-button-close v-on:click="closeFullScreeen"></b-button-close>
</b-navbar-nav>
</b-navbar>
<div id="emdr-squares" v-on:click="toggleRun">
<span v-bind:class="[circle ? 'circle' : '', 'emdr-square']" v-for="n in squareNumber" v-bind:style="{ backgroundColor: ( n == squareActive ? foreground : background ), width: width + 'px', height: width + 'px', marginTop: (direction == '1' ? squareMarginTop * n + 'px' : 'auto'), marginBottom: (direction == '2' ? squareMarginTop * n + 'px' : 'auto')}"></span>
</div>
</div>
<script src="dist/app.js"></script>
<link type="text/css" rel="stylesheet" href="dist/app.css" />
</body>
</html>