Skip to content

Commit aaf18b9

Browse files
committed
checking linking css/js is all good
1 parent 41fa825 commit aaf18b9

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

index.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44

55
<head>
66
<title>ADBond public page</title>
7-
<style>
8-
body {
9-
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
10-
}
11-
</style>
7+
<link rel="stylesheet" type="text/css" href="static/style.css">
128
</head>
139

1410
<body>
@@ -20,5 +16,10 @@ <h1>Placeholder</h1>
2016
<li>la.</li>
2117
<li>la.</li>
2218
</ul>
19+
<div id="exciting-content"></div>
2320
</body>
21+
22+
<script src="static/script.js">
23+
</script>
24+
2425
</html>

static/script.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
let dynamicContent = document.createElement("p");
2+
dynamicContent.innerHTML = "<em>hot</em> dynamic content";
3+
dynamicContent.style.fontSize = "0.8em";
4+
5+
let mainBusiness = document.getElementById("exciting-content");
6+
mainBusiness.appendChild(dynamicContent);

static/style.css

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
body {
2+
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
3+
font-size: 16px;
4+
}
5+
h1 {
6+
font-size: 2em;
7+
}
8+
ul {
9+
position: absolute;
10+
right: 40%;
11+
width: 15%;
12+
border: 2px solid #AA00CC;
13+
padding: 30px;
14+
}

0 commit comments

Comments
 (0)