����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 216.73.216.203
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/builderbox/public_html/public/builder/templates/devcourse/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/public_html/public/builder/templates/devcourse/assets/js/main.js
$(document).ready(function() {
    
    
    /* ======= Scrollspy ======= */
   $('body').scrollspy({ target: '#section-nav', offset: 100});

    
    /* ======= ScrollTo ======= */
    $('.scrollto').on('click', function(e){
        
        //store hash
        var target = this.hash;
                
        e.preventDefault();
        
        if ($(window).width() < 992){
	        $('body').scrollTo(target, 800, {offset: 0, 'axis':'y'});
	    }
	    else {
	        $('body').scrollTo(target, 800, {offset: -64, 'axis':'y'});
	    }
		
		
	});
	
	/* ======= Fixed page nav when scrolled ======= */    
    $(window).on('scroll resize', function() {
        
         $('#section-nav-wrapper').removeClass('fixed');
         
         var scrollTop = $(this).scrollTop();
                  
         // Check fixednav contains any element before get the offset - https://stackoverflow.com/questions/20175094/uncaught-typeerror-cannot-read-property-top-of-undefined
         
         var fixednav = $('#section-nav-wrapper');
         
         if  (fixednav.length) {
	        var topDistance = $('#section-nav-wrapper').offset().top;
         }
         
         if ( (topDistance) > scrollTop ) {
            $('#section-nav-wrapper').removeClass('fixed');
            $('body').removeClass('sticky-section-nav');
         }
         else {
            $('#section-nav-wrapper').addClass('fixed');
            $('body').addClass('sticky-section-nav');
         }

    });
    

    /* ======= Modules accordion ======= */
    $('.module-toggle').on('click', function () {
      if ($(this).find('svg').attr('data-icon') == 'plus' ) {
        $(this).find('svg').attr('data-icon', 'minus');
      } else {
        $(this).find('svg').attr('data-icon', 'plus');
      };
    });

    
    /* ======= Play/Stop Video in Bootstrpa Modal  ======= */
	/* ======= Note: Chrome 66+ doesn't allow vimeo video auto play (https://github.com/vimeo/player.js/issues/199) ====== */

    $('.video-play-trigger').on('click', function() {
        
        var theModal = $(this).data("target");
        var theVideo = $(theModal + ' iframe').attr('src');
        var theVideoAuto = theVideo + "?autoplay=1";
        
        $(theModal).on('shown.bs.modal', function () {
            $(theModal + ' iframe').attr('src', theVideoAuto);
        });
        
        $(theModal).on('hide.bs.modal', function () {
            $(theModal + ' iframe').attr('src', '');
        });
        
        $(theModal).on('hidden.bs.modal', function () {
            $(theModal + ' iframe').attr('src', theVideo);
        });
 
    });

});

Youez - 2016 - github.com/yon3zu
LinuXploit