-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
213 lines (211 loc) · 10.5 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<title>AT Listings</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link rel="stylesheet" href="assets/combined.min.css">
<script src="assets/combined.min.js"></script>
<script type="text/javascript" src="//use.typekit.net/odo6ird.js"></script>
</head>
<body>
<div class="wrapper" id="fixed">
<div class="topnav">
<div class="icn-menu">
<img src="assets/images/icn-menu.png" alt="menu" width="26">
</div>
<div class="logo">
<img src="assets/images/autotrader_logo.png" alt="AutoTrader" width="140">
</div>
<div class="icn-search">
<img src="assets/images/icn-search.png" alt="search" width="26">
</div>
</div>
<img src="assets/images/spinner.gif" alt="" id="spinner">
<div class="listings">
<img src="assets/images/ford-focus-listings.jpg" alt="" id="listings">
</div>
<div class="filters-wrapper hide">
<div class="filters">
<div class="full-width-section">
<img src="assets/images/close.png" alt="close" width="16" class="close">
<h1>Refining 230 Ford Focus cars</h1>
</div>
<form>
<div class="full-width-section pb">
<div class="pr">
<span class="dash">-</span>
<div data-role="rangeslider">
<label for="range-1a" class="mt">Price:</label>
<input type="range" name="range-1a" id="range-1a" min="0" max="30000" value="0" step="1000" data-popup-enabled="true">
<label for="range-1b" class="mt">Price:</label>
<input type="range" name="range-1b" id="range-1b" min="0" max="30000" value="15000" step="1000" data-popup-enabled="true">
</div>
</div>
<div class="labels cf">
<span class="label-left">£0</span><span class="label-center">£15,000</span><span class="label-right">£30,000+</span>
</div>
<div class="pr">
<span class="dash">-</span>
<div data-role="rangeslider">
<label for="range-1a" class="mt">Milage:</label>
<input type="range" name="range-1c" id="range-1c" min="0" max="100000" value="0" step="2500" data-popup-enabled="true">
<label for="range-1b" class="mt">Milage:</label>
<input type="range" name="range-1d" id="range-1d" min="0" max="100000" value="50000" step="2500" data-popup-enabled="true">
</div>
</div>
<div class="labels cf">
<span class="label-left">0</span><span class="label-center">50,000</span><span class="label-right">100,000+</span>
</div>
<div class="pr age">
<span class="dash">-</span>
<div data-role="rangeslider">
<label for="range-1a" class="mt">Age:</label>
<input type="range" name="range-1a" id="range-1a" min="0" max="20" value="0" data-popup-enabled="true">
<label for="range-1b" class="mt">Age:</label>
<input type="range" name="range-1b" id="range-1b" min="0" max="20" value="5" data-popup-enabled="true">
</div>
</div>
<div class="labels cf">
<span class="label-left">0</span><span class="label-center">10</span><span class="label-right">20+</span>
</div>
<div class="pr">
<label for="slider-2" class="mt">Distance (miles):</label>
<input type="range" name="slider-2" id="slider-2" data-highlight="true" min="0" max="100" value="50" step="5" data-popup-enabled="true">
</div>
<div class="labels cf">
<span class="label-left">0</span><span class="label-center">50</span><span class="label-right">100+</span>
</div>
</div>
<div class="full-width-section">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true" id="fuelRadio">
<legend>Fuel type:</legend>
<input type="radio" name="radio-choice-h-6" id="radio-choice-h-6a" value="on" checked="checked">
<label for="radio-choice-h-6a">Any</label>
<input type="radio" name="radio-choice-h-6" id="radio-choice-h-6b" value="off">
<label for="radio-choice-h-6b">Petrol</label>
<input type="radio" name="radio-choice-h-6" id="radio-choice-h-6c" value="other">
<label for="radio-choice-h-6c">Diesel</label>
<input type="radio" name="radio-choice-h-6" id="radio-choice-h-6d" value="other">
<label for="radio-choice-h-6d">…</label>
</fieldset>
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true" class="hide additional-fuel">
<!-- <legend>Fuel type:</legend> -->
<input type="radio" name="radio-choice-h-6b" id="radio-choice-h-6ab" value="on" checked="checked">
<label for="radio-choice-h-6ab">Electric</label>
<input type="radio" name="radio-choice-h-6b" id="radio-choice-h-6bb" value="off">
<label for="radio-choice-h-6bb">Hybrid</label>
<input type="radio" name="radio-choice-h-6b" id="radio-choice-h-6cb" value="other">
<label for="radio-choice-h-6cb">Unlisted</label>
</fieldset>
</div>
<div class="full-width-section">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend>Transmission:</legend>
<input type="radio" name="radio-choice-h-7" id="radio-choice-h-7a" value="on" checked="checked">
<label for="radio-choice-h-7a">Any</label>
<input type="radio" name="radio-choice-h-7" id="radio-choice-h-7b" value="off">
<label for="radio-choice-h-7b">Manual</label>
<input type="radio" name="radio-choice-h-7" id="radio-choice-h-7c" value="other">
<label for="radio-choice-h-7c">Automatic</label>
</fieldset>
</div>
<div class="full-width-section">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend>Doors:</legend>
<input type="radio" name="radio-choice-h-8" id="radio-choice-h-8a" value="on" checked="checked">
<label for="radio-choice-h-8a">Any</label>
<input type="radio" name="radio-choice-h-8" id="radio-choice-h-8b" value="off">
<label for="radio-choice-h-8b">2</label>
<input type="radio" name="radio-choice-h-8" id="radio-choice-h-8c" value="other">
<label for="radio-choice-h-8c">3</label>
<input type="radio" name="radio-choice-h-8" id="radio-choice-h-8d" value="other">
<label for="radio-choice-h-8d">4</label>
<input type="radio" name="radio-choice-h-8" id="radio-choice-h-8e" value="other">
<label for="radio-choice-h-8e">5</label>
</fieldset>
</div>
<div class="full-width-section">
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
<legend>Seller type:</legend>
<input type="radio" name="radio-choice-h-9" id="radio-choice-h-9a" value="on" checked="checked">
<label for="radio-choice-h-9a">Any</label>
<input type="radio" name="radio-choice-h-9" id="radio-choice-h-9b" value="off">
<label for="radio-choice-h-9b">Private</label>
<input type="radio" name="radio-choice-h-9" id="radio-choice-h-9c" value="other">
<label for="radio-choice-h-9c">Trade</label>
</fieldset>
</div>
<div class="full-width-section extra-padding">
<img src="assets/images/chevron-right.png" alt="right" class="floatRight chevron" width="10"><b>Body type</b><span class="floatRight">Any</span>
</div>
<div class="full-width-section extra-padding">
<img src="assets/images/chevron-right.png" alt="right" class="floatRight chevron" width="10"><b>Colour</b><span class="floatRight">Any</span>
</div>
</form>
<a href="#" class="alignCenter more-filters">More filters</a>
</div>
</div>
<div class="the-button-wrapper hide2">
<a href="#" id="theButton" class="button">Refine search</a>
</div>
</div>
<div class="new-search hide">
<img src="assets/images/new-search.jpg" alt="new search" width="375">
</div>
<script>
var flip = 0;
var st = 0;
var lastScroll;
$(document).scroll(function(){
st = $(this).scrollTop();
});
$(document).ready(function(){
setTimeout(function(){
$('.the-button-wrapper').removeClass('hide2').addClass('animated fadeInUp');
}, 1000);
})
$('#theButton').on('click', function(){
if (flip == 0){
$('.filters-wrapper').removeClass('hide fadeOutDown').addClass('animated fadeInUp').scrollTop(0);
$('#theButton').addClass('big-button');
$('#theButton').empty().append('Update results');
lastScroll = st;
$('.wrapper').addClass('noscroll').css('top', -st + 'px');
$( "input[type=number]" ).prop( "readonly", true );
flip = 1;
} else if (flip == 1) {
$('.filters-wrapper').removeClass('fadeInUp').addClass('fadeOutDown');
$('#theButton').removeClass('big-button');
$('#theButton').empty().append('Refine search');
$('.wrapper').removeClass('noscroll');
flip = 0;
window.scrollTo(0,0);
$('#listings').hide().delay(1300).fadeIn(300);
}
});
$('.close').on('click', function(){
$('.filters-wrapper').removeClass('fadeInUp').addClass('fadeOutDown');
$('#theButton').removeClass('big-button');
$('#theButton').empty().append('Refine search');
$('.wrapper').removeClass('noscroll');
$('body').scrollTop(lastScroll);
flip = 0;
});
$('.icn-search img').on('click', function(){
$('.new-search').removeClass('hide fadeOutRight').addClass('animated fadeInRight');
});
$('.new-search').on('click', function(){
$(this).removeClass('fadeInRight').addClass('fadeOutRight');
});
$('#fuelRadio input[type=radio]').on('click', function(){
if ($('#radio-choice-h-6d').is(':checked')){
$('.additional-fuel').fadeIn(200);
} else {
$('.additional-fuel').fadeOut(200);
}
});
</script>
</body>
</html>