Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // The Slider is loaded like this:
- jQuery(window).load(function() {
- jQuery('.flexslider').flexslider({
- animation: "slide",
- directionNav: false,
- controlNav:false,
- keyboardNav:false,
- direction: "horizontal",
- slideshowSpeed:3000,
- animationSpeed:600,
- randomize: false
- });
- });
- // This is how I change:
- function changeSection(section) {
- if(activeSection != section) {
- $('#'+activeSection).fadeToggle("slow");
- $('#'+section).delay(500).fadeToggle("slow");
- $('#menu-'+activeSection).removeClass('active');
- $('#menu-'+section).addClass('active');
- document.title = activeSectionTitle;
- history.pushState({}, '', section);
- activeSection = section;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement