1/* 2 * @package 3 * @subpackage template name HTML 4 * 5 * Template Scripts 6 * Created by themeturn 7 1. navigation scroll 8 2. Sticky nav 9 3. POrtfolio Isotope 10 4. Counter 11 5. Pretty photo 12 8. Isotope 13 9. Animation (wow) 14 10. Back to top 15 16 */ 17 18jQuery(function($) { 19 "use strict"; 20 21 $.noConflict(); 22 $('.navbar-nav a').on('click', function() { 23 if ($('.navbar-toggle').css('display') != 'none') { 24 $(".navbar-toggle").trigger("click"); 25 } 26 }); 27 28 /* === jQuery for page scrolling feature - requires jQuery Easing plugin === */ 29 ( function() { 30 $('a.scroll').on('click', function(event) { 31 var $anchor = $(this); 32 $('html, body').stop().animate({ 33 scrollTop : $($anchor.attr('href')).offset().top 34 }, 1500, 'easeInOutExpo'); 35 event.preventDefault(); 36 }); 37 }()); 38 39 /* ----------------------------------------------------------- */ 40 /* Main Navigation sticky 41 /* ----------------------------------------------------------- */ 42 $(".main-nav").sticky(); 43 44 /* ----------------------------------------------------------- */ 45 /* Main slideshow 46 /* ----------------------------------------------------------- */ 47 48 $('#slider_part').carousel({ 49 pause : true, 50 interval : 100000, 51 }); 52 53 /* ----------------------------------------------------------- */ 54 /*ISotope Portfolio 55 /* ----------------------------------------------------------- */ 56 $(window).load(function() { 57 var $portfolio_selectors = $('.portfolio-filter >li>a'); 58 var $portfolio = $('.portfolio-items'); 59 $portfolio.isotope({ 60 itemSelector : '.grid', 61 layoutMode : 'fitRows' 62 }); 63 64 $portfolio_selectors.on('click', function() { 65 $portfolio_selectors.removeClass('active'); 66 $(this).addClass('active'); 67 var selector = $(this).attr('data-filter'); 68 $portfolio.isotope({ 69 filter : selector 70 }); 71 return false; 72 }); 73 }); 74 75 // jQuery(document).ready(function( $ ) { 76 $('.count').counterUp({ 77 delay : 100, 78 time : 2000 79 }); 80 // }); 81 82 // prettyphoto 83 84 $("a[data-rel^='prettyPhoto']").prettyPhoto(); 85 86 // modal ======================== 87 $('#projectModal').on('shown.bs.modal', function() { 88 $('#myInput').focus() 89 }) 90 /* ----------------------------------------------------------- */ 91 /* Animation 92 /* ----------------------------------------------------------- */ 93 //Wow 94 new WOW().init(); 95 96 /* ============================================== 97 Back To Top Button 98 =============================================== */ 99 100 $(window).scroll(function() { 101 if ($(this).scrollTop() > 50) { 102 $('#back-top').fadeIn(); 103 } else { 104 $('#back-top').fadeOut(); 105 } 106 }); 107 // scroll body to 0px on click 108 $('#back-top').click(function() { 109 $('#back-top a').tooltip('hide'); 110 $('body,html').animate({ 111 scrollTop : 0 112 }, 800); 113 return false; 114 }); 115 116 $('#back-top').tooltip('hide'); 117 118});
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.