$(document).ready(function(){window._openBookMark=function(n){var t=$(n).data("url"),i=$(n).data("index");scrollTop=$(n).data("scrolltop"),t="mz://reader/?url="+escape(t)+"#index="+i+(scrollTop?"&scrollTop="+scrollTop:""),$e.tabopen(t)},$("#tab_box").mzTab({beforeTabClick:function(n){var i;switch(n){case"mark_index":$("#mark_index").html("");var t=window.bookMark.queryList();t=_.chain(t).sortBy(function(n){return 0-n.dbtime}).map(function(n){return n}).value(),i=window.mzTpl("tpl_mark_list"),$("#mark_index").append(i({marks:t,loadedHtml:$("#tpl_mark_loaded").html()}));$("a[data-delkey]").on("click",function(){var n=$(this).data("delkey");window.bookMark.remove(n)&&$(this).parent().parent().remove()})}}})})