1//var wwh = 0; 2 3 4$(document).ready(function($){ 5 6$('#reset-filters').click(function(e){ 7 e.preventDefault(); 8 $('.filter-section .select-block').each(function(i,o){ 9 $('select',o).removeAttr('selected'); 10 $($('select option', o).get(0)).attr('selected', 'selected'); 11 $('.select',o).text($('select',o).val()); 12 }); 13 14 $(this).removeClass('show-reset-button'); 15 16 $('.city-select select').attr('disabled', 'disabled'); 17 $('.area-select select').attr('disabled', 'disabled'); 18 19 $('.city-select').addClass("disabled"); 20 $('.area-select').addClass("disabled"); 21 22}); 23 24 25 26$('a.contact-method').click(function(e){ 27 e.preventDefault(); 28 $(this).find('.account-info').toggleClass('show-item'); 29 }); 30 31$('.filter-section select').on('change', function (e) { 32 33 var country_i = $('.country-select select').children('option:selected').index(); 34 var city_i = $('.city-select select').children('option:selected').index(); 35 var area_i = $('.area-select select').children('option:selected').index(); 36 37 var selectindex = $(this).children('option:selected').index(); 38 39 if ((country_i != 0)&&(city_i != 0)&&(area_i != 0)) { 40 $('#reset-filters').addClass('show-reset-button'); 41 } else { 42 $('#reset-filters').removeClass('show-reset-button'); 43 44 } 45}); 46 47$('.filter-section .country-select').on('change', function (e) { 48 var country_j = $('.country-select select').children('option:selected').index(); 49 if (country_j != 0) { 50 $('.city-select select').removeAttr("disabled"); 51 $('.city-select').removeClass("disabled"); 52 } 53 }); 54 55$('.filter-section .city-select').on('change', function (e) { 56 var city_j = $('.city-select select').children('option:selected').index(); 57 if (city_j != 0) { 58 $('.area-select select').removeAttr("disabled"); 59 $('.area-select').removeClass("disabled"); 60 } 61 }); 62 63 64jQuery(".scrolll").click(function(event){ 65 event.preventDefault(); 66 //calculate destination place 67 var dest=0; 68 if(jQuery(this.hash).offset().top > jQuery(document).height()-jQuery(window).height()){ 69 dest=jQuery(document).height()-jQuery(window).height(); 70 }else{ 71 dest=jQuery(this.hash).offset().top-50; 72 } 73 //go to destination 74 jQuery('html,body').animate({scrollTop:dest}, 1000,'swing'); 75 }); 76 77 78$('#home-slider').bxSlider({ 79 controls: true, 80 pager: true, 81 auto: true, 82 pause: 5000, 83 speed: 800, 84 mode: 'fade' 85}); 86 87 88 $("nav#navigation_menu").mmenu({ 89 offCanvas: { 90 position: "right" 91 } 92 }); 93 94 95 96$('.fancybox-thumbs').fancybox({ 97 prevEffect : 'none', 98 nextEffect : 'none', 99 100 closeBtn : true, 101 arrows : true, 102 nextClick : true, 103 104 helpers : { 105 thumbs : { 106 width : 50, 107 height : 50 108 } 109 } 110 }); 111 112$('.fancybox').fancybox(); 113 114 /* Media Gallery */ 115 $('.tabs-wrapper .navigator .tab-selector').on('click', function(){ 116 $('.tabs-wrapper .navigator .tab-selector.active').removeClass('active'); 117 $(this).addClass('active'); 118 119 console.log($(this).index()); 120 121 $('.tabs-wrapper .tab-wrapper .tab.active').removeClass('active'); 122 $($('.tabs-wrapper .tab-wrapper .tab').get($(this).index()-1)).addClass('active'); 123 }); 124 125 126$('.media-gallery-wrapper .tab-selector img').centerImage(); 127 128 129 130 131 132 133function close_accordion_section() { 134 $('.accordion .accordion-section-title').removeClass('active'); 135 $('.accordion .accordion-section-content').slideUp(300).removeClass('open'); 136 } 137 138 $('.accordion-section-title').click(function(e) { 139 // Grab current anchor value 140 var currentAttrValue = $(this).attr('href'); 141 142 if($(e.target).is('.active')) { 143 close_accordion_section(); 144 }else { 145 close_accordion_section(); 146 147 // Add active class to section title 148 $(this).addClass('active'); 149 // Open up the hidden content panel 150 $('.accordion ' + currentAttrValue).slideDown(300).addClass('open'); 151 } 152 153 e.preventDefault(); 154 }); 155 156 $('.tell-a-friend-popup .reset-btn').click(function(e) { 157 158 $('#tell-a-friend-form').trigger("reset"); 159 e.preventDefault(); 160 }); 161 162 163$('#navigation_menu').removeClass('no-display'); 164$('#home-slider').removeClass('has-transparency'); 165 166});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.