-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
224 lines (204 loc) · 7.35 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
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
<!DOCTYPE html>
<html>
<head>
<title>Zen</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="particle.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Saira" rel="stylesheet">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script type="text/javascript" src="js/key.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script>
var modal = document.getElementById('id01');
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
<style type="text/css">
a {
display: none;
list-style: none;
}
ul {
list-style: none;
}
body {
background-color: white;
font-family: 'Source Sans Pro', sans-serif;
letter-spacing: 1.2px;
color: black;
}
#main {
font-family: 'Saira', sans-serif;
font-size: 85px;
text-align: center;
padding-top: 16%;
text-shadow: 4px 4px 2px rgba(150, 150, 149, 1);
}
#formContent {
padding-top: 4%;
}
#form {
margin-left: 32%;
}
#puf {
width: 70px;
height: 70px;
}
.cancelbtn {
width: auto;
padding: 10px 18px;
background-color: #f44336;
}
/* Center the image and position the close button */
.imgcontainer {
text-align: center;
margin: 20px 0 10px 0;
position: relative;
}
img.avatar {
width: 30%;
border-radius: 50%;
height: 100px;
width:100px;
}
.container {
padding: 16px;
padding-left: 20px;
}
span.psw {
float: right;
padding-top: 16px;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
padding-top: 60px;
}
/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
border: 1px solid #888;
width: 45%; /* Could be more or less, depending on screen size */
height: 60%;
}
/* The Close Button (x) */
.close {
position: absolute;
right: 25px;
top: 0;
color: #000;
font-size: 35px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: red;
cursor: pointer;
}
/* Add Zoom Animation */
.animate {
-webkit-animation: animatezoom 0.6s;
animation: animatezoom 0.6s
}
@-webkit-keyframes animatezoom {
from {-webkit-transform: scale(0)}
to {-webkit-transform: scale(1)}
}
@keyframes animatezoom {
from {transform: scale(0)}
to {transform: scale(1)}
}
/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
span.psw {
display: block;
float: none;
}
.cancelbtn {
width: 100%;
}
}
</style>
</head>
<body>
<a href="https://github.com/agam98/ZEN" style="display: inline;"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"></a>
<div id="particles-js" style="z-index: -1;"></div>
<div class="container">
<div class="row" id="mmm">
<h1 id="main">Zen<sub style="font-size: 12px;">from primes to prime minister</sub></h1>
<div id="formContent">
<form method="POST" id="form" >
<div class="row">
<div class="col-lg-2 col-sm-12 col-xs-12"></div>
<div class="col-lg-8 col-sm-12 col-xs-12" style="margin-left: -23%;">
<input type="text" class="form-control" name="message" placeholder="Ask me something..." id="msg">
</div>
<!-- <div class="col-lg-2 col-sm-12 col-xs-12"></div> -->
<div class="col-md-2 col-sm-12 col-xs-12">
<button class="btn btn-default" id="buttons">ASK</button><br>
</div>
</div>
</form>
</div>
</div>
<br>
<div class="row">
<div class="col-lg-4"></div>
<div class="col-lg-2" style="text-align: center;margin-left: -2%;"></div>
<!--i data-toggle="modal" onclick="document.getElementById('id01').style.display='block'" class="fa fa-camera" aria-hidden="true" id="camera" style="color: black;font-size: 20px;text-align: center;" data-toggle="tooltip" data-placement="bottom" title="Upload a picture"></i-->
<i class="fa fa-microphone" aria-hidden="true" onclick="startDictation()" id="mic" style="color: black;font-size: 20px;text-align: center;padding-right: 10%;"></i>
<br><br>
<div id="note" style="text-align:center; color: black;"> Note: We have disabled image processing toll cureently. If you wish to see how it worked before proceed <a href="https://github.com/agam98/ZEN/blob/master/README.md" target="_blank" style="display: inline;">here</a></div>
<div id="id01" class="modal">
<form class="modal-content animate" id="fileform" action="">
<div class="container">
<input type="file" name="fileField" style="dislpay: none;z-index: 10;margin-left: 20%;padding-top: 2%;text-align: center;" /><i class="fa fa-plus-circle" aria-hidden="true" style="color: #f0f0f0;font-size: 120px;text-align: center;padding-top: 2%;margin-left: 20%;z-index: 5;"></i><br>
</div>
<div class="container" style="padding-top: 10%;margin-left: 31%;padding-bottom: 10%;">
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancel btn btn btn-default" style="width: 100px;height: 50px;font-size: 20px;">Cancel</button>
<input type="submit" name="submit" class="btn btn-success" value="SUBMIT" style="width: 100px;height: 50px;font-size: 20px;">
</div>
</form>
</div>
</div>
<div class="col-lg-4"></div>
</div>
<br>
<img src="Spinner.svg" style="margin-left: 48%;margin-top: 5%;" id="puf">
<div class="row" style="width: 80%;margin-left: 20%;padding-top: 20%;">
<div class="col-lg-12" style="width: 80%;">
<div id="result" style="color: black;">
</div>
</div>
</div>
<script type="text/javascript" src="js/bot.js"></script>
<script type="text/javascript" src="js/voice.js"></script>
<script src='https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js'></script>
<script src='https://threejs.org/examples/js/libs/stats.min.js'></script>
<script type="text/javascript" src="js/particle.js"></script>
<script src='https://code.responsivevoice.org/responsivevoice.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
</body>
</html>