1(function ($) { 2 "use strict"; 3 4 5 /* STICKY NAVIGATION */ 6 $(window).scroll(function() { 7 if ($(this).scrollTop() > 0) { 8 $('.header').addClass("sticky"); 9 } else { 10 $('.header').removeClass("sticky"); 11 } 12 }); 13 14 /* Go up */ 15 jQuery(window).scroll(function() { 16 if (jQuery(this).scrollTop() > 800) { 17 jQuery(".go-up").css("bottom", "10px"); 18 } else { 19 jQuery(".go-up").css("bottom", "-60px"); 20 } 21 }); 22 jQuery(".go-up").click(function() { 23 jQuery("html,body").animate({ 24 scrollTop: 0 25 }, 500); 26 return false; 27 }); 28 29 $(document).ready(function() { 30 // Gets the video src from the data-src on each button 31 var $videoSrc; 32 $('.video-btn').click(function() { 33 $videoSrc = $(this).data( "src" ); 34 }); 35 // when the modal is opened autoplay it 36 $('#myModal').on('shown.bs.modal', function (e) { 37 38 // set the video src to autoplay and not to show related video. Youtube related video is like a box of chocolates... you never know what you're gonna get 39 $("#video").attr('src',$videoSrc + "?autoplay=1&modestbranding=1&showinfo=0" ); 40 }) 41 // stop playing the youtube video when I close the modal 42 $('#myModal').on('hide.bs.modal', function (e) { 43 // a poor man's stop video 44 $("#video").attr('src',$videoSrc); 45 }) 46 // document ready 47 }); 48 49})(jQuery); 50 51(function ($) { 52 // Expand/Contract Menus 53 var speed = 400; 54 var menuLinks = $('.header [data-menu]'); 55 var menuSelectors = $.map(menuLinks, function (elm) { 56 return $(elm).data('menu'); 57 }).join(); 58 var menus = $(menuSelectors); 59 60 menuLinks.on('click', function () { 61 var menuLink = $(this); 62 var menu = $(menuLink.data('menu')); 63 64 if (menu.is(':visible')) { 65 menu.slideUp(speed, function () { 66 menuLink.removeClass('selected'); 67 }); 68 } else { 69 var visibleMenus = menus.has(':visible'); 70 if (visibleMenus.length > 0) { 71 menuLink.addClass('selected'); 72 visibleMenus.slideUp(speed, function () { 73 menuLinks.not(menuLink).removeClass('selected'); 74 menu.slideDown(speed); 75 }); 76 } else { 77 menuLink.addClass('selected'); 78 menu.slideDown(speed); 79 } 80 } 81 return false; 82 }); 83 84 85 86 87 // Project Counter 88 $.fn.jQuerySimpleCounter = function( options ) { 89 var settings = $.extend({ 90 start: 0, 91 end: 100, 92 easing: 'swing', 93 duration: 400, 94 complete: '' 95 }, options ); 96 97 var thisElement = $(this); 98 99 $({count: settings.start}).animate({count: settings.end}, { 100 duration: settings.duration, 101 easing: settings.easing, 102 step: function() { 103 var mathCount = Math.ceil(this.count); 104 thisElement.text(mathCount); 105 }, 106 complete: settings.complete 107 }); 108 }; 109 $('#number1').jQuerySimpleCounter({end: 245,duration: 4000}); 110 $('#number2').jQuerySimpleCounter({end: 312,duration: 4000}); 111 $('#number3').jQuerySimpleCounter({end: 1790,duration: 4000}); 112 $('#number4').jQuerySimpleCounter({end: 1090,duration: 4000}); 113 /* AUTHOR LINK */ 114 $('.about-me-img').hover(function(){ 115 $('.authorWindowWrapper').stop().fadeIn('fast').find('p').addClass('trans'); 116 }, function(){ 117 $('.authorWindowWrapper').stop().fadeOut('fast').find('p').removeClass('trans'); 118 }); 119 // Project Counter 120 121 122 /* WOW Animation */ 123 wow = new WOW({ 124 mobile:false, 125 }) 126 wow.init(); 127 128 $('.section-scroll').bind('click', function(e) { 129 var anchor = $(this); 130 if($(window).outerWidth() < 992){ 131 $('html, body').stop().animate({ 132 scrollTop: $(anchor.attr('href')).offset().top 133 }, 1000); 134 } 135 else{ 136 $('html, body').stop().animate({ 137 scrollTop: $(anchor.attr('href')).offset().top -100 138 }, 1000); 139 } 140 e.preventDefault(); 141 }); 142 143 })(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.