forked from CS-Aditya-Rawat/VirtualAssistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
481 lines (434 loc) · 19.1 KB
/
index.html
File metadata and controls
481 lines (434 loc) · 19.1 KB
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
<!DOCTYPE html>
<html>
<head>
<title>Alex</title>
<meta charset="UTF-8" />
<!-- <script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBIwzALxUPNbatRBj3Xi1Uhp0fFzwWNBkE&callback=initMap&libraries=&v=weekly"
defer
></script> -->
<!-- <script
src="https://maps.googleapis.com/maps/api/js?key=&callback=initMap&libraries=&v=weekly"
defer
></script> -->
<link rel="icon" href="logo.png">
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital@1&display=swap" rel="stylesheet">
<link rel='stylesheet' href='main.css' />
</head>
<body>
<header>
<nav class="navbar">
<span class="navbar-toggle" id="js-navbar-toggle">
<i class="fa fa-bars" id="btn3"></i>
</span>
<a href="#" class="logo">
<img src="logo.png" width="60px" height="50px">
</a>
<ul class="main-nav" id="js-menu">
<li><a id="myBtn2" class="nav-links">Features</a></li>
<li><a id="myBtn" class="nav-links">About Me</a></li>
</ul>
</nav>
</header>
<div class="icon" id="icon">
<div class="bar" style="background-color: #3498db; margin-left: -60px;"></div>
<div class="bar" style="background-color: #e74c3c; margin-left: -20px;"></div>
<div class="bar" style="background-color: #f1c40f; margin-left: 20px;"></div>
<div class="bar" style="background-color: #2eb869; margin-left: 60px;"></div>
</div>
<!-- <header>
<h1 class="nice-font" >
<span style="float: left;">Alex</span>
<button id="myBtn" style="float: right;">About Me</button>
<button id="myBtn" style="float: right;">Features</button></h1>
</header> -->
<main class="nice-font">
<!-- QuestionANDAnswer -->
<!-- <div class="row">
<div class="chat answer">
<div class=video>
<div id="videos">
</div>
</div>
</div>
</div>
-->
<!-- TAKE A SCREENSHOT FORM -->
<div id="ssform">
<div class="contact-form">
<form>
<div>
<label>
<input id="ssurl" type="text" placeholder="Enter URL" required>
<span>Enter URL</span>
</label>
</div>
<div><input type="button" value="Download" onclick="downloadScreenshot()"></div>
</form>
<!-- <form>
<input id="ssurl" type="text" placeholder="Enter URL">
<button type="button" onclick="downloadScreenshot()">Download</button>
</form> -->
</div>
</div>
<!-- <img id="ssimg"> -->
<!-- GET NEWS QUERY -->
<div id="newsform">
<div class="contact-form">
<form>
<div>
<select class="option" id="Country" type="text" name="Country">
<option value="au">Australia</option>
<!-- <option value="br">Brazil</option> -->
<option value="ca">Canada</option>
<!-- <option value="ch">Switzerland</option> -->
<!-- <option value="cn">China</option> -->
<!-- <option value="de">Germany</option> -->
<!-- <option value="eg">Egypt</option> -->
<!-- <option value="es">Spain</option>
<option value="fr">France</option> -->
<option value="gb">United Kingdom</option>
<!-- <option value="gr">Greece</option>
<option value="hk">Hong Kong</option> -->
<option value="ie">Ireland</option>
<!-- <option value="il">Israel</option> -->
<option value="in">India</option>
<!-- <option value="it">Italy</option> -->
<!-- <option value="jp">Japan</option>
<option value="nl">Netherlands</option>
<option value="no">Norway</option>
<option value="pe">Peru</option> -->
<option value="ph">Philippines</option>
<option value="pk">Pakistan</option>
<!-- <option value="pt">Portugal</option> -->
<!-- <option value="ro">Romania</option>
<option value="ru">Russian Federation</option>
<option value="se">Sweden</option> -->
<option value="sg">Singapore</option>
<!-- <option value="tw">Taiwan, Province of China</option>
<option value="ua">Ukraine</option> -->
<option value="us" selected>United States</option>
</select>
</div>
<div>
<select class="option" id="newsQuery" type="text" name="newsQuery">
<option value="breaking-news">Breaking News</option>
<option value="entertainment">Entertainment</option>
<option value="sports">Sports</option>
<option value="world">World</option>
<option value="nation">Nation</option>
<option value="business">Business</option>
<option value="technology">Technology</option>
<option value="science">Science</option>
<option value="health">Health</option>
</select>
<!-- <label>
<input id="newsQuery" type="text" placeholder="Enter some topic" required>
<span>Enter some topic</span>
</label> -->
</div>
<div><input type="button" value="Show News" onclick="newsBallon()"></div>
</form>
<!-- <form>
<input id="ssurl" type="text" placeholder="Enter URL">
<button type="button" onclick="downloadScreenshot()">Download</button>
</form> -->
</div>
</div>
<!-- TradingView Widget BEGIN -->
<!-- <div class="tradingview-widget-container">
<div class="tradingview-widget-container__widget"></div>
<div class="tradingview-widget-copyright"><a href="https://in.tradingview.com/markets/stocks-india/" rel="noopener" target="_blank"><span class="blue-text"></span></a></div>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-hotlists.js" async>
{
"colorTheme": "light",
"dateRange": "12M",
"exchange": "BSE",
"showChart": true,
"locale": "in",
"largeChartUrl": "",
"isTransparent": false,
"showSymbolLogo": false,
"width": "400",
"height": "600",
"plotLineColorGrowing": "rgba(33, 150, 243, 1)",
"plotLineColorFalling": "rgba(33, 150, 243, 1)",
"gridLineColor": "rgba(240, 243, 250, 1)",
"scaleFontColor": "rgba(120, 123, 134, 1)",
"belowLineFillColorGrowing": "rgba(33, 150, 243, 0.12)",
"belowLineFillColorFalling": "rgba(33, 150, 243, 0.12)",
"symbolActiveColor": "rgba(33, 150, 243, 0.12)"
}
</script>
</div> -->
<!-- TradingView Widget BEGIN -->
<!-- <div class="tradingview-widget-container">
<div id="tradingview_0e20c"></div>
<div class="tradingview-widget-copyright"><a href="https://in.tradingview.com/symbols/NASDAQ-AAPL/" rel="noopener" target="_blank"><span class="blue-text">Stock Realtime Chart</span></a></div>
</div> -->
<!-- TradingView Widget BEGIN -->
<!-- TradingView Widget BEGIN -->
<!-- TradingView Widget END -->
<!-- TradingView Widget END -->
<!-- <div class="row">
<div class="chat answer" id="videos"><script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script></div>
</div> -->
<!-- <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> -->
<!-- TradingView Widget END -->
<!-- <div id="newsform">
<div class="modal-content">
<div class="contact-form">
<form>
<input id="newsQuery" type="text" placeholder="Enter some topic">
<button type="button" onclick="showNews()">Download</button>
</form>
</div>
</div>
</div> -->
<!--GOOGLE MAPS-->
<!-- <div id="floating-panel">
</div>
<div id="map"></div>
<div id="last"></div> -->
<!-- <div id="list-output" class="">
<div class="row">
</div>
</div> -->
<!--Footer-->
<div id="Stock" class="modalb">
<!-- Modal content -->
<div class="modal-contentb">
<span class="closeb">×</span>
<br>
<br>
<!-- TradingView Widget BEGIN -->
<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container">
<div id="tradingview_854fc"></div>
<div class="tradingview-widget-copyright"><a href="https://in.tradingview.com/symbols/NASDAQ-AAPL/"
rel="noopener" target="_blank"><span class="blue-text"></span></a></div>
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
<script type="text/javascript">
new TradingView.widget(
{
"width": 980,
"height": 610,
"symbol": "NASDAQ:AAPL",
"interval": "D",
"timezone": "Etc/UTC",
"theme": "light",
"style": "1",
"locale": "in",
"toolbar_bg": "#f1f3f6",
"enable_publishing": false,
"allow_symbol_change": true,
"container_id": "tradingview_854fc"
}
);
</script>
</div>
<!-- TradingView Widget END -->
<!-- TradingView Widget END -->
<!-- TradingView Widget END -->
</div>
</div>
<div id="myModal" class="modal trial2">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<h2>About Me</h2><br>
<span class="about">
Hello there, this is me - Alex. Introducing myself, I am your virtual assistant. I was designed and developed
by
<b>Devarshi Doshi</b> and <b>Aditya Rawat</b>. I am here to help you find many exciting things like news,
games,
weather report and many more all at one place. If you want to know how I can assist you just check Features
tab.
I was developed within a period of two weeks for Hackathon namely <a href="https://twtcodejam.net/"
target="_blank" style="color:black;"><b>Timathon - Code Jam</b></a>. Okay I think that's all now you can use
me for your assist.<br><br>
Connect My Developers Below:-<br><br>
Devarshi Doshi:-
<a href="https://twitter.com/DoshiDevarshi" target="_blank"><img
src="https://img.icons8.com/color/48/000000/twitter--v2.png" style="vertical-align: middle;" /></a>
<a href="https://www.linkedin.com/in/devarshi-doshi-45571a13b/" target="_blank"><img
src="https://img.icons8.com/fluent/48/000000/linkedin.png" style="vertical-align: middle;" /></a>
<a href="https://github.com/devarshidoshi" target="_blank"><img
src="https://img.icons8.com/fluent/48/000000/github.png" style="vertical-align: middle;" /></a>
<a href="https://devarshidoshi.github.io/Portfolio/" target="_blank"><img
src="https://img.icons8.com/color/48/000000/name.png" style="vertical-align: middle;" /></a><br><br>
Aditya Rawat:-
<a href="https://twitter.com/CsAdityaRawat" target="_blank"><img
src="https://img.icons8.com/color/48/000000/twitter--v2.png" style="vertical-align: middle;" /></a>
<a href="https://www.linkedin.com/in/cs-aditya-rawat/" target="_blank"><img
src="https://img.icons8.com/fluent/48/000000/linkedin.png" style="vertical-align: middle;" /></a>
<a href="https://github.com/CS-Aditya-Rawat" target="_blank"><img
src="https://img.icons8.com/fluent/48/000000/github.png" style="vertical-align: middle;" /></a></span>
</div>
</div>
<div id="Features" class="modalc">
<!-- Modal content -->
<div class="modal-contentc">
<span class="closec">×</span>
<h2>Features</h2><br>
<br><br>
<div>
<img src="https://img.icons8.com/color/48/000000/messaging-.png"
style="vertical-align: bottom; margin-right:10px;" />
<span class="about">Just Say Hello and I'll Reply You</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/youtube-play.png" style="vertical-align: bottom;" />
<span class="about"> Just Say Play Video and name of video you want search Eg. Play Video
Shinchan</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/screenshot.png" style="vertical-align: bottom;" />
<span class="about"> Just Say Take a Screenshot and just enter URL of site to get its
screenshot</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/partly-cloudy-day--v2.png" style="vertical-align: bottom;" />
<span class="about"> Just Say Weather at and name of city to get its current weather Eg.
Weather at California</span> <br><br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/google-news.png" style="vertical-align: bottom;" />
<span class="about"> Just Say news and select your country and topic of news. There are 9
awesome topics for news namely Breaking-News, World, Nation, Business, Technology, Entertainment, Sports,
Science and Health.</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/nintendo-gamecube-controller.png"
style="vertical-align: bottom;" />
<span class="about"> Just Say Play Games and Enjoy any of the four games ( 2048, Hangman,
Stone Paper Scissor, Tic Tac Toe)</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/quote.png" style="vertical-align: bottom;" />
<span class="about"> Just Say Quotes and get a amazing motivational quotes with author
name</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/story-book.png" style="vertical-align: bottom;" />
<span class="about"> Just Say Search Book and name of the book you want to search Eg.
search book harry potter and you will get 10 books to read related to search</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/smiling.png" style="vertical-align: bottom;" />
<span class="about"> Just Say Tell a Joke and fill yourself with happiness</span> <br>
<br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/apple-map.png" style="vertical-align: bottom;" />
<span class="about"> Just Say Get Directions and enter your origin and destination, i'll
guide you till Destiny.</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/economic-improvement.png" style="vertical-align: bottom;" />
<span class="about"> Just Say Get Stocks and then you can search any stock's realtime
details.</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/timetable.png" style="vertical-align: bottom;" />
<span class="about"> Just Say Tell Date and Get Current Date and Time</span> <br> <br>
</div>
<hr>
<div>
<img src="https://img.icons8.com/color/48/000000/coming-soon.png" style="vertical-align: bottom;" />
<span class="about"> And Still More such amazing features are coming Soon</span> <br> <br>
</div>
<hr>
</div>
</div>
</main>
<footer>
<div id="command">
<button id="btn"><i class="fas fa-microphone fa-3x"></i></button>
</div>
</footer>
<br>
<br>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src='script.js'></script>
<script>
let mainNav = document.getElementById('js-menu');
let navBarToggle = document.getElementById('js-navbar-toggle');
let btn = document.getElementById('btn3');
var modal = document.querySelector(".modal");
// Get the button that opens the modal
var btn2 = document.getElementById("myBtn");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
navBarToggle.addEventListener('click', function () {
mainNav.classList.toggle('active');
if (btn.classList.contains('fa-bars')) {
btn.classList.remove('fa-bars');
btn.classList.add('fa-close');
} else {
btn.classList.remove('fa-close');
btn.classList.add('fa-bars');
}
});
</script>
<!-- 1. The <iframe> (and video player) will replace this <div> tag.
<div id="player"></div>
<script>
// 2. This code loads the IFrame Player API code asynchronously.
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
// 3. This function creates an <iframe> (and YouTube player)
// after the API code downloads.
var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
height: '390',
width: '640',
videoId: 'M7lc1UVf-VE',
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}
});
}
// 4. The API will call this function when the video player is ready.
function onPlayerReady(event) {
event.target.playVideo();
}
// 5. The API calls this function when the player's state changes.
// The function indicates that when playing a video (state=1),
// the player should play for six seconds and then stop.
var done = false;
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING && !done) {
setTimeout(stopVideo, 6000);
done = true;
}
}
function stopVideo() {
player.stopVideo();
} -->
</script>
</body>
</html>