-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (90 loc) · 3.22 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
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
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<title>AirBnB clone</title>
<link rel="shortcut icon" href="../static/images/icon.png?{{ cache_id }}"/>
<link rel="stylesheet" href="../static/styles/common.css?{{ cache_id }}"/>
<link rel="stylesheet" href="../static/styles/header.css?{{ cache_id }}"/>
<link rel="stylesheet" href="../static/styles/footer.css?{{ cache_id }}"/>
<link rel="stylesheet" href="../static/styles/filters.css?{{ cache_id }}"/>
<link rel="stylesheet" href="../static/styles/places.css?{{ cache_id }}"/>
<link rel="stylesheet" href="../static/styles/web_terminal.css?{{ cache_id }}"/>
<script src="https://kit.fontawesome.com/051d5c98a7.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="../static/scripts/dynamic.js? {{ cache_id }}"></script>
<!-- xterm -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/xterm.css"/>
<script src="https://unpkg.com/[email protected]/lib/xterm.js"></script>
<script src="https://unpkg.com/[email protected]/lib/xterm-addon-fit.js"></script>
<script src="https://unpkg.com/[email protected]/lib/xterm-addon-web-links.js"></script>
<script src="https://unpkg.com/[email protected]/lib/xterm-addon-search.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.2/socket.io.min.js"></script>
</head>
<body>
<header>
<div id="header_logo"></div>
<div id="terminal_btn" class="popup-link">
<a href="#console"><p>>_</p></a>
</div>
<div id="api_status">
<a href="https://www.miniairbnb.gq/apidocs/" target="_blank"><p>API</p></a>
</div>
</header>
<div class="container">
<section class="filters">
<button>Search</button>
<div class="locations">
<h3>States</h3>
<h4> </h4>
<ul class="popover">
{% for state in states %}
<li>
<h2>
<input type="checkbox" data-id="{{ state[0].id }}" data-name="{{ state[0].name }}">
<strong>{{ state[0].name }}</strong>
</h2>
<ul>
{% for city in state[1] %}
<li>
<input type="checkbox" data-id="{{ city.id }}" data-name="{{ city.name }}">
{{ city.name }}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
<div class="amenities">
<h3>Amenities</h3>
<h4> </h4>
<ul class="popover">
{% for amenity in amenities %}
<li>
<input type="checkbox" data-id="{{ amenity.id }}" data-name="{{ amenity.name }}"/>
{{ amenity.name }}
</li>
{% endfor %}
</ul>
</div>
</section>
<!--web-terminal popup-->
<div id="console" class="terminal-container">
<div class="terminal-content">
<a href="#" class="close">×</a>
<span style="font-size: 1.4em">hbnb console</span>
<span style="font-size: small">status:</span>
<span style="font-size: small" id="status">connecting...</span>
<div id="terminal"></div>
<script src="../static/scripts/web_terminal.js"></script>
</div>
</div>
<section class="places">
<h1>Places</h1>
</section>
</div>
<footer>
<p>Holberton School</p>
</footer>
</body>
</html>