1;(function($) { 2 3 'use strict' 4 5 var isMobile = { 6 Android: function() { 7 return navigator.userAgent.match(/Android/i); 8 }, 9 BlackBerry: function() { 10 return navigator.userAgent.match(/BlackBerry/i); 11 }, 12 iOS: function() { 13 return navigator.userAgent.match(/iPhone|iPad|iPod/i); 14 }, 15 Opera: function() { 16 return navigator.userAgent.match(/Opera Mini/i); 17 }, 18 Windows: function() { 19 return navigator.userAgent.match(/IEMobile/i); 20 }, 21 any: function() { 22 return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); 23 } 24 }; 25 26 var responsiveMenu = function() { 27 var menuType = 'desktop'; 28 29 $(window).on('load resize', function() { 30 var currMenuType = 'desktop'; 31 if ( matchMedia( 'only screen and (max-width: 991px)' ).matches ) { 32 currMenuType = 'mobile'; 33 } 34 35 if ( currMenuType !== menuType ) { 36 menuType = currMenuType; 37 38 if ( currMenuType === 'mobile' ) { 39 var $mobileMenu = $('#mainnav').attr('id', 'mainnav-mobi').hide(); 40 var hasChildMenu = $('#mainnav-mobi').find('li:has(ul)'); 41 42 $('.mega-menu .mega-menu-sub').hide(); 43 $('.has-mega-menu .submenu.mega-menu').hide(); 44 45 $('#header').after($mobileMenu); 46 hasChildMenu.children('ul').hide(); 47 hasChildMenu.children('a:not(.has-mega)').after('<span class="btn-submenu"></span>'); 48 $('.btn-menu').removeClass('active'); 49 } else { 50 var $desktopMenu = $('#mainnav-mobi').attr('id', 'mainnav').removeAttr('style'); 51 52 $desktopMenu.find('.submenu').removeAttr('style'); 53 $('#header').find('.nav-wrap').append($desktopMenu); 54 $('.btn-submenu').remove(); 55 } 56 } 57 }); 58 59 $('.btn-menu').on('click', function() { 60 $('#mainnav-mobi').slideToggle(300); 61 $(this).toggleClass('active'); 62 }); 63 64 65 $(document).on('click', '#mainnav-mobi li .btn-submenu', function(e) { 66 $(this).toggleClass('active').next('ul').slideToggle(300); 67 e.stopImmediatePropagation() 68 }); 69 70 } 71 72 73 var alertBox = function() { 74 $(document).on('click', '.close', function(e) { 75 $(this).closest('.flat-alert').remove(); 76 e.preventDefault(); 77 }) 78 } 79 80 var detectViewport = function() { 81 $('[data-waypoint-active="yes"]').waypoint(function() { 82 $(this).trigger('on-appear'); 83 }, { offset: '90%', triggerOnce: true }); 84 85 $(window).on('load', function() { 86 setTimeout(function() { 87 $.waypoints('refresh'); 88 }, 100); 89 }); 90 }; 91 92 var flatTabs = function () { 93 $('.flat-tabs').each(function() { 94 95 $(this).children('.content-tab').children().hide(); 96 $(this).children('.content-tab').children().first().show(); 97 98 $(this).find('.menu-tabs').children('li').on('click', function(e) { 99 var liActive = $(this).index(), 100 contentActive = $(this).siblings().removeClass('active').parents('.flat-tabs').children('.content-tab').children().eq(liActive); 101 102 contentActive.addClass('active').fadeIn('slow'); 103 contentActive.siblings().removeClass('active'); 104 $(this).addClass('active').parents('.flat-tabs').children('.content-tab').children().eq(liActive).siblings().hide(); 105 e.preventDefault(); 106 }); 107 }); 108 }; 109 110 111 var goTop = function() { 112 $(window).scroll(function() { 113 if ( $(this).scrollTop() > 800 ) { 114 $('.go-top').addClass('show'); 115 } else { 116 $('.go-top').removeClass('show'); 117 } 118 }); 119 120 $('.go-top').on('click', function() { 121 $("html, body").animate({ scrollTop: 0 }, 1000 , 'easeInOutExpo'); 122 return false;
123 }); 124 }; 125 126 var retinaLogos = function() { 127 var retina = window.devicePixelRatio > 1 ? true : false; 128 if( retina ) { 129 $( '.header .logo' ).find('img').attr( {src:'https://www.iban.com/images/[email protected]'} ); 130 } 131 }; 132 133 134var portfolioSlider = function() { 135 if ( $().flexslider ) { 136 $('.portfolio-slider').each(function() { 137 var $this = $(this) 138 $this.find('.flexslider').flexslider({ 139 animation : "slide", 140 direction : "horizontal", // vertical 141 pauseOnHover : true, 142 useCSS : false, 143 easing : "swing", 144 animationSpeed : 500, 145 slideshowSpeed : 5000, 146 controlNav : true, 147 directionNav : true, 148 slideshow : true, 149 smoothHeight : true 150 }); // flexslider 151 }); // blog-sider 152 } 153 }; 154 155 var generalSlider = function() { 156 if ( $().flexslider ) { 157 $('.about-slider').each(function() { 158 var $this = $(this) 159 $this.find('.flexslider').flexslider({ 160 animation : "slide", 161 direction : "horizontal", // vertical 162 pauseOnHover : true, 163 useCSS : false, 164 easing : "swing", 165 animationSpeed : 500, 166 slideshowSpeed : 5000, 167 controlNav : false, 168 directionNav : true, 169 slideshow : true, 170 smoothHeight : true 171 }); // flexslider 172 }); // blog-sider 173 } 174 }; 175 176 var popupGallery = function () { 177 $('.flat-row').each(function() { 178 if ( $('a').hasClass('popup-gallery') ) { 179 $(".popup-gallery").magnificPopup({ 180 type: "image", 181 tLoading: "Loading image #%curr%...", 182 removalDelay: 600, 183 mainClass: "my-mfp-slide-bottom", 184 gallery: { 185 enabled: true, 186 navigateByImgClick: true, 187 preload: [ 0, 1 ] 188 }, 189 image: { 190 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.' 191 } 192 }); 193 } 194 }); 195 } 196 197 var parallax = function() { 198 if ( $().parallax && isMobile.any() == null ) { 199 $('.parallax1').parallax("50%", -0.8); 200 $('.parallax2').parallax("50%", -1.1); 201 $('.parallax3').parallax("50%", -1.1); 202 $('.parallax4').parallax("50%", -0.8); 203 $('.parallax5').parallax("50%", -1.1); 204 } 205 }; 206 207 var videoPopup = function() { 208 $(".fancybox").on("click", function(){ 209 $.fancybox({ 210 href: this.href, 211 type: $(this).data("type") 212 }); // fancybox 213 return false 214 }); // on 215 } 216 217 218 var removePreloader = function() { 219 $('.loading-overlay').fadeOut('slow',function () { 220 $(this).remove(); 221 }); 222 }; 223 224 // Dom Ready 225 $(function() { 226 /* if ( matchMedia( 'only screen and (min-width: 991px)' ).matches ) { 227 headerFixed(); 228 } */ 229 230 // megaMenu(); 231 //googleMap(); 232 goTop(); 233 /* swClick(); */ 234 popupGallery(); 235 portfolioSlider(); 236 generalSlider(); 237 /* portfolioIsotope(); 238 flatAccordion(); 239 progressBar(); 240 flatTabs(); 241 videoPopup(); 242 /*flatCounter(); */ 243 responsiveMenu(); 244 /* flatTestimonial(); 245 flatSearch(); */ 246 detectViewport(); 247 /* ajaxContactForm(); */ 248 /* requestcallback(); */ 249 alertBox(); 250 retinaLogos(); 251 parallax(); 252 removePreloader(); 253 }); 254 255})(jQuery); 256 257console&&console.log("\n%c Built for IBAN\n","font-family: monospace;-webkit-font-smoothing:antialiased"),console&&console.log("\n\n POWERFUL VALIDATION API BUILT FOR DEVELOPERS\n https://www.iban.com/developers\n\n")
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.