-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
39 lines (39 loc) · 1.31 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
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel ="stylesheet" type="text/css" href="css/normalize.css" />
<link rel ="stylesheet" type="text/css" href="css/style.css" />
<title>Cruise Ships</title>
</head>
<body>
<div id="display">
<p id="current-port"></p>
<p id="next-port"></p>
</div>
<div id="container">
<div id="viewport">
<div id="ports"></div>
<div id="ship"></div>
</div>
<button id="sailbutton" type="button">Set sail!</button>
</div>
<form id="port-form" onsubmit="return false" >
<label id="title" for="port-name">Add port</label>
<textarea id="port-name" name="port-name" placeholder="Port Name"></textarea>
<button id="addbutton" type="button">Add</button>
</form>
<script src="src/controller.js"></script>
<script src="src/itinerary.js"></script>
<script src="src/port.js"></script>
<script src="src/ship.js"></script>
<script>
const itinerary = new Itinerary([])
const ship = new Ship(itinerary);
const controller = new Controller(ship);
controller.renderShip();
</script>
</body>
</html>