Corrigindo os links para a nova hospedagem dos recursos para o leitor https://moanquarto.livro.online
This commit is contained in:
parent
6a61e8fe6e
commit
e87eb7171b
@ -1,4 +1,4 @@
|
|||||||
//Este script depende da biblioteca https://js.livro.online/bibliotecas_de_terceiros/qrcode.min.js e de imagens na mesma pasta deste arquivo
|
//Este script depende da biblioteca https://moanquarto.livro.online/bibliotecas_de_terceiros/qrcode.min.js e de imagens na mesma pasta deste arquivo
|
||||||
|
|
||||||
//Variáveis globais
|
//Variáveis globais
|
||||||
|
|
||||||
@ -17,12 +17,12 @@ window.onload = (event) => {
|
|||||||
// A variavel metadados está definida no head do html. Foi colocada pelo script preparacao-moan.py
|
// A variavel metadados está definida no head do html. Foi colocada pelo script preparacao-moan.py
|
||||||
|
|
||||||
|
|
||||||
const Interruptor_Som = new Audio('https://js.livro.online/moan-quarto/Interruptor.mp3');
|
const Interruptor_Som = new Audio('https://moanquarto.livro.online/moan-quarto/Interruptor.mp3');
|
||||||
|
|
||||||
const livroUrl = metadados.livroUrl;
|
const livroUrl = metadados.livroUrl;
|
||||||
|
|
||||||
// 0 -> branco, 1 -> creme, 2 -> textura, 3 -> antigo
|
// 0 -> branco, 1 -> creme, 2 -> textura, 3 -> antigo
|
||||||
const tipo_de_papel = ['#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')"];
|
const tipo_de_papel = ['#fff', 'antiquewhite', "url('https://moanquarto.livro.online/moan-quarto/olga-thelavart-HZm2XR0whdw-unsplash_P.jpg')", "url('https://moanquarto.livro.online/moan-quarto/paper-g5d2cae661_1280_Pixabay_user_geralt.jpg')"];
|
||||||
|
|
||||||
let indiceTipoPapel = 0; //Índice do tipo de papel
|
let indiceTipoPapel = 0; //Índice do tipo de papel
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ window.onload = (event) => {
|
|||||||
const scriptElement = document.createElement('script');
|
const scriptElement = document.createElement('script');
|
||||||
|
|
||||||
// Defina o atributo src para o caminho da biblioteca QRCode.js
|
// Defina o atributo src para o caminho da biblioteca QRCode.js
|
||||||
scriptElement.src = 'https://js.livro.online/bibliotecas_de_terceiros/qrcode.min.js';
|
scriptElement.src = 'https://moanquarto.livro.online/bibliotecas_de_terceiros/qrcode.min.js';
|
||||||
|
|
||||||
// Adicione o elemento script ao final do corpo do documento
|
// Adicione o elemento script ao final do corpo do documento
|
||||||
document.body.appendChild(scriptElement);
|
document.body.appendChild(scriptElement);
|
||||||
@ -538,11 +538,11 @@ window.onload = (event) => {
|
|||||||
|
|
||||||
|
|
||||||
// Crie e adicione os botões com as respectivas funções
|
// Crie e adicione os botões com as respectivas funções
|
||||||
divMenuTexto.appendChild(criarBotaoComFuncao('https://js.livro.online/moan-quarto/text_decrease_FILL0_wght400_GRAD0_opsz24.svg', diminuirFonte));
|
divMenuTexto.appendChild(criarBotaoComFuncao('https://moanquarto.livro.online/moan-quarto/text_decrease_FILL0_wght400_GRAD0_opsz24.svg', diminuirFonte));
|
||||||
divMenuTexto.appendChild(criarBotaoComFuncao('https://js.livro.online/moan-quarto/text_increase_FILL0_wght400_GRAD0_opsz24.svg', aumentarFonte));
|
divMenuTexto.appendChild(criarBotaoComFuncao('https://moanquarto.livro.online/moan-quarto/text_increase_FILL0_wght400_GRAD0_opsz24.svg', aumentarFonte));
|
||||||
divMenuTexto.appendChild(criarBotaoComFuncao('https://js.livro.online/moan-quarto/format_clear_FILL0_wght400_GRAD0_opsz24.svg', retornarFonteSize));
|
divMenuTexto.appendChild(criarBotaoComFuncao('https://moanquarto.livro.online/moan-quarto/format_clear_FILL0_wght400_GRAD0_opsz24.svg', retornarFonteSize));
|
||||||
divMenuTexto.appendChild(criarBotaoComFuncao('https://js.livro.online/moan-quarto/note_FILL0_wght400_GRAD0_opsz24.svg', mudarPapel));
|
divMenuTexto.appendChild(criarBotaoComFuncao('https://moanquarto.livro.online/moan-quarto/note_FILL0_wght400_GRAD0_opsz24.svg', mudarPapel));
|
||||||
divMenuTexto.appendChild(criarBotaoComFuncao('https://js.livro.online/moan-quarto/emoji_objects_FILL0_wght400_GRAD0_opsz24.svg', alternarEstadoDaLuz));
|
divMenuTexto.appendChild(criarBotaoComFuncao('https://moanquarto.livro.online/moan-quarto/emoji_objects_FILL0_wght400_GRAD0_opsz24.svg', alternarEstadoDaLuz));
|
||||||
|
|
||||||
|
|
||||||
main.insertBefore(divMenuTexto, main.firstChild);
|
main.insertBefore(divMenuTexto, main.firstChild);
|
||||||
@ -616,7 +616,7 @@ window.onload = (event) => {
|
|||||||
inputBusca.className = 'buscar_ref';
|
inputBusca.className = 'buscar_ref';
|
||||||
inputBusca.setAttribute('placeholder', 'Referência...');
|
inputBusca.setAttribute('placeholder', 'Referência...');
|
||||||
|
|
||||||
inputBusca.style.backgroundImage = 'url("https://js.livro.online/moan-quarto/search_FILL0_wght400_GRAD0_opsz24.svg")';
|
inputBusca.style.backgroundImage = 'url("https://moanquarto.livro.online/moan-quarto/search_FILL0_wght400_GRAD0_opsz24.svg")';
|
||||||
inputBusca.style.backgroundRepeat = 'no-repeat';
|
inputBusca.style.backgroundRepeat = 'no-repeat';
|
||||||
inputBusca.style.backgroundPosition = '5px center';
|
inputBusca.style.backgroundPosition = '5px center';
|
||||||
inputBusca.style.paddingLeft = '25px'; // Ajuste o valor conforme necessário
|
inputBusca.style.paddingLeft = '25px'; // Ajuste o valor conforme necessário
|
||||||
@ -642,7 +642,7 @@ window.onload = (event) => {
|
|||||||
|
|
||||||
// Adicione a imagem ao span
|
// Adicione a imagem ao span
|
||||||
const imagem = document.createElement("img");
|
const imagem = document.createElement("img");
|
||||||
imagem.src = "https://js.livro.online/moan-quarto/link_FILL0_wght400_GRAD0_opsz24.svg";
|
imagem.src = "https://moanquarto.livro.online/moan-quarto/link_FILL0_wght400_GRAD0_opsz24.svg";
|
||||||
spanDentroDoBotao.appendChild(imagem);
|
spanDentroDoBotao.appendChild(imagem);
|
||||||
|
|
||||||
// Crie o texto
|
// Crie o texto
|
||||||
@ -678,7 +678,7 @@ if (navbarTools) {
|
|||||||
link1.title = 'Editora Moan';
|
link1.title = 'Editora Moan';
|
||||||
|
|
||||||
var img1 = document.createElement('img');
|
var img1 = document.createElement('img');
|
||||||
img1.src = 'https://js.livro.online/moan-quarto/LogoRegistroALTII_min.png';
|
img1.src = 'https://moanquarto.livro.online/moan-quarto/LogoRegistroALTII_min.png';
|
||||||
img1.alt = 'Editora';
|
img1.alt = 'Editora';
|
||||||
|
|
||||||
link1.appendChild(img1);
|
link1.appendChild(img1);
|
||||||
@ -690,7 +690,7 @@ if (navbarTools) {
|
|||||||
link2.title = 'Mais livros gratuitos...';
|
link2.title = 'Mais livros gratuitos...';
|
||||||
|
|
||||||
var img2 = document.createElement('img');
|
var img2 = document.createElement('img');
|
||||||
img2.src = 'https://js.livro.online/moan-quarto/livro_aberto_curvas.svg';
|
img2.src = 'https://moanquarto.livro.online/moan-quarto/livro_aberto_curvas.svg';
|
||||||
img2.alt = 'Livros';
|
img2.alt = 'Livros';
|
||||||
img2.width = 28;
|
img2.width = 28;
|
||||||
img2.height = 28;
|
img2.height = 28;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user