1(function ($) { 2 3 4 5 $('.bxslider').bxSlider({ 6 mode: 'vertical', 7 slideMargin: 5 8 }); 9 10 $(window).scroll(function(){ 11 if ($(this).scrollTop() > 100) { 12 $('.scrollup').fadeIn(); 13 } else { 14 $('.scrollup').fadeOut(); 15 } 16 }); 17 $('.scrollup').click(function(){ 18 $("html, body").animate({ scrollTop: 0 }, 1000); 19 return false; 20 }); 21 22 23 // portfolio filter 24 $(window).load(function(){'use strict'; 25 var $portfolio_selectors = $('.portfolio-filter >li>a'); 26 var $portfolio = $('.portfolio-items'); 27 $portfolio.isotope({ 28 itemSelector : '.portfolio-item', 29 layoutMode : 'fitRows' 30 }); 31 32 $portfolio_selectors.on('click', function(){ 33 $portfolio_selectors.removeClass('active'); 34 $(this).addClass('active'); 35 var selector = $(this).attr('data-filter'); 36 $portfolio.isotope({ filter: selector }); 37 return false; 38 }); 39 }); 40 41 42 //Pretty Photo 43 $("a[rel^='prettyPhoto']").prettyPhoto({ 44 social_tools: false 45 }); 46 47 //Google Map 48 var get_latitude = $('#google-map').data('latitude'); 49 var get_longitude = $('#google-map').data('longitude'); 50 51 function initialize_google_map() { 52 var myLatlng = new google.maps.LatLng(get_latitude, get_longitude); 53 var mapOptions = { 54 zoom: 14, 55 scrollwheel: false, 56 center: myLatlng 57 }; 58 var map = new google.maps.Map(document.getElementById('google-map'), mapOptions); 59 var marker = new google.maps.Marker({ 60 position: myLatlng, 61 map: map 62 }); 63 } 64 google.maps.event.addDomListener(window, 'load', initialize_google_map); 65 66 67})(jQuery); 68 69 70
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.