-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
555 lines (486 loc) · 27.6 KB
/
index.php
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
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
<?php
header('Access-Control-Allow-Origin: https://rmodi6.github.io');
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
header('Access-Control-Max-Age: 1000');
header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
if(isset($_POST['name']) && isset($_POST['email']) && isset($_POST['message'])){
$to = "modi.ruchit6+webhost@gmail.com";
$from = $_POST['email'];
$name = $_POST['name'];
$subject = $name . " contacted me through my Website.";
$subject2 = "Thank You!";
$message = "Hi Ruchit,\n" . $_POST['message'];
$message2 = "Hi " . explode(" ", $name)[0] . ",\nGlad to hear from you and looking forward to what you have to say. Your message is important to me and I will respond as soon as possible.\nThank You! :)\n\nRegards,\nRuchit Modi.";
$headers = "From:" . $from;
$headers2 = "From:" . $to;
mail($to,$subject,$message,$headers);
mail($from,$subject2,$message2,$headers2);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6720Q3EJ5S"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-6720Q3EJ5S');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Ruchit Modi</title>
<link rel="apple-touch-icon" sizes="180x180" href="images/favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon_io/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon_io/favicon-16x16.png">
<link rel="manifest" href="images/favicon_io/site.webmanifest">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/flatly/bootstrap.min.css" id="theme-link">
<link rel="stylesheet" type="text/css" href="fa/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="main.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-109519426-1"></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-109519426-1');
</script>
</head>
<body id="ruchit-modi" data-spy="scroll" data-target="#navigation-bar">
<!-- Navigation Bar -->
<nav class="navbar navbar-inverse navbar-fixed-top" id="navigation-bar">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand smooth-scroll" href="#ruchit-modi" title="Back To Top">Ruchit Modi</a>
</div>
<!-- navbar-collapse -->
<div class="collapse navbar-collapse" id="navbar">
<a href="download/Resume_Ruchit_Modi.pdf" title="Download My Resume" class="btn btn-success navbar-btn navbar-right"><span class="glyphicon glyphicon-file"></span> Resume</a>
<a title="Toggle theme" class="btn btn-success navbar-btn navbar-right" id="theme-toggle"><i class="fa fa-moon-o"></i></a>
<ul class="nav navbar-nav">
<li role="presentation" class="active"><a class="smooth-scroll" href="#about-me" title="Read About Me">About Me</a></li>
<li role="presentation"><a class="smooth-scroll" href="#skills" title="Look At My Skills">Skills</a></li>
<li role="presentation"><a class="smooth-scroll" href="#stuffs-made" title="See Stuffs Made">Stuffs Made</a></li>
<li role="presentation"><a class="smooth-scroll" href="#contact-me" title="Say Hi">Contact Me</a></li>
</ul>
</div>
<!--navbar-collapse -->
</div>
</nav>
<!-- End Navigation Bar -->
<!-- Wordcloud -->
<div class="container">
<img id="wordcloud" class="wordcloud img-fluid" alt="Word Cloud" src="images/wordcloud-light.png" usemap="#wordCloudMap">
<map name="wordCloudMap">
<area shape="rect" alt="Email" href="mailto:modi.ruchit6+webhost@gmail.com?subject=&amp;amp;body=Hi%20Ruchit%2C%0D" coords="3600,975,4425,1462.5" target="_blank">
<area shape="rect" alt="Github profile" href="https://www.github.com/rmodi6" coords="1987.5,712.5,2925,1200" target="_blank">
<area shape="rect" alt="Twitter profile" href="https://www.twitter.com/rmodi6" coords="2812.5,1350,3937.5,1781.25" target="_blank">
<area shape="rect" alt="Linkedin profile" href="https://www.linkedin.com/in/rmodi6" coords="1912.5,1500,3075,1968.75" target="_blank">
<area shape="rect" alt="Facebook profile" href="https://www.facebook.com/rmodi6" coords="525,787.5,1950,1331.25" target="_blank">
<area shape="rect" alt="Homepage" href="#" coords="1162.5,825,3637.5,1687.5">
</map>
</div>
<!-- End Wordcloud -->
<!-- About Me -->
<div class="container">
<section>
<div class="page-header" id="about-me">
<h2>About Me</h2>
</div>
<div class="row">
<div class="col-xs-12 col-md-3">
<div class="panel panel-default text-center">
<div class="panel-body">
<span class="glyphicon glyphicon-briefcase"></span>
<h4><strong>Work</strong></h4>
<p>Software Engineer II at <strong>Microsoft</strong> improving the experience of more than 1 billion Windows customers. Former SDE at <strong>Amazon</strong> in the Kindle Books org. Former SDE 2 at <strong>Media.Net</strong>; developed applications that help display contextually relevant advertisement keywords on publisher pages.</p>
</div>
</div>
</div>
<div class="col-xs-12 col-md-3">
<div class="panel panel-default text-center">
<div class="panel-body">
<span class="glyphicon glyphicon-book"></span>
<h4><strong>Education</strong></h4>
<p>Earned Master's degree in Computer Science with a specialization in Data Science and Engineering from <strong>Stony Brook University</strong>, New York. Earned Bachelor's Degree in Information Technology from <strong>Veermata Jijabai Technological Institute</strong>, Mumbai.<br /><br /></p>
</div>
</div>
</div>
<div class="col-xs-12 col-md-3">
<div class="panel panel-default text-center">
<div class="panel-body">
<span class="glyphicon glyphicon-bookmark"></span>
<h4><strong>Extra-Curricular</strong></h4>
<p>From Kindergarten to High School, participated in various academic and non-academic competitions (and won some of them). Held the post of Treasurer at <strong>'Interact Club'</strong>, a Rotary sponsored social service club organizing community service initiatives at high school level.<br /><br /></p>
</div>
</div>
</div>
<div class="col-xs-12 col-md-3">
<div class="panel panel-default text-center">
<div class="panel-body">
<span class="glyphicon glyphicon-star"></span>
<h4><strong>Goals</strong></h4>
<p>To become a software engineer, and create and revolutionize technology by automating almost everything in the future. Developing applications to help simplify various day-to-day activities. Innovating solutions using state of the art technology while providing long term benefits.</p>
</div>
</div>
</div>
</div>
<!-- End Row -->
</section>
</div>
<!-- End About Me -->
<!-- Skills -->
<div class="container">
<section>
<div class="page-header" id="skills">
<h2>Skills</h2>
</div>
<frameset>
<iframe id="mindmap" class="mindmap" src="mindmap/index.html"></iframe>
</frameset>
</section>
</div>
<!-- End Skills -->
<!-- Stuffs Made -->
<div class="container">
<section>
<div class="page-header" id="stuffs-made">
<h2>Stuffs Made</h2>
</div>
<div class="row featurette">
<div class="col-sm-7">
<h3 class="featurette-heading">Machine Learning <br /><span class="text-muted">Email Classification</span></h3>
<p class="lead">A content-based classification program to classify new emails containing a variety of messages into user-defined folders, that will help the users to organize their emails systematically and in a more convenient manner, using Machine Learning algorithms viz. K Nearest Neighbors & Naïve Bayes. It was made as a Final Year Project in the B. Tech. Programme.</p>
<a href="https://github.com/rmodi6/Email-Classification" title="Source Code" target="_blank"><button class="btn btn-primary"><i class="fa fa-code-fork"></i> Fork</button></a>
<a href="https://doi.org/10.1007/978-981-10-6875-1_9" title="Springer Published Paper" target="_blank"><button class="btn btn-success"><i class="fa fa-paperclip"></i> Paper</button></a>
</div>
<br />
<div class="col-sm-5">
<!-- Video -->
<div class="video-container">
<iframe src="https://www.youtube.com/embed/0bxs2zrR5fU" width="100%" height="100%" allowfullscreen></iframe>
</div>
<!-- End Video -->
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-sm-7 col-sm-push-5" >
<h3 class="featurette-heading">Artificial Intelligence <br /><span class="text-muted">Pacman-AI</span></h3>
<p class="lead">An artificial intelligent agent for the Pacman game implementing uninformed search algorithms like BFS and DFS, optimized informed search algorithms like A star, adversarial search algorithms like MiniMax and Alpha-Beta pruning, and exact inference algorithms in Bayesian Networks.</p>
<a href="https://github.com/rmodi6/pacman-ai" title="Source Code"><button class="btn btn-primary"><i class="fa fa-code"></i> Source Code</button></a>
</div>
<br />
<div class="col-sm-5 col-sm-pull-7">
<!-- Gif -->
<div class="gif-images">
<img src="images/pacman-ai.gif" alt="pacman-ai">
</div>
<!-- End Gif -->
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-sm-7">
<h3 class="featurette-heading">Human Computer Interaction <br /><span class="text-muted">Gesture Recognition</span></h3>
<p class="lead">Recognizing swipe gestures on a touchscreen keyboard or a touchpad using the <a href="http://pokristensson.com/pubs/KristenssonZhaiUIST2004.pdf" title="Shark2 Decoder" rel="nofollow">SHARK<sup>2</sup></a>
decoder. It has a high accuracy of ~95% of recognizing words correctly and an average runtime of ~50 ms per word.</p>
<a href="https://github.com/rmodi6/gesture-recognition" title="Source Code"><button class="btn btn-primary"><i class="fa fa-code"></i> Source Code</button></a>
<a href="http://rmodi6.pythonanywhere.com/gesture-recognition" title="Try It!" onclick="window.open(this.href,'targetWindow'); return false;"><button class="btn btn-success"><span class="glyphicon glyphicon-play"></span> Try It</button></a>
</div>
<br />
<div class="col-sm-5">
<!-- Gif -->
<div class="gif-images">
<img src="images/gesture-recognition.gif" alt="gesture-recognition">
</div>
<!-- End Gif -->
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-sm-7 col-sm-push-5" >
<h3 class="featurette-heading">Database Management System <br /><span class="text-muted">Company-Clinic Database Management</span></h3>
<p class="lead">A database application software that can be used by a company-clinic to keep records of all the employees and their relatives for their free treatment at the company's clinic along with the information of medicines & prescriptions, and many other features. Developed using Java and MySQL.</p>
<a href="download/Company Clinic Database System (Eclipse Project).rar" title="Download Source Code"><button class="btn btn-primary"><i class="fa fa-code"></i> Source Code</button></a>
<a href="download/Company Clinic Database Management.rar" title="Download Application"><button class="btn btn-success"><span class="glyphicon glyphicon-download-alt"></span> Application</button></a>
</div>
<br />
<div class="col-sm-5 col-sm-pull-7">
<!-- Carousel -->
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active carousel-ccds">
<img class="carousel-ccds" src="images/ccds.png" alt="Company-Clinic Database System sample 1">
</div>
<div class="item carousel-ccds">
<img class="carousel-ccds" src="images/ccds4.png" alt="Company-Clinic Database System sample 2">
</div>
<div class="item carousel-ccds">
<img class="carousel-ccds" src="images/ccds5.png" alt="Company-Clinic Database System sample 3">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" title="Previous" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" title="Next" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!-- End Carousel -->
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-sm-7">
<h3 class="featurette-heading">Java Applets <br /><span class="text-muted">Snakes 2 Game</span></h3>
<p class="lead">A 2-player version of the classic Snake game made using Java AWT tools in Eclipse IDE.</p>
<a href="snakes2/Snakes2.rar" title="Download Source Code"><button class="btn btn-primary"><i class="fa fa-code"></i> Source Code</button></a>
<a href="snakes2/Snakes2.html" title="Play It!" onclick="window.open(this.href,'targetWindow'); return false;"><button class="btn btn-success"><span class="glyphicon glyphicon-play"></span> Play</button></a>
</div>
<br />
<div class="col-sm-5">
<!-- Carousel -->
<div id="myCarousel2" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel2" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel2" data-slide-to="1"></li>
<li data-target="#myCarousel2" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active carousel-snakes2">
<img class="carousel-snakes2" src="images/snakes.png" alt="Snakes 2 sample 1">
</div>
<div class="item carousel-snakes2">
<img class="carousel-snakes2" src="images/snakes2.png" alt="Snakes 2 sample 2">
</div>
<div class="item carousel-snakes2">
<img class="carousel-snakes2" src="images/snakes3.png" alt="Snakes 2 sample 3">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel2" title="Previous" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel2" title="Next" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!-- End Carousel -->
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-sm-7 col-sm-push-5">
<h3 class="featurette-heading">Java Swing <br /><span class="text-muted">Minesweeper Game</span></h3>
<p class="lead">The age-old annoying Minesweeper game on Windows implemented in Java using Java Swing tools that required deep knowledge of data structures and algorithms.</p>
<a href="https://github.com/rmodi6/Minesweeper-Game" title="Source Code" target="_blank"><button class="btn btn-primary"><i class="fa fa-code"></i> Source Code</button></a>
<a href="minesweeper/Minesweeper.jar" title="Download Application"><button class="btn btn-success"><span class="glyphicon glyphicon-download-alt"></span> Application</button></a>
<a href="https://repl.it/@rmodi6/Minesweeper-Game" title="Play It!" onclick="window.open(this.href,'targetWindow'); return false;"><button class="btn btn-primary"><span class="glyphicon glyphicon-play"></span> Play</button></a>
</div>
<br />
<div class="col-sm-5 col-sm-pull-7">
<!-- Carousel -->
<div id="myCarousel3" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel3" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel3" data-slide-to="1"></li>
<li data-target="#myCarousel3" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active carousel-minesweeper">
<img class="carousel-minesweeper" src="images/minesweeper.png" alt="Minesweeper-Game sample 1">
</div>
<div class="item carousel-minesweeper">
<img class="carousel-minesweeper" src="images/minesweeper2.png" alt="Minesweeper-Game sample 2">
</div>
<div class="item carousel-minesweeper">
<img class="carousel-minesweeper" src="images/minesweeper3.png" alt="Minesweeper-Game sample 3">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel3" title="Previous" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel3" title="Next" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!-- End Carousel -->
</div>
</div>
<hr class="featurette-divider">
<div class="row featurette">
<div class="col-sm-7">
<h3 class="featurette-heading">Artificial Intelligence <br /><span class="text-muted">Tic Tac Toe with AI</span></h3>
<p class="lead">Tic Tac Toe game (a.k.a. Noughts and Crosses) with an AI opponent that either wins or draws but never loses, developed using MiniMax Algorithm with Alpha-Beta pruning for optimization.</p>
<a href="https://github.com/rmodi6/TicTacToe-with-AI" title="Source Code" target="_blank"><button class="btn btn-primary"><i class="fa fa-code"></i> Source Code</button></a>
<a href="tictactoe/TicTacToe.jar" title="Download Application"><button class="btn btn-success"><span class="glyphicon glyphicon-download-alt"></span> Application</button></a>
<a href="https://replit.com/@rmodi6/TicTacToe-with-AI" title="Play It!" onclick="window.open(this.href,'targetWindow'); return false;"><button class="btn btn-primary"><span class="glyphicon glyphicon-play"></span> Play</button></a>
</div>
<br />
<div class="col-sm-5">
<!-- Gif -->
<div class="gif-images-ttt">
<img src="images/tictactoe.gif" alt="tictactoe-gif">
</div>
<!-- End Gif -->
</div>
</div>
<hr class="featurette-divider">
</section>
</div>
<!-- End Stuffs Made -->
<!-- Contact Me -->
<div class="container well">
<section>
<div class="page-header" id="contact-me">
<h3>Contact Me</h3>
</div>
<div class="row">
<div class="col-sm-8">
<form action="https://modiruchit.000webhostapp.com/" method="post" class="form-horizontal">
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="name" name="name" placeholder="Enter your Name">
</div>
</div><!-- End form group -->
<div class="form-group">
<label for="email" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<input type="email" class="form-control" id="email" name="email" placeholder="Enter your Email Address">
</div>
</div><!-- End form group -->
<div class="form-group">
<label for="message" class="col-sm-2 control-label">Message</label>
<div class="col-sm-10">
<textarea class="form-control" id="message" name="message"
cols="20" rows="5" placeholder="Enter your Message"></textarea>
</div>
</div><!-- End form group -->
<div class="form-group">
<div class="col-sm-10 col-sm-offset-2">
<button type="submit" name="submit" value="Submit" title="Say Hi!" class="btn btn-primary">Say Hi!</button>
</div>
</div>
</form>
</div>
<div class="col-sm-4">
<p class="lead">Find me on</p>
<ul class="share-buttons">
<li><a href="https://www.facebook.com/rmodi6" title="Facebook" target="_blank"><img src="images/icons/icons8-facebook-48.png" alt="Facebook profile"></a></li>
<li><a href="https://twitter.com/rmodi6" target="_blank" title="Twitter"><img src="images/icons/icons8-twitter-circled-48.png" alt="Twitter profile"></a></li>
<li><a href="https://www.linkedin.com/in/rmodi6" target="_blank" title="LinkedIn"><img src="images/icons/icons8-linkedin-circled-48.png" alt="Linkedin profile"></a></li>
<li><a href="https://github.com/rmodi6" target="_blank" title="GitHub"><img src="images/icons/icons8-github-48.png" alt="Github profile"></a></li>
</ul>
<br />
<p class="lead">Mail me at</p>
<ul class="share-buttons">
<li><a href="mailto:modi.ruchit6+webhost@gmail.com?subject=&body=Hi%20Ruchit%2C%0D" target="_blank" title="Email"><img src="images/icons/icons8-new-post-48.png" alt="Email"></a></li>
</ul>
</div>
</div>
</section>
</div>
<!-- End Contact Me -->
<!-- Footer -->
<footer>
<div class="container text-center">
<h6>• Ruchit Modi • Icons from <a href="https://icons8.com/">Icons8.com</a> •</h6>
</footer>
<!-- End Footer -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script type="text/javascript" src="jquery/jquery.min.js"></script>
<!-- js to resize wordcloud image map for responsiveness -->
<script type="text/javascript" src="jquery/imageMapResizer.min.js"></script>
<!-- Scrolling JavaScript -->
<script type="text/javascript">
$('a.smooth-scroll').click(function(){
$('html, body').animate({
scrollTop: $( $.attr(this, 'href') ).offset().top
}, 500);
return false;
});
</script>
<!-- Bootstrap JavaScript -->
<script type="text/javascript" src="paper/js/bootstrap.min.js"></script>
<script type="text/javascript" src="paper/js/bootstrap-notify.min.js"></script>
<script type="text/javascript">
// Toggle theme
const btn = document.querySelector("#theme-toggle");
const themeToggleIcon = document.querySelector("#theme-toggle>i");
const wordcloudEle = document.querySelector("#wordcloud");
const theme = document.querySelector("#theme-link");
btn.addEventListener("click", function() {
if (theme.getAttribute("href").includes("flatly")) {
theme.href = "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/darkly/bootstrap.min.css";
themeToggleIcon.className = "fa fa-sun-o";
wordcloudEle.src = "images/wordcloud-dark.png";
$("#mindmap").contents().find("#mindmap-style").attr("href", "style-dark.css");
} else {
theme.href = "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/flatly/bootstrap.min.css";
themeToggleIcon.className = "fa fa-moon-o";
wordcloudEle.src = "images/wordcloud-light.png";
$("#mindmap").contents().find("#mindmap-style").attr("href", "style.css");
}
});
// Collapse navbar on click
$('.nav a').click(function() {
$('.navbar-toggle').click();
});
// Remove advertisement div
$('#mindmap').on('load', function() {
$("#mindmap").contents().find("div").last().remove();
});
$(window).on('load', function() {
$("div").last().remove();
});
// Resize imagemap for responsiveness
$(document).ready(function () {
$("map").imageMapResize();
});
$("form").submit(function(e) {
var form = $(this);
$.ajax({
url: form.attr('action'),
type: form.attr('method'),
crossDomain: true,
data: form.serialize(),
success: function(response) {
$.notify({
icon: 'glyphicon glyphicon-info-sign',
message: 'Your message has been sent!'
});
}
});
return false;
});
</script>
<div></div>
</body>
</html>