1/* 2 Project Name : Mindelo 3 4 ## Document Scroll 5 6 ## Document Ready 7 -- Scrolling Navigation 8 -- Find all anchors 9 -- Add Easing Effect 10 -- Responsive Caret 11 -- Back To Top 12 13 ## Window Load 14 -- Site Loader 15*/ 16 17(function($) { 18 19 "use strict" 20 21 22 23 24 $('.team-box').on('click touchend', function(e) { 25 var el = $(this); 26 }); 27 28 29 /* ## Document Ready - Handler for .ready() called */ 30 $(document).ready(function($) { 31 32 /* - Set Sticky Menu */ 33 if( $(".header-section").length ) { 34 var menu_scroll = $(".header-section").offset().top; 35 var sticky_menu = function() { 36 var scroll_top = $(window).scrollTop(); 37 38 if ( scroll_top > menu_scroll ) { 39 $(".header-section").addClass("navbar-fixed-top animated fadeInDown"); 40 } else { 41 $(".header-section").removeClass("navbar-fixed-top animated fadeInDown"); 42 } 43 }; 44 sticky_menu(); 45 } 46 47 /* Event - Window Scroll */ 48 $(window).scroll(function() { 49 sticky_menu(); 50 }); 51 52 53 $('.navbar-nav li a[href*="#"]:not([href="#"]), .site-logo a[href*="#"]:not([href="#"])').on("click", function(e) { 54 55 var $anchor = $(this); 56 57 $("html, body").stop().animate({ scrollTop: $($anchor.attr("href")).offset().top - 49 }, 1500, "easeInOutExpo"); 58 59 e.preventDefault(); 60 }); 61 62 /* -- Responsive Caret */ 63 $(".ddl-switch").on("click", function() { 64 var li = $(this).parent(); 65 if ( li.hasClass("ddl-active") || li.find(".ddl-active").length !== 0 || li.find(".dropdown-menu").is(":visible") ) { 66 li.removeClass("ddl-active"); 67 li.children().find(".ddl-active").removeClass("ddl-active"); 68 li.children(".dropdown-menu").slideUp(); 69 } 70 else { 71 li.addClass("ddl-active"); 72 li.children(".dropdown-menu").slideDown(); 73 } 74 }); 75 76 /* - Search */ 77 if($(".search-box").length){ 78 $("#search").on("click", function(){ 79 $(".search-box").addClass("active") 80 }); 81 $(".search-box span").on("click", function(){ 82 $(".search-box").removeClass("active") 83 }); 84 } 85 86 /* -- Back To Top */ 87 $('#back-to-top').on("click", function() { 88 /* When arrow is clicked */ 89 $('body,html').animate( 90 { 91 scrollTop : 0 /* Scroll to top of body */ 92 },800); 93 }); 94 95 }); /* -- Document Ready /- */ 96 97 $( window ).resize(function() { 98 var width = $(window).width(); 99 var height = $(window).height(); 100 }); 101 102 /* ## Window Load - Handler for .load() called */ 103 104 $(window).load(function() { 105 /* -- Site Loader */ 106 if ( !$("html").is(".ie6, .ie7, .ie8") ) { 107 $("#site-loader").delay(1000).fadeOut("slow"); 108 } 109 else { 110 $("#site-loader").css("display","none"); 111 } 112 /* - Portfolio Section */ 113 if($(".portfolio-fitrow").length){ 114 var $container = $(".portfolio-section .portfolio-fitrow"); 115 $container.isotope({ 116 layoutMode: 'fitRows', 117 itemSelector: ".portfolio-box", 118 gutter: 0, 119 transitionDuration: "0.5s" 120 }); 121 122 $("#filters a").on("click",function(){ 123 $('#filters a').removeClass("active"); 124 $(this).addClass("active"); 125 var selector = $(this).attr("data-filter"); 126 $container.isotope({ filter: selector }); 127 return false; 128 }); 129 } 130 }); 131 132 if( $('.sharing').length || ('.social').length) { 133 $('.social-postshare > li > a', this).on('click', function(e) { 134 e.preventDefault(); 135 e.stopPropagation(); 136 var data_action = $(this).attr('data-action'); 137 var data_title = $(this).attr('data-title'); 138 var data_url = $(this).attr('data-url'); 139 140 if( data_action == 'facebook' ) { 141 window.open('http://www.facebook.com/share.php?u='+encodeURIComponent(data_url)+'&title='+encodeURIComponent(data_title),'sharer','toolbar=0,status=0,width=580,height=325'); 142 } 143 else if( data_action == 'twitter' ) { 144 window.open('http://twitter.com/intent/tweet?status='+encodeURIComponent(data_url)+'+'+encodeURIComponent(data_title),'sharer','toolbar=0,status=0,width=580,height=325'); 145 } 146 else if( data_action == 'instagram' ) { 147 window.open('http://www.instagram.com/submit?url='+encodeURIComponent(data_url)+'&title='+encodeURIComponent(data_title),'sharer','toolbar=0,status=0,width=580,height=325'); 148 } 149 else if( data_action == 'google-plus' ) { 150 window.open('https://plus.google.com/share?url='+encodeURIComponent(data_url),'sharer','toolbar=0,status=0,width=580,height=325'); 151 } 152 }); 153 } 154 155})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.