1var project = function () { 2 return { 3 InitData: function () { 4 //å ³é®å 5 var keyword = $("#in_form").find(".keyword").val(); 6 if (keyword === "") 7 return; 8 website.load("divSearch_Main", 9 "/WebSiteManage/Search/Index", 10 { 11 Keyword: keyword, 12 PageSize: 10 13 } 14 ); 15 }, 16 LoadMoreWaterfall: function () { 17 var pageIndex = $('#PageIndex').val(); 18 pageIndex = parseInt(pageIndex) + 1; 19 website.load("divSearch_Main", "/WebsiteManage/Search/SearchResults", 20 { 21 PageSize: pageIndex * 20, 22 keyWord: $("#key").val(), 23 option: $("#option").val() 24 }); 25 $("#PageIndex").val(pageIndex); 26 }, 27 LoadSearchList: function () { 28 //å ³é®å 29 var keyword = $("#in_form").find(".keyword").val(); 30 var option = $('input:radio[name=optionsRadios]:checked').val(); 31 window.location.href = "/WebSiteManage/Search/Index?key=" + keyword + "&op=" + option; 32 }, 33 reLoadUrl: function (url, link) { 34 website.load("main-container", "/WebsiteManage/Home/ReloadUrl", { url: link }); 35 } 36 } 37}(); 38$(function () { 39 project.InitData(); 40}); 41 42$(function () { 43 $(".select").each(function () { 44 var s = $(this); 45 var z = parseInt(s.css("z-index")); 46 var dt = $(this).children("dt"); 47 var dd = $(this).children("dd"); 48 var _show = function () { 49 dd.slideDown(200); 50 dt.addClass("cur"); 51 s.css("z-index", z + 1); 52 }; //å±å¼ææ 53 var _hide = function () { 54 dd.slideUp(200); 55 dt.removeClass("cur"); 56 s.css("z-index", z); 57 }; //å ³éææ 58 dt.click(function () { dd.is(":hidden") ? _show() : _hide(); }); 59 dd.find("a").click(function () { 60 dt.html($(this).html()); 61 _hide(); 62 }); //éæ©ææï¼å¦éè¦ä¼ å¼ï¼å¯èªå®ä¹åæ°ï¼å¨æ¤å¤è¿å对åºçâvalueâå¼ ï¼ 63 $("body").click(function (i) { !$(i.target).parents(".select").first().is(s) ? _hide() : ""; }); 64 }); 65}) 66 67$(window).resize(function () { 68 var winw = $(window).width(); 69 if (winw > 767) { 70 $('.mobile-nav').css('display', 'none'); 71 } 72});
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.