-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
166 lines (145 loc) · 8.35 KB
/
search.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!--
Author: Emil Soleymani
Last Modification: 2023-11-08
-->
<!DOCTYPE html>
<html>
<head>
<title>CarDex | Search</title>
<link rel="stylesheet" type="text/css" href="css/global.css">
<link rel="stylesheet" type="text/css" href="css/search.css">
<!-- For copying search bar styles -->
<link rel="stylesheet" type="text/css" href="css/home.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="js/dual_range_slider.js" defer></script>
<meta charset="utf-8">
</head>
<body>
<script type="text/javascript" src="js/search.js"></script>
<div class="header-wrapper">
<img class="header-logo" src="imgs/header_logo.png" alt="CarDex Logo">
<nav class="header-nav-wrapper">
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="manufacturers.html">Manufacturers</a></li>
<li><a href="about_us.html">About Us</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
<p class="search-description-top">Search <span>over 1000</span> makes and models!</p>
<div id="search-bar-wrapper">
<div class="search-bar">
<form action="search.html" method="get" autocomplete="off">
<input type="text" name="search" placeholder="Search for a car model...">
<input class="search-bar-btn" type="submit" value="→">
</form>
</div>
</div>
<div id="search-results-description">
<img class="search-results-back-button" onclick="history.back()" src="imgs/icons/back_arrow.png" alt="Back">
<p class="search-results-description-text">Showing <span id="search-results-count">0</span> results for <span id="search-results-search-param-label"></span></p>
</div>
<div id="search-results-wrapper">
<div id="results-wrapper">
<!-- KEEPING OLD HARDCODED RESULTS AS REFERENCE
<div class="model-display-quick">
<h1 class="model-display-quick-name">Porsche 911 (992)</h1>
<div class="model-display-quick-info-wrapper">
<img src="imgs/icons/engine.png" alt ="Engine Icon" class="model-display-quick-info-icon">
<p class="model-display-quick-info">3.0L twin turbo V6 | 379 hp @ 6500</p>
</div>
<div class="model-display-quick-info-wrapper">
<img src="imgs/icons/dashboard.png" alt ="Dashboard Icon" class="model-display-quick-info-icon">
<p class="model-display-quick-info">0 - 60mph: 3.8s</p>
</div>
<img src="imgs/porsche_911_992.png" alt="Porsche 911 (992)" class="model-display-quick-img">
<a href="results.html?model=porsche_911_992" class="model-display-quick-learn-more">Learn More</a>
</div>
<div class="model-display-quick">
<h1 class="model-display-quick-name">Porsche 911 (993)</h1>
<div class="model-display-quick-info-wrapper">
<img src="imgs/icons/engine.png" alt ="Engine Icon" class="model-display-quick-info-icon">
<p class="model-display-quick-info">3.6L naturally aspirated V6 | 272 @ 6100 rpm</p>
</div>
<div class="model-display-quick-info-wrapper">
<img src="imgs/icons/dashboard.png" alt ="Dashboard Icon" class="model-display-quick-info-icon">
<p class="model-display-quick-info">0 - 60mph: 5.4s</p>
</div>
<img src="imgs/porsche_911_993.jpeg" alt="Porsche 911 (993)" class="model-display-quick-img">
<a href="results.html?model=porsche_911_993" class="model-display-quick-learn-more">Learn More</a>
</div>
-->
</div>
<div id="filters-wrapper">
<div class="filters-header-wrapper">
<img src="imgs/icons/filters.png" alt="Filter Icon" class="filters-header-icon">
<p class="filters-header-text">Filters</p>
</div>
<ul class="filters-list">
<li class="filter-item">
<p class="filter-item-text">Min Year</p>
<!-- This is populated dynamically -->
<div class="filter-item-select">
<select id="min-year-filter-select"></select>
</div>
</li>
<li class="filter-item">
<p class="filter-item-text">Max Year</p>
<!-- This is populated dynamically -->
<div class="filter-item-select">
<select id="max-year-filter-select"></select>
</div>
</li>
<li class="range-slider-container">
<div class="range-slider-control">
<input id="fromSlider" type="range" value="0" min="0" max="300000"/>
<input id="toSlider" type="range" value="300000" min="0" max="300000"/>
</div>
<div class="range-slider-form-control">
<div class="range-slider-form-control-container">
<div class="range-slider-form-control-time">Min</div>
<div class="range-slider-form-control-time-input-wrapper">
<input class="range-slider-form-control-time-input" type="number" id="fromInput" value="0" min="0" max="100"/>
</div>
</div>
<div class="range-slider-form-control-container">
<div class="range-slider-form-control-time">Max</div>
<div class="range-slider-form-control-time-input-wrapper">
<input class="range-slider-form-control-time-input" type="number" id="toInput" value="300000" min="0" max="100"/>
</div>
</div>
</div>
</li>
<li class="filter-item" id="transmission-filter-item">
<p class="filter-item-text">Transmission:</p>
<div class="transmission-filter-item-row">
<p class="filter-item-value">Automatic</p>
<input type="checkbox" class="filter-item-checkbox" checked="checked" id="automatic-transmission">
</div>
<div class="transmission-filter-item-row">
<p class="filter-item-value">Manual</p>
<input type="checkbox" class="filter-item-checkbox" id="manual-transmission">
</div>
</li>
</ul>
</div>
</div>
<div id="filler-search-bottom"></div>
<div class="footer-wrapper">
<p class="footer-copyright"><span>©</span> 2023 CarDex</p>
<div class="footer-links">
<div class="footer-links-left">
<a href="privacy.html">Privacy Policy</a>
<a href="terms-conditions.html">Terms and Conditions</a>
</div>
<div class="footer-social">
<!-- Let's imagine these are links to some official accounts -->
<a href="https://www.instagram.com"><img class="footer-social-img" src="imgs/icons/instagram.png" alt="Instagram"></a>
<a href="https://www.facebook.com"><img class="footer-social-img" src="imgs/icons/facebook.png" alt="Facebook"></a>
<a href="https://www.youtube.com"><img class="footer-social-img" src="imgs/icons/youtube.png" alt="Youtube"></a>
</div>
</div>
</div>
</body>
</html>