-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjects.html
More file actions
47 lines (47 loc) · 1.82 KB
/
objects.html
File metadata and controls
47 lines (47 loc) · 1.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible", content="IE-edge">
<title>Objects | JSProject</title>
<link rel="stylesheet", href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
<link rel="stylesheet", href="css/style.css">
<style>
body {font-family: Arial;}
section {border: 2px dashed black; margin: 2rem;}
div {border: 2px solid black; width: 60%; margin: 2rem auto; padding: 2rem; text-align: center;}
h1 {font-size: 40px;}
h2 {font-size: 25px; padding: 1rem;}
p {font-size: 20px;}
button {padding: 0.5rem 2rem; margin: 1rem; border: 2px solid black; cursor: pointer;}
label {padding: 0.5rem; margin: 1rem;}
input {padding: 0.5rem; margin: 1rem; border: 2px solid black;}
#spoiler {background-color: #cafbff; display: none;}
</style>
</head>
<body>
<header>
</header>
<main>
<div>
<h1>Display car details:</h1>
<button onClick="displayCarInfo()">Click Me</button>
<p id="car-output"></p>
</div>
<div>
<h1>Display person details:</h1>
<button onClick="displayPersonInfo()">Click Me</button>
<p id="person-output"></p>
</div>
<div>
<h1>Display brand details</h1>
<button onClick="displayBrandInfo()">Click Me</button>
<p id="brand-output"></p>
</div>
</main>
<footer>
</footer>
<script src="js/3.0_objects.js"></script>
</body>
</html>