1$(function(){ 2 // ç¨ä¾é²æ¢ fb like å¤ªæ© loading é²ä¾ï¼å½±é¿ç颿µæ¢åº¦ 3 $.fb = { 4 count: { 5 onscroll: function($o) { 6 var _top = $(window).scrollTop(); 7 if ( _top > $o.offset().top - $(window).height() - 100 ) { 8 $.fb.count.show($o); 9 } 10 }, 11 show: function($o) { 12 var _url = $o.attr('data-url'); 13 if ( typeof _url != 'undefined' ) { 14 $o.attr('href', _url) 15 .removeAttr('data-url') 16 .removeClass('fbcc'); 17 } 18 } 19 }, 20 like: { 21 onscroll: function($o) { 22 var _top = $(window).scrollTop(); 23 if ( _top > $o.offset().top - $(window).height() - 100 ) { 24 $.fb.like.show($o); 25 } 26 }, 27 show: function($o) { 28 var _url = $o.attr('data-url'); 29 if ( typeof _url != 'undefined' ) { 30 $o.attr('src', _url) 31 .removeAttr('data-url'); 32 } 33 } 34 } 35 }; 36 37 // (function(){ 38 39 // var $oContainer = $('.body-content>.content>.news-list').first(); 40 // if ( $oContainer.length > 0 ) { 41 // $.each($oContainer.children(), function(index,element){ 42 // if ( index == 2 || index == 5 || index == 7 ) { 43 // var $li = $('<li />').addClass('ad-google-block-970 text-center') 44 // .insertBefore($(element)); 45 46 // var $d = $('<div />').addClass('ad-970x250-g') 47 // .appendTo( $li ); 48 49 // $('<div />').attr('id', 'div-gpt-ad-1564451387237-' + index) 50 // .attr('data-width', '970') 51 // .attr('data-height', '250') 52 // .attr('data-slot', '/1014181/TW-NEWS-LIST-SCROLL-970x250') 53 // .attr('data-collapse', true) 54 // .appendTo($d); 55 56 // $('<div />').addClass('clearfix') 57 // .appendTo($d); 58 // } 59 // }); 60 // $.Ads.DFP.showAds(); 61 // } 62 // })(); 63 64 $('li.news > iframe.fblike[data-url]').each(function(index, element) { 65 $.fb.like.onscroll($(this)); 66 }); 67 68});
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.