-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (49 loc) · 1.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>PS70: Intro to Digital Fabrication</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="../style.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="finallogo.png">
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-dark">
<div class="container-fluid">
<!-- Centered Logo -->
<div class="logo-container">
<a href="../index.html">
<img src="finallogo.png" alt="Logo" class="nav-logo">
</a>
</div>
<!-- About Button (Image) on the Right -->
<div class="about-button-container">
<a href="../about.html">
<img src="AboutButton2.png" alt="About" class="about-button">
</a>
</div>
</div>
</nav>
<div class="textcontainer">
<p class="margin"></p>
<center><h1 id="typewriter"></h1></center>
<p class="margin"></p>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const text = "Week 5: 3D Design and Printing";
let index = 0;
const speed = 100; // Typing speed in milliseconds
function type() {
if (index < text.length) {
document.getElementById("typewriter").innerHTML += text.charAt(index);
index++;
setTimeout(type, speed);
}
}
type();
});
</script>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" ></script>
</html>