1$(function(){ 2 3 // // Cover photos 4 $('.cover-photo').each(function(){ 5 $(this).css("background-image", "url("+$(this).data('src')+")"); 6 }); 7 8 // // Polls 9 $('.poll-form .vote button').click(function(){ 10 form = $(this).closest('.poll-form'); 11 if( form.serialize() != '' ){ 12 form.submit(); 13 } 14 }); 15 16 // Nav 17 $('.navigation .parent').mouseenter(function(){ 18 $(this).find('.children').show(); 19 }).mouseleave(function(){ 20 $(this).find('.children').hide(); 21 }); 22 23 // Gallery widget 24 $('.box-content-gallery .carousel').on('slide.bs.carousel', function(e){ 25 var target = $(e.relatedTarget); 26 var container = target.closest('.box-content-gallery'); 27 container.find('.thumbnails li').removeClass('active'); 28 container.find('.thumbnails li[data-slide-to='+target.data('item')+']').addClass('active'); 29 }); 30 $('.box-content-gallery .thumbnails li').click(function(){ 31 var container = $(this).closest('.box-content-gallery'); 32 container.find('.carousel').carousel('pause'); 33 }); 34 $('.box-content-gallery .carousel .canvas').mouseenter(function(){ 35 $(this).find('.carousel-caption').fadeIn('fast'); 36 }); 37 $('.box-content-gallery .carousel .canvas').mouseleave(function(){ 38 $(this).find('.carousel-caption').fadeOut('fast'); 39 }); 40 41 // Auto height 42 window.setTimeout(function(){ 43 $('.autoheight-group').each(function(){ 44 $(this).find('.autoheight').height( parseInt($(this).height()) - 40 ); 45 }) 46 }, 47 2000 48 ); 49 50 // Polyfill bootstrap / safari issue 51 $('.subscribe-button').click(function(){ 52 $('.topleft-dropdown').toggle(); 53 }); 54 55}); 56 57 58 59 60
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.