Skip to content

Commit 7928cb0

Browse files
committed
end of post 1
1 parent 9771885 commit 7928cb0

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/app.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
document.addEventListener('DOMContentLoaded', function () {
2+
let content = document.querySelector('.content');
3+
4+
let msg = document.createElement('h2');
5+
msg.innerText = '(batteries included)';
6+
console.log(msg);
7+
8+
content.appendChild(msg);
9+
});

src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
88
<title>Document</title>
99
<link rel="stylesheet" href="style.css">
10+
<script src="app.js"></script>
1011
</head>
1112

1213
<body>

0 commit comments

Comments
 (0)