1if(typeof __gaTracker != 'undefined') { 2 __gaTracker(function () { 3 window.ga = __gaTracker; 4 }); 5 6 (function ($) { 7 $(document).on('click', '[data-track]', function (e) { 8 var t = $(this), 9 category = t.data('track-category'), 10 action = t.data('track-action'), 11 label = t.data('track-label'); 12 13 ga('send', { 14 hitType: 'event', 15 eventCategory: category, 16 eventAction: action, 17 eventLabel: label 18 }); 19 }) 20 })(jQuery); 21} 22 23(function($){ 24 $(document).on('click', '[href="#challenge_uploader"]', function(){ 25 window.location.hash = '#challenge_uploader'; 26 }).on('click', '[href="#uploader"]', function(){ 27 window.location.hash = '#uploader'; 28 }).on('click', '[href="#register"]', function(){ 29 window.location.hash = '#register'; 30 }).on('click', '[href="#login"]', function(){ 31 window.location.hash = '#login'; 32 }) 33})(jQuery) 34 35jQuery(document).ready(function($){ 36 //$("#top #header_meta").sticky({topSpacing:0}); 37 var $top_height = jQuery('#header_meta').height(); 38var $main_menu = jQuery('#header_main').height(); 39 jQuery(".container_wrap.container_wrap_logo").sticky({topSpacing:$top_height }); 40 jQuery(".av-submenu-container").sticky({topSpacing:$top_height+ $main_menu}); 41 42 43 44 45 // $('.container_wrap.container_wrap_logo').on('sticky-end', function() { $('#header_meta-sticky-wrapper').addClass('sticky_off'); }); 46 // $('.container_wrap.container_wrap_logo').on('sticky-start', function() { $('#header_meta-sticky-wrapper').removeClass('sticky_off'); }); 47 48 jQuery('.cover_bg').removeClass('loading'); 49 50 if (jQuery(window).width() > 767){ 51 jQuery("#top #main .sidebar").height( jQuery(".container .av-content-small.units").height() ); 52 } 53 else 54 { 55 jQuery("#top #main .sidebar").height(''); 56 } 57 58 59jQuery(window).resize(function(){ 60 if (jQuery(window).width() > 767){ 61 jQuery("#top #main .sidebar").height( jQuery(".container .av-content-small.units").height() ); 62 }else 63 { 64 jQuery("#top #main .sidebar").height(''); 65 } 66get_title_height(); 67 68}); 69 get_title_height(); 70 }); 71 72 73 function get_title_height() { 74 75 var $bigbox = jQuery(' .big_box .hero_title.avia-caption-content').outerHeight(); 76 77 var $bigbox_offset = $bigbox + 10; 78 jQuery(' .big_box .cat_link').css('bottom', $bigbox_offset); 79 80 var $middle = jQuery(' .center_box .hero_title.avia-caption-content').outerHeight(); 81 var $middle_offset = $middle + 10; 82 jQuery(' .center_box .cat_link').css('bottom', $middle_offset); 83 84 var $bigbox = jQuery(' .half_box.side_box .hero_title.avia-caption-content').outerHeight(); 85 var $bigbox_offset = $bigbox + 10; 86 jQuery(' .half_box.side_box .cat_link').css('bottom', $bigbox_offset); 87 var $bigbox = jQuery(' .full_box_bottom .hero_title.avia-caption-content').outerHeight(); 88 var $bigbox_offset = $bigbox + 10; 89 jQuery(' .full_box_bottom .cat_link').css('bottom', $bigbox_offset); 90 91 jQuery( ".avia-slideshow-inner li" ).each(function( index ) { 92 var $slide_height = jQuery(this).find('.hero_title.avia-caption-content').outerHeight(); 93 var $slide_height_offset = $slide_height + 10; 94 jQuery(this).find('.cat_link').css('bottom', $slide_height_offset); 95 96 var $single_posts_home = jQuery(' .single_posts_home .single_posts_home_wrap').outerHeight(); 97 var $single_posts_home_offset = $single_posts_home ; 98 jQuery(' .single_posts_home .cat_link').css('bottom', $single_posts_home_offset); 99 100}); 101 102// 103// jQuery('.av-subnav-menu a').click(function() { 104// if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 105// var target = jQuery(this.hash); 106// target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']'); 107// if (target.length) { 108// jQuery('html,body').animate({ 109// scrollTop: target.offset().top-140 110// }, 1000); 111// return false; 112// } 113// } 114// }); 115// 116// jQuery('a.avia-slideshow-button.avia-button').click(function() { 117// 118// if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 119// var target = jQuery(this.hash); 120// target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']'); 121// if (target.length) { 122// jQuery('html,body').animate({ 123// scrollTop: target.offset().top-115 124// }, 1000); 125// return false;
126// } 127// } 128// }); 129 130 131 132 133 } 134 135 136 137
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.