vomebook commited on
Commit
8276f37
·
1 Parent(s): 1c7de5b

Fix Reader metadata and panel controls

Browse files
Files changed (1) hide show
  1. static/reader.html +1 -0
static/reader.html CHANGED
@@ -16,4 +16,5 @@
16
  <script>(function(){const p=document.querySelector("#bookmark-popover");if(p){p.className="bookmark-popover";p.setAttribute("role","dialog");p.setAttribute("aria-modal","true")}for(const panel of document.querySelectorAll(".reader-panel-view")){const header=panel.querySelector(".panel-view-header");if(header&&!header.querySelector(".panel-search-toggle")){const b=document.createElement("button");b.className="panel-search-toggle";header.appendChild(b)}if(panel.querySelector(".panel-list")&&!panel.querySelector(".panel-search")){const i=document.createElement("input");i.className="panel-search";i.hidden=true;panel.insertBefore(i,panel.querySelector(".panel-list"))}}})();</script>
17
  <script type="module" src="/static/reader.js?reader-v1"></script>
18
  <script>setTimeout(function(){const p=new URLSearchParams(location.search),u=p.get("url")||"",name=p.get("title")||decodeURIComponent((u.split("/").pop()||"").replace(/\.[^.]+$/,""))||"在线阅读",ext=(p.get("ext")||"").toUpperCase(),path=p.get("path")||"",title=document.querySelector("#title"),label=document.querySelector("#reader-path"),h=document.querySelector("#history-view .panel-view-header"),clear=document.querySelector("#history-clear"),search=document.querySelector("#history-view .panel-search-toggle");if(title)title.textContent=name;if(label){label.textContent=[ext,path].filter(Boolean).join(" · ")||ext;label.hidden=!label.textContent}if(h&&clear&&search){const a=document.createElement("span");a.append(clear,search);h.appendChild(a)}},0)</script>
 
19
  </body></html>
 
16
  <script>(function(){const p=document.querySelector("#bookmark-popover");if(p){p.className="bookmark-popover";p.setAttribute("role","dialog");p.setAttribute("aria-modal","true")}for(const panel of document.querySelectorAll(".reader-panel-view")){const header=panel.querySelector(".panel-view-header");if(header&&!header.querySelector(".panel-search-toggle")){const b=document.createElement("button");b.className="panel-search-toggle";header.appendChild(b)}if(panel.querySelector(".panel-list")&&!panel.querySelector(".panel-search")){const i=document.createElement("input");i.className="panel-search";i.hidden=true;panel.insertBefore(i,panel.querySelector(".panel-list"))}}})();</script>
17
  <script type="module" src="/static/reader.js?reader-v1"></script>
18
  <script>setTimeout(function(){const p=new URLSearchParams(location.search),u=p.get("url")||"",name=p.get("title")||decodeURIComponent((u.split("/").pop()||"").replace(/\.[^.]+$/,""))||"在线阅读",ext=(p.get("ext")||"").toUpperCase(),path=p.get("path")||"",title=document.querySelector("#title"),label=document.querySelector("#reader-path"),h=document.querySelector("#history-view .panel-view-header"),clear=document.querySelector("#history-clear"),search=document.querySelector("#history-view .panel-search-toggle");if(title)title.textContent=name;if(label){label.textContent=[ext,path].filter(Boolean).join(" · ")||ext;label.hidden=!label.textContent}if(h&&clear&&search){const a=document.createElement("span");a.append(clear,search);h.appendChild(a)}},0)</script>
19
+ <script>setTimeout(function(){const h=document.querySelector("#history-view .panel-view-header"),c=document.querySelector("#history-clear"),s=document.querySelector("#history-view .panel-search-toggle");if(h&&c&&s){const a=document.createElement("span");a.append(c,s);h.appendChild(a)}const p=new URLSearchParams(location.search),u=p.get("url")||"",t=document.querySelector("#title"),r=document.querySelector("#reader-path"),n=p.get("title")||decodeURIComponent((u.split("/").pop()||"").replace(/\.[^.]+$/,""))||"在线阅读",x=(p.get("ext")||"").toUpperCase(),q=p.get("path")||"";if(t)t.textContent=n;if(r){r.textContent=[x,q].filter(Boolean).join(" · ")||x;r.hidden=!r.textContent}},0)</script>
20
  </body></html>