1/** 2 * removePreloader 3 * runSlider 4 * fixHeight 5 * goTop 6 */ 7jQuery(function($){ 8 "use strict"; 9 function detectIE() { 10 if (navigator.appName == 'Microsoft Internet Explorer'){ 11 return true; // IE 12 } 13 else if(navigator.appName == "Netscape"){ 14 return navigator.appVersion.indexOf('Edge') > -1; // EDGE 15 } 16 17 return false; 18 } 19 var removePreloader = function() { 20 setTimeout(function() { 21 $('.preloader').css({ 'opacity': 0, 'visibility':'hidden' }); 22 }, 1000); 23 $('.preloader-toppart').addClass('floatOutTop'); 24 $('.preloader-bottompart').addClass('floatOutBottom'); 25 $(".preloader").delay(1000).fadeOut(10); 26 27 }; 28 var runSlider = function() { 29 if ($.isFunction($.fn.revolution)) { 30 $('.tp-banner').show().revolution({ 31 dottedOverlay: "none", 32 delay: 6000, 33 startwidth: 1170, 34 startheight: 700, 35 hideThumbs: "on", 36 37 thumbWidth: 100, 38 thumbHeight: 50, 39 thumbAmount: 5, 40 41 navigationArrows: "solo", 42 navigationStyle: "preview4", 43 44 touchenabled: "on", 45 onHoverStop: "on", 46 47 swipe_velocity: 0.7, 48 swipe_min_touches: 1, 49 swipe_max_touches: 1, 50 drag_block_vertical: false, 51 52 parallax: "mouse", 53 parallaxBgFreeze: "on", 54 parallaxLevels: [7, 4, 3, 2, 5, 4, 3, 2, 1, 0], 55 56 keyboardNavigation: "off", 57 58 navigationHAlign: "center", 59 navigationVAlign: "bottom", 60 navigationHOffset: 0, 61 navigationVOffset: 20, 62 63 soloArrowLeftHalign: "left", 64 soloArrowLeftValign: "center", 65 soloArrowLeftHOffset: 20, 66 soloArrowLeftVOffset: 0, 67 68 soloArrowRightHalign: "right", 69 soloArrowRightValign: "center", 70 soloArrowRightHOffset: 20, 71 soloArrowRightVOffset: 0, 72 73 shadow: 0, 74 fullWidth: "on", 75 fullScreen: "off", 76 77 spinner: "spinner4", 78 79 stopLoop: "off", 80 stopAfterLoops: -1, 81 stopAtSlide: -1, 82 83 shuffle: "off", 84 85 autoHeight: "off", 86 forceFullWidth: "off", 87 88 hideThumbsOnMobile: "off", 89 hideNavDelayOnMobile: 1500, 90 hideBulletsOnMobile: "off", 91 hideArrowsOnMobile: "off", 92 hideThumbsUnderResolution: 0, 93 94 hideSliderAtLimit: 0, 95 hideCaptionAtLimit: 0, 96 hideAllCaptionAtLilmit: 0, 97 startWithSlide: 0, 98 fullScreenOffsetContainer: "" 99 }); 100 } 101 ; 102 } 103 var fixHeight = function(img,text) { 104 if ( matchMedia('only screen and (min-width: 768px)').matches ) { 105 $('body').imagesLoaded( function() { 106 if ( $(img).length && $(text).length ) { 107 $(img).height($(text).outerHeight()); 108 } 109 }); 110 } 111 }; 112 113 $(document).ready(function() { 114 if (detectIE()) { 115 $("body").addClass('ie'); 116 } 117 removePreloader(); 118 runSlider(); 119 $(window).resize(function() { 120 fixHeight('.feature-box .image','.feature-box .text'); 121 }); 122 $(window).on('load', function(event) { 123 fixHeight('.feature-box .image','.feature-box .text'); 124 }); 125 /*Go to top*/ 126 $(window).scroll(function () { 127 if ($(this).scrollTop() > 100) { 128 $('#go-to-top').css({ 129 bottom: "10px" 130 }); 131 } else { 132 $('#go-to-top').css({ 133 bottom: "-100px" 134 }); 135 } 136 }); 137 $('#go-to-top').click(function () { 138 $('html, body').animate({ 139 scrollTop: '0px' 140 }, 800); 141 return false; 142 }); 143 if ( $.isFunction($.fn.magnificPopup) ) { 144 $('.popup').each(function (index, element) { 145 $(this).click(function () { 146 $(this).parent().parent().siblings(".mf-popup").find(".mf-no-gallery a").click(); 147 $(this).parent().parent().siblings(".mf-popup").find(".carousel .carousel-inner a:first").click(); 148 return false; 149 }); 150 }); 151 $(".magnific-popup, a[data-rel^='magnific-popup'],.mf-no-gallery a").magnificPopup({ 152 type: 'image', 153 mainClass: 'mfp-with-zoom', // this class is for CSS animation below 154 gallery: { 155 enabled: true 156 }, 157 zoom: { 158 enabled: true, 159 duration: 300, 160 easing: 'ease-in-out', 161 // The "opener" function should return the element from which popup will be zoomed in 162 // and to which popup will be scaled down 163 // By defailt it looks for an image tag: 164 opener: function(openerElement) { 165 // openerElement is the element on which popup was initialized, in this case its <a> tag 166 // you don't need to add "opener" option if this code matches your needs, it's defailt one. 167 return openerElement.is('img') ? openerElement : openerElement.find('img'); 168 } 169 } 170 171 }); 172 173 $('.mf-popup').find('.carousel .carousel-inner').once('mfp-processed').each(function() { 174 $(this).magnificPopup({ 175 delegate: 'a', 176 type: 'image', 177 178 gallery: { 179 enabled: true 180 }, 181 removalDelay: 500, 182 callbacks: { 183 beforeOpen: function() { 184 this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim'); 185 this.st.mainClass = /*this.st.el.attr('data-effect')*/ "mfp-zoom-in"; 186 } 187 }, 188 closeOnContentClick: true, 189 // allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source 190 midClick: true , 191 retina: { 192 ratio: 1, 193 replaceSrc: function(item, ratio) { 194 return item.src.replace(/\.\w+$/, function(m) { return '@2x' + m; }); 195 } 196 } 197 198 }); 199 }); 200 } 201 }); 202}); 203
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.