-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
664 lines (529 loc) · 18.3 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
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
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/helper.css"/>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php include 'test.php';?>
<style>
.error {color: #FF0000;}
</style>
<title> Website </title>
<style type= "text/css">
img
{
max-height: 250px;
max-width:300 px;
}
div:first-letter
{
font-weight: bold;
font-size:30px;
color:solid blue;
font-family: charcoal;
}
p:first-letter
{
font-weight: bold;
font-size:30px;
color:solid blue;
font-family: charcoal;
}
#whatsup
{
border:2px solid black;
top:15px;
}
#whatsupers
{
border:2px solid black;
top:15px;
}
.redtext
{
}
.greentext {
}
ul
{
list-style-type: circle ;
border: 3px dashed blue;
width:175px;
}
table
{
border: 3px solid black;
}
h1
{
text-align:center;
border: 3px solid black;
}
p { text-indent: 25px; }
<!-- Line height changing works too. -->
</style>
</head>
<body>
<!--
<h1>Justin Chang's Website</h1>
-->
<!--
<div class="TopPage"> <h2><a name="HomeP"></a>Welcome to My Website</h2> </div>
-->
<!-- HEre is where i put information about myself and a nice background picture of myself... -->
<style>
body, html
{
height: 100%;
color: #13233d;
line-height: 1.8;
}
/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3, .bgimg-4 , .bgimg-5
{
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
/* First image (Logo. Full height) */
.bgimg-1
{
background-image: url("jpg/potcov.jpg");
min-height: 100%;
}
/* Second image (skill) */
.bgimg-2
{
background-image: url("jpg/chessskills.jpg");
min-height: 400px;
}
/* Third image (Contact) */
.bgimg-3
{
background-image: url("jpg/cont.png");
min-height: 400px;
}
/* fourth image (proj) */
.bgimg-4
{
background-image: url("jpg/EE3ProjectPic.jpg");
min-height: 400px;
}
/*fifth image (cv) */
/*<!--get rid of the cvp ss? also separate to an about html page? -->
.bgimg-5
{
background-image:url("CVP.png");
min-height:400px;
}
*/
.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}
/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1024px) {
.bgimg-1, .bgimg-2, .bgimg-3
{
background-attachment: scroll;
}
}
</style>
<body>
<!-- MASTER ALWAYS UPDATES FROM GHPAGES.-->
<!-- Navbar (sit on top) -->
<div class="w3-top">
<div class="w3-bar" id="myNavbar">
<a class="w3-bar-item w3-button w3-hover-black w3-hide-medium w3-hide-large w3-right" href="javascript:void(0);" onclick="toggleFunction()" title="Toggle Navigation Menu">
<i class="fa fa-bars"></i>
</a>
<a href="#home" class="w3-bar-item w3-button">HOME</a>
<a href="#cover" class="w3-bar-item w3-button">CURRICULUM VITAE like COVER PAGE</a>
<a href="#projects" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-th"></i> PROJECTS</a>
<a href="#skills" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-user"></i> ABOUT/SKILLS</a>
<a href="#survey" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-check-square-o"></i> SURVEY</a>
<a href="#contact" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-envelope"></i> CONTACT</a>
<a href="#" class="w3-bar-item w3-button w3-hide-small w3-right w3-hover-red">
<i class="fa fa-search"></i>
</a>
</div>
<!-- Navbar on small screens -->
<div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium">
<a href="#cover" class="w3-bar-item w3-button" onclick="toggleFunction()">CURRICULUM VITAE</a>
<a href="#skills" class="w3-bar-item w3-button" onclick="toggleFunction()">ABOUT/SKILLS</a>
<a href="#survey" class="w3-bar-item w3-button" onclick="toggleFunction()">SURVEY</a>
<a href="#contact" class="w3-bar-item w3-button" onclick="toggleFunction()">CONTACT</a>
<a href="#projects" class="w3-bar-item w3-button" onclick="toggleFunction()">PROJECTS</a>
<a href="#" class="w3-bar-item w3-button">SEARCH</a>
</div>
</div>
<!-- First Parallax Image with Logo Text -->
<div class="bgimg-1 w3-display-container w3-opacity-min" id="home">
<div class="w3-display-middle" style="white-space:nowrap;">
<span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity">JUSTIN'S <span class="w3-hide-small">WEBSITE</span></span>
<!-- and an image of the cart for ee3 for now?
-->
</div>
</div>
<br/><br/><br/><br/><br/><br/><br/>
<p id="cover"> click on the CV link to go to my CV.
<!-- Parallax Image with CV Text -->
<div class="bgimg-5 w3-display-container w3-opacity-min">
<div class="w3-display-middle">
<span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity"><a href="html/cover.html" id="cover">CURRICULUM VITAE</a> <span class="w3-hide-small"></div>
</div>
<br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/>
<!-- might need to remove this and put to another page-->
<!-- Container (About projects Section) -->
<p> Hey viewer, I would really like for you to check out some of my cool projects so below you can just simply click this link and be redirected to them. It's ok, you won't regret it too much I promise. </p>
<div class="w3-content w3-container w3-padding-64" id="projects">
<h3 class="w3-center"><span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity"> <a href="html/project.html" >Projects</a> <span class="w3-hide-small"></span></span></h3>
</div>
<p> And just in case if you forgot, to click the link above to see my projects, you have two more chances coming up if you keep scrolling! </p>
<!--<h3><a name="Skills"></a> Skills Section/Experience </h3>
-->
<div class="w3-content w3-container w3-padding-64" id="projects">
<p class="w3-center"><em>Click on the PROJECTS to go to my projects html page, or <a href="html/project.html" id="linkpageprojects">click here</a></em></p><br>
</div>
<!-- Parallax Image with project Text -->
<p> Ok so maybe you didn't like the projects link because they weren't appealing enough but hopefully this time it would be... </p>
<div class="bgimg-4 w3-display-container w3-opacity-min">
<div class="w3-display-middle">
<span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity"><a href="html/project.html" id="linkpageprojects">PROJECTS</a> <span class="w3-hide-small"></div>
</div>
<br/><br/><br/><br/><br/><br/>
<!-- Container (skill Section) -->
<div class="w3-content w3-container w3-padding-64" id="skills">
<p class="w3-center"><em>And here are some of my SKILLS. Other skills if interested, are listed in my About Me Page.</em></p><br>
</div>
<!-- Second Parallax Image with skill Text -->
<div class="bgimg-2 w3-display-container w3-opacity-min">
<div class="w3-display-middle">
<span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity" id="projects"><a href="html/about.html" >SKILLS/ ABOUT ME </a><span class="w3-hide-small"></div>
</div>
<!-- start from swift jk lets get rid of this. -->
<!--
<p>Here is my coding skill table. Click on the underlined "C++" or "Swift" for more projects done with those languages. (Only <a href="C++.html" id="linkpageC++">C++ </a> and <a href="html/Swift.html" id="linkSwift"> Swift </a> have a link page):</p>
<table border="1" cellspacing="1">
<tr>
<th>Language</th>
<td> <a href="html/C++.html" id="linkpageC++">C++ </a></td>
<td>C# </td>
<td>C </td>
<td>HTML </td>
<td>CSS </td>
<td>Java </td>
<td>Python</td>
<td><a href="html/Swift.html" id="linkSwift"> Swift </a> </td>
</tr>
<tr>
<td>Skill Level out of 10</td>
<td>8</td>
<td>2</td>
<td>3</td>
<td>1</td>
<td>1</td>
<td>7</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>Experience in Years</td>
<td>2</td>
<td>.5</td>
<td>.25</td>
<td>.5</td>
<td>.25</td>
<td>3</td>
<td>.5</td>
<td>.5</td>
</tr>
</table>
-->
<!--
<div class="Navigator">
<h3>Where To? </h3>
</div>
<div class="Misc">
Miscellaneous Links:
<br/>
<a href="#Survey">1. Survey </a>
<br/>
<a href="#Feels">2. Feels of the Moment </a>
<br/>
<a href="#Skills"> 3. Skill Table </a>
</div>
<div class="About"> <a class="AboutMe" href="#AboutMe"> 1. About Me </a></div>
<div class="Projects"><a class="Projects" href="#Projects">2. Project Section</a></div>
<div class="Resume"> Resume </div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/><br/><br/>
<br/><br/>
<hr />
<img src=https://scontent-lax3-2.xx.fbcdn.net/v/t1.0-9/10730803_986057331411450_3945439798970073357_n.jpg?oh=e14e28154e252285d9b0262a332f5790&oe=597871BF style ="width:300px;height:250px;">
-->
<!--
</br>
</br>
</br>
</br>
</br>
</br>
<h3><a name="Projects"></a> Project Section </h3>
<p> This is a list of all of my recent relevant projects I have compiled.
<p>at some point ima prob populate right side w/ divs that contains vids/pics and comments/ other forms of communicating what i did for each proj.</p>
<ol> --><!-- this is how to make numbered list <ol> </ol> -->
<!--
<li> Phyiscal Therapy Weight Lifting Tracker</li>
<li> S.P.E.E.D. </li>
<li> Tip Calculator </li>
<li> RODENT </li>
<li> Distance Sensing </li>
<li> Unity Tanks </li>
<li> Hack on the Hill Website</li>
<li> Mobile Robot Path Follower </li>
<li> Chatbot </li>
</ol>
</p>
<hr/>
-->
<!-- this is how you add comments -->
<!-- strong is bold, em is italics, br is a nice line thing,like endl with a marker-->
<!--
<h3><a name="Feels"> </a> Feels of the Moment</h3>
This is <strong> Feels of the Moment</strong> section. Here I discuss <em>important events or big things that happened </em>in a recent time frame.
<p class="greentext">There are several things about me that I would like to talk about today, I guess I will fill it up here at some time later...
<br/>
<br/>
</p>
<hr/>
Thanks for scrolling through my website! Feel free to submit a form of any kind or just fill out a survey below.
<hr/>
-->
<!-- Container (Survey Section) -->
<div class="w3-content w3-container w3-padding-64" id="survey">
<h3 class="w3-center"><span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity">SURVEY</span></span></h3>
</div>
<p> COMING SOON </p>
<!--
<form action="localhost/test.php" method="post">
<p class="redtext"> Gender: </p>
Male: <input type="radio" name="sex" value="male"/>
Female: <input type="radio" name="sex" value="female"/>
NonBinary:<input type="radio" name="sex" value="nonbinary"/>
Prefer Not to Answer: <input type="radio" name="sex" value="nopref"/>
<p class="redtext"> Reason you are here: </p>
Friends <input type= "checkbox" name="reason" value="Friends"/>
Family <input type= "checkbox" name="reason" value="Family"/>
Found it <input type="checkbox" name="reason" value="Found"/>
LUL <input type="checkbox" name="reason" value="LUL"/>
<p class="redtext"> What kind of Person you are: </p>
<select name= "Type">
<option value="Nothing"> Do nothing all Day </option>
<option value="Dota"> Plays Dota all Day </option>
<option value="League"> Plays League all Day </option>
<option value="Studies"> Studies all Day </option>
<option value="Reads"> Reads books all Day </option>
<option value="Fights"> Fights people all Day </option>
<option value="Sleeps"> Sleeps all Day </option>
<option value="Poops"> Poops all Day </option>
</select>
<p class="redtext"> How was your experience navigating through this website?: </p>
<select name= "Mood">
<option value="Terrible"> Terrible </option>
<option value="Satisfactory"> Satisfactory </option>
<option value="So-so"> So So </option>
<option value="Not bad"> Not bad</option>
<option value="Decent"> Decent </option>
<option value="Pretty Good"> Pretty Good </option>
<option value="No comment"> No Comment :) </option>
</select>
<br/>
<p class="redtext"> I will now censor bad words (8 Characters max) : </p>
Bad Word(s): <input type="password" name="pword" maxlength="8"/>
<input type="file" name="afile"/>
<br />
<input type="submit" value="Submit!">
<br/>
<br/>
<br/>
<br/>
<hr/>
</form>
<p>As of now, will just do php info on this page rather than setting up localhost and storing/sending information to a different server page or email. I will update page when that works out but for now this will do. </p>
<form>
Typing Box (100 Characters Max): <input class="w3-input w3-border" type="text" placeholder="Whatever You Want To Type" required name="Practice" size="100" maxlength="100">
<br/>
<br/>
<textarea name="More Suggestions" rows="30" cols="150">
More Suggestions or comments, type here.
</textarea>
<br/>
<input class="w3-input w3-border" type="text" placeholder="Name" required name="Name">
</form>
-->
<!-- Third Parallax Image with Text -->
<div class="bgimg-3 w3-display-container w3-opacity-min">
<div class="w3-display-middle">
<span class="w3-center w3-padding-large w3-black w3-xlarge w3-wide w3-animate-opacity">CONTACT <span class="w3-hide-small">ME</span></span> </div>
</div>
<!--
<h3><a name="AboutMe"></a> More About Me </h3>
-->
<!-- Container (Contact Section) -->
<div class="w3-content w3-container w3-padding-64" id="contact">
<h3 class="w3-center">FIND ME</h3>
<div class="w3-row w3-padding-32 w3-section">
<div class="w3-col m4 w3-container">
OTHER LINKS
<br/>
<strong> Github </strong> :<a href="https://github.com/jchang12345">jchang12345</a>
<br/>
<strong> Devpost </strong>: <a href= "https://devpost.com/jchang0916?ref_content=user-portfolio&ref_feature=portfolio&ref_medium=global-nav">jchang0916</a>
<br/>
<strong> Resume </strong> : <a href="pdf/researchResume.pdf">My Resume</a>
<br/>
<hr/>
<!-- Add Google Maps -->
<div id="googleMap" class="w3-round-large w3-greyscale" style="width:100%;height:400px;"></div>
</div>
<div class="w3-col m8 w3-panel">
<div class="w3-large w3-margin-bottom">
<i class="fa fa-map-marker fa-fw w3-hover-text-black w3-xlarge w3-margin-right"></i> California, UCLA, US<br>
<i class="fa fa-phone fa-fw w3-hover-text-black w3-xlarge w3-margin-right"></i> Phone: (626) 318-2080<br>
<i class="fa fa-envelope fa-fw w3-hover-text-black w3-xlarge w3-margin-right"></i> <a href= "mailto:jchang0916@ucla.edu">Email: jchang0916@ucla.edu</a><br>
</div>
<p>Swing by for a talk or <i class="fa fa-tint"></i>. Send me an email or get in contact:</p>
<form action="/action_page.php" target="_blank">
<div class="w3-row-padding" style="margin:0 -16px 8px -16px">
<div class="w3-half">
<input class="w3-input w3-border" type="text" placeholder="Name" required name="Name">
</div>
<div class="w3-half">
<input class="w3-input w3-border" type="text" placeholder="Email" required name="Email">
</div>
</div>
<input class="w3-input w3-border" type="text" placeholder="Message" required name="Message">
<button class="w3-button w3-black w3-right w3-section" type="submit">
<i class="fa fa-paper-plane"></i> COMING SOON
</button>
</form>
</div>
</div>
</div>
<!-- Add Google Maps -->
<script>
function myMap()
{
myCenter=new google.maps.LatLng(34.065898, -118.444988);
var mapOptions= {
center:myCenter,
zoom:15, scrollwheel: false, draggable: true,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("googleMap"),mapOptions);
var marker = new google.maps.Marker({
position: myCenter,
});
marker.setMap(map);
}
// Modal Image Gallery
function onClick(element) {
document.getElementById("img01").src = element.src;
document.getElementById("modal01").style.display = "block";
var captionText = document.getElementById("caption");
captionText.innerHTML = element.alt;
}
// Change style of navbar on scroll
window.onscroll = function() {myFunction()};
function myFunction() {
var navbar = document.getElementById("myNavbar");
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
navbar.className = "w3-bar" + " w3-card-2" + " w3-animate-top" + " w3-white";
} else {
navbar.className = navbar.className.replace(" w3-card-2 w3-animate-top w3-white", "");
}
}
// Used to toggle the menu on small screens when clicking on the menu button
function toggleFunction() {
var x = document.getElementById("navDemo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA2f9nu7-VpdByBerubdDdLZT6RwK6Y2qw&callback=myMap"></script>
<!--
<?php
// define variables and set to empty values
$nameErr = $emailErr = $genderErr = $websiteErr = "";
$name = $email = $gender = $comment = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (empty($_POST["reason"])) {
$nameErr = "Reason is required";
} else {
$name = test_input($_POST["reason"]);
// check if name only contains letters and whitespace
if (!preg_match("/^[a-zA-Z ]*$/",$reason)) {
$nameErr = "Only letters and white space allowed";
}
}
if (empty($_POST["email"])) {
$emailErr = "Email is required";
} else {
$email = test_input($_POST["email"]);
// check if e-mail address is well-formed
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$emailErr = "Invalid email format";
}
}
if (empty($_POST["text"])) {
$comment = "";
} else {
$comment = test_input($_POST["text"]);
}
if (empty($_POST["sex"])) {
$genderErr = "Sex is required";
} else {
$gender = test_input($_POST["sex"]);
}
}
<?php
echo "<h2>Your Input:</h2>";
echo $reason;
echo "<br>";
echo $email;
echo "<br>";
echo $text;
echo "<br>";
echo $sex;
?>
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
?>
-->
<!--
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDVvpMC-c8vHTP7PUNkTCUghWLZ_YsKdG8&callback=myMap"
type="text/javascript"></script>
-->
<a href="#home" class="w3-button w3-light-grey"><i class="fa fa-arrow-up w3-margin-right"></i>To the top</a>
<!--
MY API KEY IS
AIzaSyDVvpMC-c8vHTP7PUNkTCUghWLZ_YsKdG8
2nd one is
AIzaSyA2f9nu7-VpdByBerubdDdLZT6RwK6Y2qw
-->
</body>
</html>