PATH:
root
/
paleypartnerjs
// WebFontConfig = { // google: { // families: ['Titillium Web:400,700', 'Arimo:300'] // }/*, // active: function() { // sessionStorage.fonts = true; // }*/ // }; var waitForFinalEvent = (function() { var timers = {}; return function (callback, ms, uniqueId) { if (!uniqueId) { uniqueId = "Don't call this twice without a uniqueId"; } if (timers[uniqueId]) { clearTimeout (timers[uniqueId]); } timers[uniqueId] = setTimeout(callback, ms); }; })(); (function(d) { // /*if (sessionStorage.fonts) { // document.documentElement.classList.add('wf-active'); // } else {*/ // var wf = d.createElement('script'), s = d.scripts[0]; // wf.src = 'js/webfont-1.6.26.min.js'; // wf.async = true; // s.parentNode.insertBefore(wf, s); // // } $(d).ready(function() { try { $(".main *").not("h1,h2,h3,h4,h5,h6,[class$=__heading]").hyphenate($("html").attr("lang")); } catch(err) { console.log("Hyphenate not loaded!"); } try { $(".header .bar__nav > ul").slicknav({ allowParentLinks: true, appendTo: ".header ", removeClasses: true, label: "MENU" }); } catch(err) { console.log("SlickNav not loaded!"); } $(".hamburger").on("click", function() { $(this).toggleClass("is-active"); e = $(this).parent().next().slideToggle(250); }); // if visible $.fn.isInViewport = function() { var elementTop = $(this).offset().top; var elementBottom = elementTop + $(this).outerHeight(); var viewportTop = $(window).scrollTop(); var viewportBottom = viewportTop + $(window).height(); return elementBottom > viewportTop && elementTop < viewportBottom; }; $(window).on('resize scroll', function() { $('.c').each(function() { if ($(this).isInViewport()) { $(this).removeClass('c') $(this).prop('counter',0).animate({ Counter: $(this).text() }, { duration: 2000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); } }); }); // scroll to top show btn var offset = 320; var duration = 500; $(window).scroll(function() { if ($(this).scrollTop() > offset) { $('.footer__top-btn').fadeIn(duration); } else { $('.footer__top-btn').fadeOut(duration); } }); $(".bar__nav > ul > li").hover(function() { $(this).find("ul").show(); } , function() { $(this).find(".active").css({ 'color' : '#5f5f5f'}); }); $('.home .container-rel').owlCarousel({ loop:true, margin:20, responsiveClass:true, responsive:{ 0:{ items:1, nav:true }, 600:{ items:2, nav:true }, 800:{ items:3, nav:true }, 1200:{ items:4, nav:true, loop:true }, 1600:{ items:5, nav:true, loop:true } } }); $('.rel-gallery').owlCarousel({ loop:false, margin:10, autoHeightClass: 'owl-height', responsiveClass:true, responsive:{ 0:{ items:1, nav:true }, 600:{ items:2, nav:true }, 800:{ items:3, nav:true }, 1200:{ items:4, nav:true }, 1600:{ items:5, nav:true } } }); $('.rel-gallery').magnificPopup({ delegate: 'a', type: 'image', closeOnBgClick: true, fixedContentPos: false, gallery:{enabled:true}, callbacks: { open: function() { jQuery('body').addClass('noscroll'); }, close: function() { jQuery('body').removeClass('noscroll'); } } }); $('.gallery').magnificPopup({ delegate: 'a', type: 'image', closeOnBgClick: true, fixedContentPos: false, gallery:{enabled:true}, callbacks: { open: function() { jQuery('body').addClass('noscroll'); }, close: function() { jQuery('body').removeClass('noscroll'); } } }); // INDEPENDENT var navbar = $(".menu-bar"); var scrollBar = (navigator.userAgent.indexOf("Firefox") > 0) ? $('body') : $(document); var resize = function() { if (scrollBar.scrollTop() == 0) navbar.removeClass("menu-bar--docked"); else navbar.addClass("menu-bar--docked"); }; if (navbar.length > 0) { scrollBar.on("readystatechange.navbar resize.navbar scroll.navbar", resize); } var logos = $(".main .main__logos"); if (logos.length > 0) { try { logos.lightSlider({ item: 5, auto: true, loop: true, pager: false, slideMargin: 20, responsive: [ { breakpoint: 940, settings: { item: 4 } }, { breakpoint: 720, settings: { item: 3 } }, { breakpoint: 480, settings: { item: 2 } } ], onSliderLoad: function(el) { if (navigator.appVersion.indexOf("Trident") > 0 || navigator.appVersion.indexOf("MSIE") > 0) { el.find("p.clone,p.lslide").each(function(inx, elem) { elem = $(elem); img = elem.find("img[src]"); elem.css({"background-image": "url('" + img.attr("src") + "')"}); img.css("visibility", "hidden"); }); } } }); } catch(err) { console.log("LightSlider not loaded!"); } } var map = $(".main__map"); if (map.length > 0) { map.css("background-image", "none"); try { var newMap = L.map(map[0], { center: [51.437317, 12.639264], zoom: mapZoom }); L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', { maxZoom: 18, attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' + '<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' + 'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>', id: 'mapbox.streets' }).addTo(newMap); L.marker([mapLatitude, mapLongitude]).addTo(newMap).bindPopup(mapPopupText); L.marker([mapLatitude2, mapLongitude2]).addTo(newMap).bindPopup(mapPopupText2); } catch(err) { console.error("Leaflet not loaded!", err); } newMap.scrollWheelZoom.disable(); } }); })(document);
[-] jquery.mousewheel.min.js
[edit]
[+]
..
[+]
leaflet
[-] lightgallery.js
[edit]
[+]
hypher-languages
[-] lightgallery-all.js
[edit]
[-] lightslider.min.js
[edit]
[-] jquery.magnific-popup.min.js
[edit]
[-] main.js
[edit]
[-] jquery.bgImgCrossFader.js
[edit]
[-] lightgallery-all.min.js
[edit]
[-] jquery-3.3.1.min.js
[edit]
[-] jquery.marquee.min.js
[edit]
[-] imagesloaded.pkgd.min.js
[edit]
[-] lightbox.js
[edit]
[-] lightgallery.min.js
[edit]
[-] jquery.hypher.js
[edit]
[-] masonry.pkgd.min.js
[edit]
[-] jquery.slicknav.min.js
[edit]
[-] cookies.js
[edit]
[-] google-map.js
[edit]
[-] webfont-1.6.26.min.js
[edit]
[-] html5shiv.min.js
[edit]
[-] js.cookie.js
[edit]
[-] lightbox.min.js
[edit]
[-] jquery.myUtilities.js
[edit]
[-] owl.carousel.min.js
[edit]