1///////////////////////////////////////////////////////////////////// 2 3/*ã[Jquery]å®è¡ 4--------------------------------------------------------------------*/ 5 6jQuery(document).ready(function($){ 7 8 $('.mo_pr > .in_p > .in_num').each(function(){ 9 var t = $(this); 10 var text = t.text(); 11 var text1 = text.slice( 0, 1 ); 12 if(text1 == '#' || text1 == '*' || text1 == 'â' || text1 == 'ï¼'){ 13 var text2 = text.replace(text1,''); 14 t.html('<small>'+text1+'</small>'+text2); 15 } 16 }); 17 18 $('.mo_timetable').each(function(){ 19 var t = $(this).find('table'); 20 var t2_th = t.find('thead').find('tr'); 21 var t2_tb = t.find('tbody').find('tr'); 22 var t2_th_txt = '<th></th>'; 23 var t2_tb_txt = ''; 24 t2_tb.each(function(){ 25 t2_th_txt += '<th>'+$(this).children(':first-child').html()+'</th>'; 26 $(this).children(':first-child ~ *').each(function(i){ 27 t2_tb_txt += '<tr><th>'+t2_th.eq(0).children().eq(i + 1).text()+'</th><td>'+$(this).html()+'</td>'+'</tr>'; 28 }); 29 }); 30 var txt='<thead class="j__cloan2"><tr>'+t2_th_txt+'</tr></thead>'; 31 32 txt += '<tbody class="j__cloan2">'+t2_tb_txt+'</tbody>'; 33 t.append(txt); 34// var si = t.find('thead > tr').eq(0).children().size(); 35// if(si > 6){ 36// t.append('<thead class="j__cloan">'+t.find('thead').html()+'</thead>').append('<tbody class="j__cloan">'+t.find('tbody').html()+'</tbody>'); 37// t.find('tr').children().each(function(){ 38// if($(this).index() >= 5){ 39// $(this).addClass('j__none'); 40// } 41// }); 42// t.find('.j__cloan').find('tr').each(function(){ 43// $(this).children().each(function(){ 44// if($(this).index() < 5 && $(this).index() > 0){ 45// $(this).addClass('j__none'); 46// }else{ 47// $(this).removeClass('j__none'); 48// } 49// if($(this).index() == 7){ 50// $(this).filter(':last-child').attr('colspan',2); 51// } 52// }); 53// }); 54// } 55 }); 56 57 58 $('.wp-block-button__link').addClass('j').wrapInner('<span class="__in"></span>'); 59 60 var windowHeight = $(window).height(); 61 $(window).scroll(function (){ 62 $('.ani_scl').each(function(){ 63 var position = $(this).offset().top; 64 var scroll = $(window).scrollTop(); 65 if (scroll > position - windowHeight){ 66 $(this).addClass('active'); 67 var child = '.ani_scl__c'; 68 if($(this).filter('.ani_img.wp-block-media-text')) child += ',.wp-block-media-text__media'; 69 if($(this).filter('.ani_img.wp-block-gallery')) child += ',.blocks-gallery-item>figure'; 70 if($(this).hasClass('ani_mark')) child += ',mark'; 71 $(this).find(child).each(function(i){ 72 $(this).delay(i*300).queue(function(){ 73 $(this).addClass('active').dequeue(); 74 }); 75 }); 76 } 77 }); 78 }); 79 $('.ani_scl').each(function(){ 80 var position = $(this).offset().top; 81 var scroll = $(window).scrollTop(); 82 if (scroll > position - windowHeight){ 83 $(this).addClass('active'); 84 var child = '.ani_scl__c'; 85 if($(this).filter('.ani_img.wp-block-media-text')) child += ',.wp-block-media-text__media'; 86 if($(this).filter('.ani_img.wp-block-gallery')) child += ',.blocks-gallery-item>figure'; 87 if($(this).hasClass('ani_mark')) child += ',mark'; 88 $(this).find(child).each(function(i){ 89 $(this).delay(i*300).queue(function(){ 90 $(this).addClass('active').dequeue(); 91 }); 92 }); 93 } 94 }); 95 96 97 $(window).scroll(function (){ 98 $('#contact').each(function(){ 99 var position = $(this).offset().top; 100 var scroll = $(window).scrollTop(); 101 if (scroll > position - 120){ 102 $(location).attr('hash',$(this).attr('id')); 103 } 104 }); 105 }); 106 107}); 108 109 110//ã¹ã©ã¤ãã¼è¨å® 111 112//function Slide_1(){return $('.gallery-size-visual,.is-style-slider > ul,.j_slider>.in');//é«ãå¯å¤ãã¹ã©ã¤ãã¼ 113//} 114//function Slide_2(){return $('.gallery-columns-2.gallery-size-visual,.is-style-slider_bg > ul,.j_slider_h>.in');//é«ãåºå®ãã¹ã©ã¤ãã¼ 115//} 116 117//function Slide_1__spead1(){return 6000;//é«ãå¯å¤ãautoplaySpeed 118//} 119//function Slide_1__spead2(){return 600;//é«ãå¯å¤ãspeed 120//} 121//function Slide_2__spead1(){return 3000;//é«ãåºå®ãautoplaySpeed 122//} 123//function Slide_2__spead2(){return 1000;//é«ãåºå®ãspeed 124//}
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.