%PDF- %PDF-
Direktori : /home/eirtvhdf/logobrainiacs.com/assets1/js/ |
Current File : /home/eirtvhdf/logobrainiacs.com/assets1/js/functions.js |
$(document).ready(function(){ // $('.counter').counterUp({ // delay: 10, // time: 2000 // }); window.addEventListener("load", function(event) { let images = document.querySelectorAll("[data-original]"); let lazy = lazyload(images, {"src": "data-original"}); }); jQuery("img.lazy").lazyload(); $('.counter').each(function () { console.log('tset'); $(this).prop('Counter',0).animate({ Counter: $(this).text() }, { duration: 4000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); }); var selectedClass = ""; $(".fil-cat").click(function(){ selectedClass = $(this).attr("data-rel"); $("#portfolio").fadeTo(100, 0.1); $("#portfolio div").not("."+selectedClass).fadeOut().removeClass('scale-anm'); setTimeout(function() { $("."+selectedClass).fadeIn().addClass('scale-anm'); $("#portfolio").fadeTo(300, 1); }, 300); }); $('.desk-menu').click(function(){ $('.menu-left').toggleClass('enable'); }); $('.menu-lclose , .menu-lover').click(function(){ $('.menu-left').removeClass('enable'); }); $('span.fa-handle').click(function(){ $(this).parents('.sub-menu-holder').toggleClass('openable'); }); $('.various').click(function() { var price = $(this).attr('name'); var title = $(this).attr('title'); $("#get_amount").val(price); $("#get_package").val(title); /* $(".popupform .leadprice").val(leadprice); */ $(".popupformWebsite").css("display","flex").hide().fadeIn(300); }); $("#contactform").validate({}); $(".validate-popupform").validate({}); $(".validate-popupform-video").validate({}); $(".validate-popupform-web").validate({}); $(".validate-popupform-sending").validate({}); var currentIP = $("meta[name=ip2loc]").attr('content'); var key = '5XpThOAEkfgOvEJ'; $.ajax({ method: 'get', url: 'https://pro.ip-api.com/json/' + currentIP, data: {key: key}, success: function (data) { if (data) { $('input[name=ip2loc_ip]').val(data.query); $('input[name=ip2loc_isp]').val(data.isp); $('input[name=ip2loc_org]').val(data.org); $('input[name=ip2loc_country]').val(data.country); $('input[name=ip2loc_region]').val(data.regionName); $('input[name=ip2loc_city]').val(data.city); } } }); $(window).on("load",function(){ $(".pack-ul").mCustomScrollbar({ autoHideScrollbar:true, }); }); $('#testslider').owlCarousel({ loop:true, margin:0, dots: true, navText: ['<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>'], responsiveClass:true, nav: false, autoplay:true, autoplayTimeout:2000, autoplayHoverPause:true, responsive:{ 0:{ items:1, }, 600:{ items:1, }, 1000:{ items:1 } } }); $('.slider1123').slick({ dots: false, arrows:false, infinite: true, speed: 500, fade: true, autoplay:true, cssEase: 'linear' }); $('.slider2').slick({ dots: false, arrows:false, infinite: true, speed: 1000, fade: true, autoplay:true, cssEase: 'linear' }); $('.slider3').slick({ dots: false, arrows:false, infinite: true, speed: 1500, fade: true, autoplay:true, cssEase: 'linear' }); $('.slide').slick({ dots: false, arrows:false, infinite: true, slidesToShow: 7, slidesToScroll: 7, autoplay:true, speed: 1000, }); $('.bnr-main-slider').slick({ speed: 1400, dots: false, fade: true, arrows:false, autoplay: true }); $('.bnr-main-sliderlft-2').slick({ speed: 1400, dots: false, fade: true, arrows:false, autoplay: true }); $('.bnr-main-sliderlft-1').slick({ speed: 1400, dots: false, fade: true, arrows:false, autoplay: true }); $('.bnr-main-sliderRht-1').slick({ speed: 1400, dots: false, fade: true, arrows:false, autoplay: true }); $('.bnr-main-sliderRht-2').slick({ speed: 1400, dots: false, fade: true, arrows:false, autoplay: true }); $('.bnr-main-sliderRht-3').slick({ speed: 1400, dots: false, fade: true, arrows:false, autoplay: true }); $('ul.tabs li').click(function(){ var tab_id = $(this).attr('data-tab'); $('ul.tabs li').removeClass('current'); $('.tab-content').removeClass('current'); $(this).addClass('current'); $("#"+tab_id).addClass('current').siblings().removeClass('current'); }); $('ul.tabs2 li').click(function(){ var tab_id1 = $(this).attr('data-tab'); $('ul.tabs2 li').removeClass('current1'); $('.tab-content2').removeClass('current1'); $(this).addClass('current1'); $("#"+tab_id1).addClass('current1').siblings().removeClass('current1'); }); }); /* $('.chat').click( function(){ $zopim.livechat.window.toggle(); }); */