1 2var NewsMain = { 3 4 Search: function () { 5 6 var searchText = $("#totalSearchFormSise #searchTerm").val(); 7 8 if (searchText.trim().length == 0) { 9 10 alert("ê²ìì´ë¥¼ ì ë ¥íì¸ì."); 11 } 12 else { 13 $("#totalSearchFormSise").submit(); 14 } 15 }, 16 17 ManySeeNews: function () { 18 $.ajax({ 19 type: 'GET', 20 //url: "/NewsCenter/Main/ManySeeNews", 21 url: "/html/ManySeeNews.html", 22 data: {}, 23 success: function (data, textStatus) { 24 $("#divManySeeNews").html(data); 25 } 26 }); 27 28 return false; 29 }, 30 31 Opinion: function () { 32 $.ajax({ 33 type: 'GET', 34 //url: "/NewsCenter/Main/Opinion", 35 url: "/html/Opinion.html", 36 data: {}, 37 success: function (data) { 38 $("#UlOpinion").html(data); 39 } 40 }); 41 }, 42 43 WeekReporter: function () { 44 $.ajax({ 45 type: 'GET', 46 //url: "/NewsCenter/Main/WeekReporter", 47 url: "/html/WeekReporter.html", 48 data: {}, 49 success: function (data) { 50 $("#UlWeekReporter").html(data); 51 } 52 }); 53 }, 54 CardNews: function () { 55 $.ajax({ 56 type: 'GET', 57 //url: "/NewsCenter/Main/CardNews", 58 url: "/html/CardNews.html", 59 data: {}, 60 success: function (data) { 61 $("#divCardNews").html(data); 62 } 63 }); 64 }, 65 SectionNews: function () { 66 $.ajax({ 67 type: 'GET', 68 //url: "/NewsCenter/Main/SectionNews", 69 url: "/html/SectionNews.html", 70 data: {}, 71 success: function (data) { 72 $("#UlSectionNews").html(data); 73 } 74 }); 75 }, 76 HotNews: function () { 77 $.ajax({ 78 type: 'GET', 79 //url: "/NewsCenter/Main/HotNews", 80 url: "/html/HotNews.html", 81 data: {}, 82 success: function (data) { 83 $("#h2HotNews").after(data); 84 } 85 }); 86 }, 87 PhotoNews: function () { 88 //console.log('PhotoNews1'); 89 $.ajax({ 90 async: false, 91 type: 'GET', 92 //url: "/NewsCenter/Main/PhotoNews", 93 url: "/html/PhotoNews.html", 94 data: {}, 95 success: function (data) { 96 if (data.trim().length == 0) { 97 $(".box-img-slider").hide(); 98 } else { 99 $("#divPhotoNews").html(data); 100 //bottom_slider(); 101 if ($("#divPhotoNews").find("li").length > 0) { 102 PhotoNewsSlider('photoNewsSlider'); 103 } 104 } 105 } 106 }); 107 } 108} 109 110$(document).ready(function () { 111 112 //ìë¨ ë©ë´ëª ì¨ê¹ 113 $(".contain-aside").hide(); 114 115 //ë§ì´ë³¸ ë´ì¤ 116 NewsMain.ManySeeNews(); 117 118 //ì¤í¼ëì¸ 119 NewsMain.Opinion(); 120 121 //ê¸ì£¼ì 기ì 122 NewsMain.WeekReporter(); 123 124 //ì¹´ë ë´ì¤
125 NewsMain.CardNews(); 126 127 //ì¹ì ë´ì¤ 128 NewsMain.SectionNews(); 129 130 //í«í ë´ì¤ 131 NewsMain.HotNews(); 132 133 //ì´ì ê°¤ë¬ë¦¬ 134 NewsMain.PhotoNews(); 135 136 $('.btnGoNewsPhotoView').click(function () { 137 if ($(this).hasClass('onPhoto')) { 138 NewsCommon.GoNewsDetailView('photo', '', '', $(this).attr('id')); 139 } else { 140 $('.btnGoNewsPhotoView').removeClass('onPhoto'); 141 $(this).addClass('onPhoto'); 142 } 143 }); 144 145}); 146 147
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.