forked from Ada-C7/trek
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (70 loc) · 2.26 KB
/
index.html
File metadata and controls
87 lines (70 loc) · 2.26 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>World Treks</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>World Treks</h1>
<h2>explore our planet one step at a time</h2>
</header>
<main class = "row">
<div id = "vacations" class = "large-block-grid-1 ">
</main>
<!--text.template makes the browser ignore it -->
<script id = "trek-item-template" type = "text/template">
<table>
<tr>
<th><%- data.continent %></th>
<th>
<button class = "load button" data-trip-id = "<%- data.id %>"> <%- data.name%> </button></th>
<th><%- data.weeks %></th>
</tr>
</script>
</table>
</script>
<script id = "detailed-trip-template" type = "text/template">
<article>
<nav>
<h2> Trip <%- data.id %>: <%- data.name %> </h2>
<ul>
<li id = 'index'> <button class = "button" >Return to All Trips</button></li>
<li id = 'buy'><button class = 'button'> Buy | $ <%- data.cost %></button></li>
</ul>
</nav>
<section> <%- data.about %> </section>
</article>
</script>
<script id="reserve-trek-template" type="text/template">
<form id="reserve-trek" action=<%-tripId%> method="post">
<section>
<label for="name"> Name: </label>
<input type="text" name="name">
</section>
<section>
<label for="age"> Age: </label>
<input type="text" name="age">
</section>
<section>
<label for="email"> Email: </label>
<input type="text" name="email">
</section>
<section>
<button type="submit" class="button"> Reserve! </button>
</section>
</form>
</script>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script
src="trek.js"
type = "text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore.js"
type = "text/javascript"></script>
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
</body>
</html>