| Line 1... |
Line 1... |
| 1 |
<script>
|
1 |
<script>
|
| 2 |
$(document).ready(function(){
|
2 |
$(document).ready(function(){
|
| 3 |
setTimeout(function(){
|
3 |
setTimeout(function(){
|
| 4 |
$('#searchforbrand').css({'background-color':'orange'});
|
4 |
$('#searchforbrand').css({'background-color':'orange'});
|
| 5 |
setTimeout(function(){$('#searchforbrand').css({'background-color':''})}, 500);
|
5 |
setTimeout(function(){$('#searchforbrand').css({'background-color':''})}, 1500);
|
| 6 |
}, 1000);
|
6 |
}, 1000);
|
| 7 |
|
7 |
|
| 8 |
var statepushed = false;
|
8 |
var statepushed = false;
|
| 9 |
if($("#searchforbrand").length != 0 ) {
|
9 |
if($("#searchforbrand").length != 0 ) {
|
| 10 |
if (window.history && window.history.pushState) {
|
10 |
if (window.history && window.history.pushState) {
|
| Line 68... |
Line 68... |
| 68 |
.done(function(msg){
|
68 |
.done(function(msg){
|
| 69 |
if( c != typingTimer) {
|
69 |
if( c != typingTimer) {
|
| 70 |
$("#searchloader").addClass('hidden');
|
70 |
$("#searchloader").addClass('hidden');
|
| 71 |
return;
|
71 |
return;
|
| 72 |
}
|
72 |
}
|
| - |
|
73 |
$(window).one('scroll', function(){
|
| - |
|
74 |
$("#searchforbrand").blur();
|
| - |
|
75 |
});
|
| 73 |
$("#popovertrigger5").popover('hide').remove();
|
76 |
$("#popovertrigger5").popover('hide').remove();
|
| 74 |
var cart_details = localStorage.getItem("cart_details");
|
77 |
var cart_details = localStorage.getItem("cart_details");
|
| 75 |
if(cart_details!=undefined){
|
78 |
if(cart_details!=undefined){
|
| 76 |
var cartDetailsObj = JSON.parse(cart_details);
|
79 |
var cartDetailsObj = JSON.parse(cart_details);
|
| 77 |
if(cartDetailsObj.totalCartQuantity > 0){
|
80 |
if(cartDetailsObj.totalCartQuantity > 0){
|
| Line 210... |
Line 213... |
| 210 |
<a href="<?php echo $_SERVER['HTTP_REFERER'];?>"><span style="padding:3px" class="glyphicon glyphicon-arrow-left"></span>Showing <?php echo $searchfor;?> items</a>
|
213 |
<a href="<?php echo $_SERVER['HTTP_REFERER'];?>"><span style="padding:3px" class="glyphicon glyphicon-arrow-left"></span>Showing <?php echo $searchfor;?> items</a>
|
| 211 |
</div>
|
214 |
</div>
|
| 212 |
<?php endif;?>
|
215 |
<?php endif;?>
|
| 213 |
<?php if($id==6 && isset($subcategorieschosen) && array_key_exists($_COOKIE['subcategorieschosen'], $searchableSubCategories)):?>
|
216 |
<?php if($id==6 && isset($subcategorieschosen) && array_key_exists($_COOKIE['subcategorieschosen'], $searchableSubCategories)):?>
|
| 214 |
<div id= "moreitem">
|
217 |
<div id= "moreitem">
|
| 215 |
<a onclick="clearFilters()" href="<?php echo $_SERVER['HTTP_REFERER'];?>"><span style="padding:3px" class="glyphicon glyphicon-arrow-left"></span>Showing <?php echo $searchableSubCategories[$_COOKIE['subcategorieschosen']];?> items</a>
|
218 |
<a onclick="clearFilters()" href="<?php echo $_SERVER['HTTP_REFERER'];?>"><span style="padding:3px" class="glyphicon glyphicon-arrow-left"></span>Showing <?php echo $searchableSubCategories[$_COOKIE['subcategorieschosen']];?></a>
|
| 216 |
</div>
|
219 |
</div>
|
| 217 |
<div class= "inner-addon left-addon" style='padding-top:5px;position: relative;'>
|
220 |
<div class= "inner-addon left-addon" style='padding-top:5px;position: relative;'>
|
| 218 |
<i class="glyphicon glyphicon-search"></i>
|
221 |
<i class="glyphicon glyphicon-search"></i>
|
| 219 |
<input type="text" id= "searchforbrand" placeholder="Search brands or models" class="input-block-level">
|
222 |
<input type="text" id= "searchforbrand" placeholder="Search brands or models" class="input-block-level">
|
| 220 |
</div>
|
223 |
</div>
|