Tinha esquecido do leitor-web.min.js
Coloquei if no divPageNavigation
This commit is contained in:
1 parent
7cd504974a
commit
089acfccee
1 file changed
+1
-1
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
var observer,elementosNaPagina=[];let ref_cap_busca={};window.onload=e=>{let t=new Audio("https://js.livro.online/moan-quarto/Interruptor.mp3"),n=metadados.livroUrl,a=["#fff","antiquewhite","url('https://js.livro.online/moan-quarto/olga-thelavart-HZm2XR0whdw-unsplash_P.jpg')","url('https://js.livro.online/moan-quarto/paper-g5d2cae661_1280_Pixabay_user_geralt.jpg')"],o=0,l=document.querySelector("body"),r=document.getElementById("quarto-content"),i=document.querySelector(".page-navigation"),s=document.getElementById("quarto-sidebar"),c=document.getElementById("quarto-margin-sidebar"),d=document.querySelectorAll(".sidebar-item-container"),p=document.querySelectorAll("span.chapter-number"),f=document.getElementById("toc-title"),u=!1,g=document.querySelector("#papel"),m=document.querySelector("main");var y=document.createElement("div");function h(e,t){let n=document.createElement("button"),a=document.createElement("img");return a.src=e,n.appendChild(a),n.addEventListener("click",function(){t()}),n}y.id="moan-menu-texto";let v=document.querySelector("header"),$=window.getComputedStyle(g,null).getPropertyValue("font-size"),b=$.split("p"),E=b[0];function L(){let e=localStorage.getItem("livro.online@"+n+".config"),t=localStorage.getItem("quarto-color-scheme"),l=!1;l="default"!=t;let r=JSON.parse(e);e&&(r[0]&&A(r[0]),r[1]&&(o=r[1],g.style.background=a[r[1]],u&&!l&&(i.style.background=a[r[1]]),l&&g.style.removeProperty("background")),r[2]&&(u=r[2])&&!l&&F())}function C(e,t){let a=localStorage.getItem("livro.online@"+n+".config");if(a){let o=JSON.parse(a),l;switch(e){case"fonte":o[0]=t,l=JSON.stringify(o),localStorage.setItem("livro.online@"+n+".config",l);break;case"papel":o[1]=t,l=JSON.stringify(o),localStorage.setItem("livro.online@"+n+".config",l);break;case"luz_apagada":o[2]=t,l=JSON.stringify(o),localStorage.setItem("livro.online@"+n+".config",l)}}else{let r=[],i;switch(e){case"fonte":r[0]=t,i=JSON.stringify(r),localStorage.setItem("livro.online@"+n+".config",i);break;case"papel":r[1]=t,i=JSON.stringify(r),localStorage.setItem("livro.online@"+n+".config",i);break;case"fundo":r[2]=t,i=JSON.stringify(r),localStorage.setItem("livro.online@"+n+".config",i)}}}L();let z=document.createElement("script");z.src="https://js.livro.online/bibliotecas_de_terceiros/qrcode.min.js",document.body.appendChild(z);let S=document.createElement("div");S.id="modal",S.className="modal",S.style.display="none";let k=document.createElement("div");k.className="modal-content";let q=document.createElement("span");q.className="close",q.innerHTML="×",q.style.fontSize="20px";let I=document.createElement("div"),P=document.createElement("p");P.innerHTML="<strong>Refer\xeancia</strong>";let _=document.createElement("span");_.id="ref",I.appendChild(P),I.appendChild(_);let x=document.createElement("div"),N=document.createElement("p");N.innerHTML="<strong>Link</strong>";let w=document.createElement("span");w.id="link",x.appendChild(N),x.appendChild(w);let j=document.createElement("p");j.innerHTML="<strong>QR Code</strong>";let R=document.createElement("div");function H(){let e=window.getComputedStyle(y,null).getPropertyValue("font-size"),t=window.getComputedStyle(v,null).getPropertyValue("font-size"),n=parseInt(window.getComputedStyle(g,null).getPropertyValue("font-size").split("p")[0])-2;g.style.fontSize=`${n}px`,y.style.fontSize=e,v.style.fontSize=t,C("fonte",n)}function A(e){let t=window.getComputedStyle(y,null).getPropertyValue("font-size"),n=window.getComputedStyle(v,null).getPropertyValue("font-size");if(void 0!==e)g.style.fontSize=`${e}px`,y.style.fontSize=t,v.style.fontSize=n;else{let a=parseInt(window.getComputedStyle(g,null).getPropertyValue("font-size").split("p")[0])+2;g.style.fontSize=`${a}px`,y.style.fontSize=t,v.style.fontSize=n,C("fonte",a)}}function B(){g.style.fontSize=E+"px",C("fonte",E)}function V(){if(l.classList.contains("quarto-dark")){alert("Voc\xea precisa desabilitar o modo escuro para poder alterar o papel.");return}(o+=1)>a.length-1&&(o=0),g.style.background=a[o],C("papel",o),u&&(i.style.background=a[o])}function D(){r.classList.remove("luz_apagada"),i.style.removeProperty("background"),s.style.removeProperty("color"),s.classList.remove("luz_apagada"),d.forEach(e=>{e.style.removeProperty("color")}),p.forEach(e=>{"H1"===e.parentNode.nodeName.toUpperCase()||e.parentNode.classList.contains("nav-page-text")||e.style.removeProperty("color")}),c.style.removeProperty("color"),f&&f.style.removeProperty("color"),u=!1}function F(){r.classList.add("luz_apagada"),i.style.backgroundColor=a[o],g.style.background=a[o],s.style.color="#fff",s.classList.add("luz_apagada"),d.forEach(e=>{e.style.color="#fff"}),p.forEach(e=>{"H1"===e.parentNode.nodeName.toUpperCase()||e.parentNode.classList.contains("nav-page-text")||(e.style.color="#fff")}),c.style.color="#fff",f&&(f.style.color="#fff"),u=!0}function M(){if(l.classList.contains("quarto-dark")){alert("Voc\xea precisa desabilitar o modo escuro para o estado da luz de fundo.");return}u?(g.Line truncated
|
var observer,elementosNaPagina=[];let ref_cap_busca={};window.onload=e=>{let t=new Audio("https://js.livro.online/moan-quarto/Interruptor.mp3"),n=metadados.livroUrl,a=["#fff","antiquewhite","url('https://js.livro.online/moan-quarto/olga-thelavart-HZm2XR0whdw-unsplash_P.jpg')","url('https://js.livro.online/moan-quarto/paper-g5d2cae661_1280_Pixabay_user_geralt.jpg')"],o=0,l=document.querySelector("body"),r=document.getElementById("quarto-content"),i=document.querySelector(".page-navigation"),s=document.getElementById("quarto-sidebar"),c=document.getElementById("quarto-margin-sidebar"),d=document.querySelectorAll(".sidebar-item-container"),p=document.querySelectorAll("span.chapter-number"),f=document.getElementById("toc-title"),u=!1,g=document.querySelector("#papel"),m=document.querySelector("main");var y=document.createElement("div");function h(e,t){let n=document.createElement("button"),a=document.createElement("img");return a.src=e,n.appendChild(a),n.addEventListener("click",function(){t()}),n}y.id="moan-menu-texto";let v=document.querySelector("header"),$=window.getComputedStyle(g,null).getPropertyValue("font-size"),b=$.split("p"),E=b[0];function L(){let e=localStorage.getItem("livro.online@"+n+".config"),t=localStorage.getItem("quarto-color-scheme"),l=!1;l="default"!=t;let r=JSON.parse(e);e&&(r[0]&&A(r[0]),r[1]&&(o=r[1],g.style.background=a[r[1]],u&&!l&&i&&(i.style.background=a[r[1]]),l&&g.style.removeProperty("background")),r[2]&&(u=r[2])&&!l&&F())}function C(e,t){let a=localStorage.getItem("livro.online@"+n+".config");if(a){let o=JSON.parse(a),l;switch(e){case"fonte":o[0]=t,l=JSON.stringify(o),localStorage.setItem("livro.online@"+n+".config",l);break;case"papel":o[1]=t,l=JSON.stringify(o),localStorage.setItem("livro.online@"+n+".config",l);break;case"luz_apagada":o[2]=t,l=JSON.stringify(o),localStorage.setItem("livro.online@"+n+".config",l)}}else{let r=[],i;switch(e){case"fonte":r[0]=t,i=JSON.stringify(r),localStorage.setItem("livro.online@"+n+".config",i);break;case"papel":r[1]=t,i=JSON.stringify(r),localStorage.setItem("livro.online@"+n+".config",i);break;case"fundo":r[2]=t,i=JSON.stringify(r),localStorage.setItem("livro.online@"+n+".config",i)}}}L();let z=document.createElement("script");z.src="https://js.livro.online/bibliotecas_de_terceiros/qrcode.min.js",document.body.appendChild(z);let S=document.createElement("div");S.id="modal",S.className="modal",S.style.display="none";let k=document.createElement("div");k.className="modal-content";let q=document.createElement("span");q.className="close",q.innerHTML="×",q.style.fontSize="20px";let I=document.createElement("div"),P=document.createElement("p");P.innerHTML="<strong>Refer\xeancia</strong>";let _=document.createElement("span");_.id="ref",I.appendChild(P),I.appendChild(_);let x=document.createElement("div"),N=document.createElement("p");N.innerHTML="<strong>Link</strong>";let w=document.createElement("span");w.id="link",x.appendChild(N),x.appendChild(w);let j=document.createElement("p");j.innerHTML="<strong>QR Code</strong>";let R=document.createElement("div");function H(){let e=window.getComputedStyle(y,null).getPropertyValue("font-size"),t=window.getComputedStyle(v,null).getPropertyValue("font-size"),n=parseInt(window.getComputedStyle(g,null).getPropertyValue("font-size").split("p")[0])-2;g.style.fontSize=`${n}px`,y.style.fontSize=e,v.style.fontSize=t,C("fonte",n)}function A(e){let t=window.getComputedStyle(y,null).getPropertyValue("font-size"),n=window.getComputedStyle(v,null).getPropertyValue("font-size");if(void 0!==e)g.style.fontSize=`${e}px`,y.style.fontSize=t,v.style.fontSize=n;else{let a=parseInt(window.getComputedStyle(g,null).getPropertyValue("font-size").split("p")[0])+2;g.style.fontSize=`${a}px`,y.style.fontSize=t,v.style.fontSize=n,C("fonte",a)}}function B(){g.style.fontSize=E+"px",C("fonte",E)}function V(){if(l.classList.contains("quarto-dark")){alert("Voc\xea precisa desabilitar o modo escuro para poder alterar o papel.");return}(o+=1)>a.length-1&&(o=0),g.style.background=a[o],C("papel",o),u&&i&&(i.style.background=a[o])}function D(){r.classList.remove("luz_apagada"),i&&i.style.removeProperty("background"),s.style.removeProperty("color"),s.classList.remove("luz_apagada"),d.forEach(e=>{e.style.removeProperty("color")}),p.forEach(e=>{"H1"===e.parentNode.nodeName.toUpperCase()||e.parentNode.classList.contains("nav-page-text")||e.style.removeProperty("color")}),c.style.removeProperty("color"),f&&f.style.removeProperty("color"),u=!1}function F(){r.classList.add("luz_apagada"),i&&(i.style.backgroundColor=a[o]),g.style.background=a[o],s.style.color="#fff",s.classList.add("luz_apagada"),d.forEach(e=>{e.style.color="#fff"}),p.forEach(e=>{"H1"===e.parentNode.nodeName.toUpperCase()||e.parentNode.classList.contains("nav-page-text")||(e.style.color="#fff")}),c.style.color="#fff",f&&(f.style.color="#fff"),u=!0}function M(){if(l.classList.contains("quarto-dark")){alert("Voc\xea precisa desabilitar o modo escuro para o estado da luz de fundo."Line truncated
|
||||||
Reference in new issue
Block a user