1/** 2 * Created by Administrator on 2015/1/30. 3 */ 4(function($){ 5 $('#slideshow').slideshow({ 6 width: $('#slideshow').width(), 7 height: $('#slideshow').innerHeight(), 8 animate: 500, 9 trigger: 'mouseover', 10 titleheight: '46px', 11 showtitle: true 12 }); 13 /*åå°é¡¶é¨*/ 14 /*$(window).scroll(function () { 15 var oBlack = document.getElementById("gttop"); 16 var stval = document.documentElement.scrollTop || document.body.scrollTop; 17 if (stval > 0){ 18 oBlack.style.display = "block"; 19 } 20 else { 21 oBlack.style.display = "none"; 22 } 23 document.getElementById("gttop").onclick = function () { 24 stval = 0; 25 document.documentElement.scrollTop = 0; 26 document.body.scrollTop = 0; 27 } 28 });*/ 29 /*å è½½æ´å¤*/ 30 var flag = true,tempStr = '',page = 1; 31 function getStr(item) { 32 if(item.thumb){ 33 tempStr = '<li> <a href="/a/' + item.aid + '" target="_blank"> ' + 34 '<img src="' + item.thumb + '?imageView2/1/w/240/h/160" alt="' + item.title + '" /></a> ' + 35 '<div class="word"><a href="/a/' + item.aid + '" target="_blank">' + 36 '<p class="title">' + item.title + '</p><p class="des">' + item.desc + '</p></a>' + 37 '<p class="down">'+item.source_name+' '+item.date+'</p></div></li>'; 38 }else{ 39 tempStr = '<li><div class="word"><a href="/a/' + item.aid + '" target="_blank">' + 40 '<p class="title">' + item.title + '</p><p class="des">' + item.desc + '</p></a>' + 41 '<p class="down">'+item.source_name+' '+item.date+'</p></div></li>'; 42 } 43 44 return tempStr; 45 } 46 $('.more_list').on('click', function() { 47 if (!flag) { 48 return; 49 } 50 flag = false; 51 tempStr = ''; 52 ++page; 53 $('.content-list').append('<img src="./template/default/assets2018/loading.gif" alt="loading" class="loading" />'); 54 $.getJSON("/portal.php?mod=ajaxnew", { page: page}, function(res) { 55 res.list.forEach(function(item) { 56 tempStr += getStr(item); 57 }); 58 $('.loading').remove(); 59 $('.content-list').append(tempStr); 60 61 if (res.pages > 1) { 62 flag = true; 63 } else { 64 flag = false; 65 } 66 }); 67 }); 68 69})(jQuery); 70 71
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.