1// Copyrights 2021 By E11ip$ (Ellipse-Arts) 2 3jQuery(document).ready(function(){ 4 5 jQuery('#mobile_menu').click(function(){ 6 7 jQuery('#page').toggleClass('mobile_menu'); 8 9 }); 10 11 jQuery('#content').add('#big_banner').click(function(){ 12 13 if (jQuery(this).parent().hasClass('mobile_menu')) { 14 jQuery('#page').toggleClass('mobile_menu'); 15 } 16 17 }); 18 19 autoHeightImage(); 20 21 jQuery(window).resize(function(){ 22 autoHeightImage(); 23 }); 24 25 jQuery(document).scroll(function(){ 26 if (jQuery(document).scrollTop()>0) { 27 jQuery('#topline').addClass('fixed'); 28 } else { 29 jQuery('#topline').removeClass('fixed'); 30 } 31 if (jQuery('#big_banner').add('.wp-block-columns').length>=2) {findActiveBullet(0);} 32 }) 33 34 if (jQuery('#big_banner').add('.wp-block-columns').length<2) {return false;} 35 36 findActiveBullet(1); 37 38 jQuery('#anchors a').click(function(){ 39 40 var t = jQuery(this).attr('data-top') - jQuery('#topline').height(); 41 if (jQuery('#wpadminbar')[0]) { 42 t -= jQuery('#wpadminbar').height(); 43 } 44 jQuery("html, body").animate({ scrollTop: t }); 45 46 }); 47 48}); 49 50function autoHeightImage() { 51 if (jQuery('#page').width()>699) { 52 jQuery('.blocks-gallery-grid').css('height','auto'); 53 return false; 54 } 55 jQuery('.blocks-gallery-grid').each(function(){ 56 var h = jQuery(this).find('.blocks-gallery-item:first').height() 57 if (h<1) { 58 //var h = jQuery(this).find('.blocks-gallery-item:first img').attr('height'); 59 } else { 60 jQuery(this).css('height',h+'px'); 61 } 62 63 64 }); 65} 66 67function findActiveBullet(mode) { 68 if (mode && !document.getElementById('anchors')) { 69 jQuery('body').prepend('<div id="anchors"></div>'); 70 } 71 var obj = jQuery('#anchors'); 72 var t = jQuery(document).scrollTop(); 73 jQuery('#big_banner').add('.wp-block-columns').each(function(i){ 74 var top = jQuery(this).offset().top;
75 var h = jQuery(window).height(); 76 if (mode) { 77 obj.append('<a data-id="'+i+'" data-top="'+top+'"></a>'); 78 } 79 if (t>top-(h/2)) { 80 obj.find('a').removeClass('active'); 81 obj.find('a:eq('+i+')').addClass('active'); 82 } 83 }); 84 if (obj.find('a.active').length==0) { 85 obj.find('a:first').addClass('active'); 86 } 87}
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.