forked from ProfPowell/cse134-hw1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (90 loc) · 3.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="Simple demo Web page for CSE 134B" />
<meta name="keywords" content="HTML, CSS, JavaScript" />
<meta name="author" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSE 134B Homework 1 Website</title>
<link href="images/favicon.ico" rel="icon" />
<link href="styles/main.css" rel="stylesheet" />
<script>
window.addEventListener('load', function () {
let time = window.performance.timing,
complete = time.domComplete - time.domLoading;
document.getElementById('page-load-info').innerHTML = `<strong>Page Loaded in ${parseInt(complete)}ms
on ${new Date().toLocaleString("en-US")}</strong>`;
});
</script>
</head>
<body>
<header>
<h1>Ryan La's Website</h1>
<section id="user-info-component">
<div id="user-info" style="display: none;">
<output id="name-info"> </output>
<br />
<output id="major-info"> </output>
<hr />
<br />
<!-- Inline Javascript Handlers used here for demonstration only -->
<section class="intro-text">
<label>My name is <input id="name-input" type="text" autocomplete="name" autofocus maxlength="30" placeholder="Your Name"></label>
<br />
<label>My major is <input id="major-input" type="text" maxlength="30" placeholder="Your Major"></label>
</section>
<button onclick="window.update();">Update</button>
</div>
<script>
document.getElementById('user-info').style.display = 'block';
</script>
<noscript class="error">Error: JavaScript is disabled or blocked.</noscript>
</section>
<section id="page-load-component">
<div id="load-info" style="display: none;">
<output id="page-load-info">Measuring...</output>
</div>
<script>
document.getElementById('load-info').style.display = 'block';
</script>
<noscript class="error">Error: JavaScript required for page timing measurement </noscript>
</section>
</header>
<main>
<h2>UCSD Images</h2>
<section class="img">
<img src="images/bear.png" alt="Warren Bear" height="430" width="700" />
<img src="images/triton.jpg" alt="Triton" height="430" width="700" />
<a href="https://ucsd.edu" target="_blank"><img src="images/ucsd.gif" alt="UCSD" height="177"
width="700"></a>
<br />
<section id="links">
<h2>Useful Links</h2>
<ul>
<li><a href="http://tritonlink.ucsd.edu">TritonLink</a></li>
<li><a href="http://canvas.ucsd.edu">Canvas</a></li>
<li><a href="http://w3.org">W3</a></li>
</ul>
</section>
<section class="video">
<h2>UCSD Promo Video</h2>
<video controls height="393" width="700">
<source src="videos/videoplayback.mp4" type="video/mp4" />
<div class="error">Your browser does not support the video tag.</div>
</video>
</section>
<br />
</section>
</main>
<footer>
<hr/>
<p>💯This page was made with ♥ by Ryan La 💯</p>
</footer>
<script type="module">
import { update } from './scripts/main.js';
window.update = update;
</script>
<script nomodule src="scripts/main-es5.js"></script>
</body>
</html>