/
builder.html
261 lines (217 loc) · 9.7 KB
/
builder.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Web.io | Builder </title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-161702273-1"></script>
<script src="https://unpkg.com/driver.js/dist/driver.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/driver.js/dist/driver.min.css">
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-161702273-1');
</script>
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet">
<link href="dist/grapesjs-preset-webpage.min.css" rel="stylesheet">
<!-- <script src="//feather.aviary.com/imaging/v3/editor.js"></script> -->
<script src="https://static.filestackapi.com/v3/filestack-0.1.10.js"></script>
<script src="https://unpkg.com/grapesjs"></script>
<script src="dist/grapesjs-preset-webpage.min.js"></script>
<!-- <script src="path/to/grapesjs-navbar.min.js"></script> -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="shortcut icon" type="image/png" href="https://i.imgur.com/wOXjgvD.png"/>
<link rel="stylesheet" href="style.css">
<style>
body,
html {
height: 100%;
margin: 0;
}
</style>
</head>
<body>
<div id="mydiv" class="first-popover">
<div id="mydivheader"><img src="https://static.thenounproject.com/png/581820-200.png" width="20px" height="auto" alt=""></div>
<div id="voice-box">
<div class="text-box" contenteditable="true"></div>
<label id="voice_message">Say a command</label>
<div class="progress" id="progress"></div>
<i class="fa fa-microphone mic" id="mic"></i>
<br>
<!-- shows list of all components -->
<div class="btn-group float-left" id="box-settings">
<button type="button" class="btn btn-secondary dropdown-toggle" onclick="showAllComponents()" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-list" aria-hidden="true"></i>
</button>
<div class="dropdown-menu" style="background: white;color: black;">
<div class="Center-Content" style="height:300px;overflow:scroll;">
<ul id="components-list" class="list-group">
</ul>
</div>
</div>
</div>
<!-- shows voices -->
<div class="btn-group float-left" style="margin-left: 13px;" id="person-settings">
<button type="button" class="btn btn-secondary dropdown-toggle" onclick="showAllVoices()" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-user" aria-hidden="true"></i>
</button>
<div class="dropdown-menu" style="background: white;color: black;">
<!-- <div class="Center-Block Absolute-Center is-Fixed is-Variable Modal" id="Fixed-Modal" style="height:100%;overflow:scroll;"> -->
<div class="Center-Content" style="height:300px;overflow:scroll;">
<ul id="voices-list" class="list-group">
</ul>
</div>
<!-- </div> -->
</div>
</div>
<!-- adjust voices -->
<div class="btn-group float-right" id="voice-settings">
<button type="button" class="btn btn-secondary dropdown-toggle" onclick="" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-gear" aria-hidden="true"></i>
</button>
<div class="dropdown-menu" style="background: white;color: black;">
<div class="Center-Content" style="height:300px;overflow:scroll;">
<ul id="voices-list" class="list-group">
<!-- volume section -->
<li>
<div class="row justify-content-center">
<span for="Pitch">Volume</span>
</div>
<div class="d-flex justify-content-center my-4">
<input id="volumeSlider" class="border-0 ml-2" type="range" step="0.1" min="0" max="1" />
<span class="font-weight-bold text-primary ml-2 mt-1 volumeValueSpan"></span>
</div>
</li>
<!-- pitch section -->
<li>
<div class="row justify-content-center">
<span for="Pitch">Pitch</span>
</div>
<div class="d-flex justify-content-center my-4">
<input id="pitchSlider" class="border-0 ml-2" type="range" step="0.1" min="0" max="2" />
<span class="font-weight-bold text-primary ml-2 mt-1 pitchValueSpan"></span>
</div>
</li>
<!-- rate section -->
<li>
<div class="row justify-content-center">
<span for="Rate">Rate</span>
</div>
<div class="d-flex justify-content-center my-4">
<input id="rateSlider" class="border-0 ml-2" type="range" step="0.1" min="0" max="10" value="1"/>
<span class="font-weight-bold text-primary ml-2 mt-1 rateValueSpan"></span>
</div>
</li>
</ul>
</div>
<!-- </div> -->
</div>
</div>
</div>
</div>
<div id="gjs" style="height:0px; overflow:hidden">
<div class="panel">
<h1 class="welcome">Welcome to</h1>
<div class="big-title">
<span>Web.io</span>
</div>
<div class="description">
Click on mic and say any command from list button bellow
</div>
<!-- Example single danger button -->
</div>
<style>
.panel {
width: 90%;
max-width: 700px;
border-radius: 3px;
padding: 30px 20px;
margin: 150px auto 0px;
background-color: #d983a6;
box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.25);
color:rgba(255,255,255,0.75);
font: caption;
font-weight: 100;
}
.welcome {
text-align: center;
font-weight: 100;
margin: 0px;
}
.logo {
width: 70px;
height: 70px;
vertical-align: middle;
}
.logo path {
pointer-events: none;
fill: none;
stroke-linecap: round;
stroke-width: 7;
stroke: #fff
}
.big-title {
text-align: center;
font-size: 3.5rem;
margin: 15px 0;
}
.description {
text-align: justify;
font-size: 1rem;
line-height: 1.5rem;
}
/********** FLOATING BOX ***********/
.login .pane {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: auto;
width: 300px;
height: 250px;
background: #f0f0fd;
background: rgba(240, 240, 253, 0.90);
padding: 22px 32px;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px;
-moz-box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
-webkit-box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
-box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}
.login .misc {
position: absolute;
top: 103%;
left: 0;
width: 100%;
}
.login footer {
background: #555;
position: absolute;
bottom: 0;
left: 0;
right: 0;
top: 50%;
}
.login .misc,
.login .misc a {
color: white;
}
.login footer a:hover {
color: #9CF;
}
</style>
</div>
<script src="https://cdn.rawgit.com/kimmobrunfeldt/progressbar.js/0.5.6/dist/progressbar.js"></script>
<script src="script.js"></script>
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/grapesjs"></script>
<script src="dist/grapesjs-plugin-bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>