forked from shubik22/lil-jon-bday
-
Notifications
You must be signed in to change notification settings - Fork 28
/
index.html
37 lines (36 loc) · 1.19 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
<!DOCTYPE html>
<html>
<head>
<title>Lil Jon's Birthday App</title>
<link rel="stylesheet" type="text/css" href="./style.css">
<script src="./app.js"></script>
</head>
<body>
<div id="main">
<h1>Lil Jon's Birthday App</h1>
<h2><span id="month">...</span> <span id="day">...</span></h2>
<h2 id="msg">Just another day...</h2>
<div id='img-container'>
<img id='serious-jon' src='/images/lj-serious.jpg' width="400px" height="400px">
</div>
<br>
<div>
<button id="run">Run</button>
<button id="stop">Stop</button>
</div>
</div>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
const monthEl = document.getElementById('month');
const dayEl = document.getElementById('day');
const runButton = document.getElementById('run');
const stopButton = document.getElementById('stop');
const msgEl = document.getElementById('msg');
const imgEl = document.getElementById('jon');
const app = new App(monthEl, dayEl, msgEl, imgEl);
runButton.addEventListener('click', app.run.bind(app));
stopButton.addEventListener('click', app.stop.bind(app));
});
</script>
</body>
</html>