-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBOM-DOM-practice.html
More file actions
59 lines (45 loc) · 1.34 KB
/
BOM-DOM-practice.html
File metadata and controls
59 lines (45 loc) · 1.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>DOM/BOM Workshop</title>
<style>
#box {
width: 250px;
height: 250px;
border: 1px solid red;
}
.button {
padding: 1.5em;
margin-top: 1em;
}
.toggleClass1 {
background-color: rebeccapurple;
}
.toggleClass2 {
background-color: cornflowerblue;
}
#boxInfo {
margin-top: 1em;
}
.form-control {
border: 1px solid red;
}
</style>
</head>
<body>
<h1 id="title">I'm the BOM DOM</h1>
<div id="box"></div>
<button class="button" id="changeBoxSize">Double the Box!</button>
<button class="button" id="toggleClass">Toggle a class!</button>
<div id="boxInfo"></div>
<input class="form-control" id="input">
<button id="inputBtn">Tell me your name!</button>
<div id="helloUser">Hola, ni hao, guten tag, hello, bonjour to you, <span id="userName">username</span>!</div>
<!--jQuery cdn-->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<!--Custom JS-->
<script src="js/BOM-DOM-practice-handout.js"></script>
<!--<script src="js/BOM-DOM-vanilla.js"></script>-->
</body>
</html>