1 2// Search Box (Header) 3 4// Search Box v1 (Header v5) 5 6jQuery('.header-v5 .search-button').click(function () { 7 jQuery('.header-v5 .search-open').slideDown(); 8}); 9 10jQuery('.header-v5 .search-close').click(function () { 11 jQuery('.header-v5 .search-open').slideUp(); 12}); 13 14jQuery(window).scroll(function(){ 15 if(jQuery(this).scrollTop() > 1) jQuery('.header-v5 .search-open').fadeOut('fast'); 16}); 17 18// Search Box v2 (Header v8) 19$(".topmenu").on("click", function() { 20 if (jQuery(".topbar-search-block").hasClass("topbar-search-visible")) { 21 jQuery(".topbar-search-block").slideUp(); 22 jQuery('.topbar-search-block').fadeIn(500); 23 jQuery(".topbar-search-block").removeClass("topbar-search-visible"); 24 } else { 25 jQuery(".topbar-search-block").slideUp(); 26 jQuery(".topbar-search-block").addClass("topbar-search-visible"); 27 } 28}); 29$(".blog-topbar .search-close").on("click", function() { 30 jQuery(".topbar-search-block").slideUp(); 31 jQuery('.topbar-search-block').fadeOut(500); 32 jQuery(".topbar-search-block").removeClass("topbar-search-visible"); 33}); 34jQuery(window).scroll(function() { 35 jQuery(".topbar-search-block").slideUp("slow"); 36 jQuery(".topbar-search-block").removeClass("topbar-search-visible"); 37}); 38 39 40 41// Search Box (Header) 42 43$(".topmenu").on("click", function() { 44if(jQuery('.search-btn').hasClass('icon-menu')){ 45jQuery('.topbar-search-block').fadeIn(500); 46jQuery('.search-btn').removeClass('icon-menu'); 47jQuery('.search-btn').addClass('fa-times'); 48} else { 49jQuery('.topbar-search-block').fadeOut(500); 50jQuery('.search-btn').addClass('icon-menu'); 51jQuery('.search-btn').removeClass('fa-times'); 52} 53}); 54 55 56// Search Box (Header) 57 58 $(".topnavbar").on("click", function() { 59 if (jQuery(".topnavbar").hasClass("topbar-list-visible") ) { 60 jQuery(".topbar-menu").slideUp(); 61 jQuery(this).removeClass("topbar-list-visible"); 62 jQuery('.qmenu-btn').removeClass('fa fa-times'); 63 jQuery('.qmenu-btn').addClass('fa fa-bars'); 64 65 } else { 66 jQuery(".topbar-menu").slideDown(); 67 jQuery(this).addClass("topbar-list-visible"); 68 if(jQuery('.qmenu-btn').hasClass('fa fa-bars')){ 69 jQuery('.qmenu-btn').removeClass('fa fa-bars'); 70 jQuery('.qmenu-btn').addClass('fa fa-times'); 71 }else{ 72 jQuery('.qmenu-btn').addClass('fa fa-bars'); 73 jQuery('.qmenu-btn').removeClass('fa fa-times'); 74 } 75 } 76 }); 77 78jQuery(window).scroll(function() { 79 jQuery(".topbar-menu").slideUp("slow"); 80 jQuery(".topbar-menu").removeClass("topbar-search-visible"); 81}); 82 83 84// Autoclose modals 85 86$('.foundry_modal[data-hide-after]').each(function(){ 87 var modal = $(this); 88 var delay = modal.attr('data-hide-after'); 89 if(typeof modal.attr('data-cookie') != "undefined"){ 90 if(!mr_cookies.hasItem(modal.attr('data-cookie'))){ 91 setTimeout(function(){ 92 if(!modal.hasClass('modal-acknowledged')){ 93 modal.removeClass('reveal-modal'); 94 $('.modal-screen').removeClass('reveal-modal'); 95 } 96 },delay); 97 } 98 }else{ 99 setTimeout(function(){ 100 if(!modal.hasClass('modal-acknowledged')){ 101 modal.removeClass('reveal-modal'); 102 $('.modal-screen').removeClass('reveal-modal'); 103 } 104 },delay); 105 } 106}); 107 108jQuery('.close-modal:not(.modal-strip .close-modal)').unbind('click').click(function(){ 109 var modal = jQuery(this).closest('.foundry_modal'); 110 modal.toggleClass('reveal-modal'); 111 if(typeof modal.attr('data-cookie') !== "undefined"){ 112 mr_cookies.setItem(modal.attr('data-cookie'), "true", Infinity); 113 } 114 if(modal.find('iframe').length){ 115 modal.find('iframe').attr('src', ''); 116 } 117 jQuery('.modal-screen').removeClass('reveal-modal'); 118}); 119 120jQuery('.modal-screen').unbind('click').click(function(){ 121 if(jQuery('.foundry_modal.reveal-modal').find('iframe').length){ 122 jQuery('.foundry_modal.reveal-modal').find('iframe').attr('src', ''); 123 } 124 jQuery('.foundry_modal.reveal-modal').toggleClass('reveal-modal'); 125 jQuery(this).toggleClass('reveal-modal'); 126}); 127 128jQuery(document).keyup(function(e) { 129if (e.keyCode == 27) { // escape key maps to keycode `27` 130 if(jQuery('.foundry_modal').find('iframe').length){ 131 jQuery('.foundry_modal').find('iframe').attr('src', ''); 132 } 133 jQuery('.foundry_modal').removeClass('reveal-modal');
134 jQuery('.modal-screen').removeClass('reveal-modal'); 135} 136}); 137 138// Modal Strips 139 140jQuery('.modal-strip').each(function(){ 141 if(!jQuery(this).find('.close-modal').length){ 142 jQuery(this).append(jQuery('<i class="fa fa-times close-modal" aria-hidden="true"></i>')); 143 } 144 var modal = jQuery(this); 145 146 if(typeof modal.attr('data-cookie') != "undefined"){ 147 148 if(!mr_cookies.hasItem(modal.attr('data-cookie'))){ 149 setTimeout(function(){ 150 modal.addClass('reveal-modal'); 151 },1000); 152 } 153 }else{ 154 setTimeout(function(){ 155 modal.addClass('reveal-modal'); 156 },1000); 157 } 158}); 159 160jQuery('.modal-strip .close-modal').click(function(){ 161 var modal = jQuery(this).closest('.modal-strip'); 162 if(typeof modal.attr('data-cookie') != "undefined"){ 163 mr_cookies.setItem(modal.attr('data-cookie'), "true", Infinity); 164 } 165 jQuery(this).closest('.modal-strip').removeClass('reveal-modal'); 166 return false; 167}); 168 169(function($) { 170 "use strict"; 171 172 173/*================================ 1747 - Google Maps 175================================*/ 176 177$('.triangle').click( 178 function () { 179 var state = $(this).data('toggleState'); 180 if (state) { 181 $(this).children('i').removeClass('icon-remove').addClass('icon-map-marker'); 182 $('.mapHandler').css('height', '0px'); 183 184 } else { 185 $(this).children('i').addClass('icon-remove').removeClass('icon-map-marker'); 186 $('.mapHandler').css('height', '550px'); 187 $('html, body').animate({ 188 scrollTop: $($.attr(this, 'href')).offset().top 189 }, 500); 190 contactemaps(contact_map, mapAddress, mapType, zoomLvl,map_style); 191 } 192 $(this).data('toggleState', !state); 193 }); 194 195var contact_map = 'contact-map', 196mapAddress = $('#contact-map').data('address'), 197mapType = $('#contact-map').data('maptype'), 198zoomLvl = $('#contact-map').data('zoomlvl'), 199map_style=$('#contact-map').data('dark'); 200 201 202 203function contactemaps(selector, address, type, zoom_lvl,map_style) { 204 var map = new google.maps.Map(document.getElementById(selector), { 205 mapTypeId: google.maps.MapTypeId.type, 206 scrollwheel: false, 207 draggable: false, 208 zoom: zoom_lvl, 209 styles:(map_style)? [ {"stylers": [ 210 { "hue": "#2A3448" }, 211 { "invert_lightness": true }, 212 { "lightness": 20 }, 213 { "gamma": 0.81 }, 214 { "saturation": -50 } 215 ] 216 },{ 217 "featureType": "road.local", 218 "elementType": "labels", 219 "stylers": [ 220 { "visibility": "off" } 221 ] 222 },{ 223 "featureType": "landscape", 224 "stylers": [ 225 { "visibility": "simplified" } 226 ] 227 },{ 228 "featureType": "poi", 229 "stylers": [ 230 { "visibility": "off" } 231 ] 232 },{ 233 "featureType": "road", 234 "stylers": [ 235 { "saturation": -65 } 236 ] 237 },{ 238 "featureType": "water", 239 "stylers": [ 240 { "saturation": -50 }, 241 { "lightness": -25 } 242 ] 243 },{ 244 "featureType": "road", 245 "stylers": [ 246 { "gamma": 0.9 } 247 ] 248 } 249 ] : [] 250}); 251 var map_pin = "images/map.png"; 252 var geocoder = new google.maps.Geocoder(); 253 geocoder.geocode({ 254 'address': address 255 }, 256 function (results, status) { 257 if (status === google.maps.GeocoderStatus.OK) { 258 new google.maps.Marker({ 259 position: results[0].geometry.location, 260 map: map, 261 icon: map_pin 262 }); 263 map.setCenter(results[0].geometry.location); 264 265 266 267 } 268 }); 269} 270 271 272 273 274 275})(jQuery);
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.