").text(e).html()}function htmlDecode(e){return $("
").html(e).text()}function more(e){let n=-1;$.each($(".GridView.hidden"),function(e,t){if(!((n=e)<10))return!1;e=$(t).find("img").get(0);e.src=e.getAttribute("data-src"),$(t).removeClass("hidden")}),-1===n&&(e&&$("#di").text("未找到相关内容"),$("#di").removeClass("hidden"))}jQuery.fn.extend({highlight:function(i,s){var h=this.text();if(void 0!==i)return(s=jQuery.extend({insensitive:1,hls_class:"c-red",clear_last:!0},s)).clear_last&&$(this).find("strong."+s.hls_class).each(function(){$(this).after($(this).text()),$(this).remove()}),this.each(function(){if("string"==typeof i){for(var e="";0'+htmlEncode(h.substr(h.toLowerCase().indexOf(i),i.length))+"",h.substr(h.toLowerCase().indexOf(i)+i.length)):(e+=htmlEncode(h),"");$(this).highregx(e)}else if(i.constructor===Array){for(e="";0'+htmlEncode(h.substr(h.toLowerCase().indexOf(o.toLowerCase()),o.length))+"",h.substr(h.toLowerCase().indexOf(o.toLowerCase())+o.length)):(e+=htmlEncode(h),"")}$(this).highregx(e)}})},highregx:function(e){this.html(e)},unicode:function(e){var t=e.length,n="";e=e.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1");for(var o=0;o$(document).height()&&more(!1)}),more(!0),$.each($(".title"),function(e,n){$.each($("#templatebook li"),function(e,t){$(n).highlight($(t).text(),{})})}),$.each($(".desc"),function(e,n){$.each($("#templatebook li"),function(e,t){$(n).highlight($(t).text(),{})})})