Mudanças no modal de referências
Adicionei o "Como Citar" e "Versão Impressa" no modal de referências.
This commit is contained in:
parent
c8cf84d086
commit
7ee6a936c2
@ -127,7 +127,7 @@ object pre {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#qrcode_container {
|
#qrcode_container {
|
||||||
margin: 13px auto 5px auto;
|
margin: 13px auto 20px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
|
@ -288,12 +288,30 @@ window.onload = (event) => {
|
|||||||
const qrCodeContainer = document.createElement("div");
|
const qrCodeContainer = document.createElement("div");
|
||||||
qrCodeContainer.id = "qrcode_container";
|
qrCodeContainer.id = "qrcode_container";
|
||||||
|
|
||||||
|
const citarDiv = document.createElement("div");
|
||||||
|
const citarDivLabel = document.createElement("p");
|
||||||
|
citarDivLabel.innerHTML = "<strong>Como Citar</strong>";
|
||||||
|
const citarDivSpan = document.createElement("span");
|
||||||
|
citarDivSpan.innerHTML = "Veja <a href='/index.html#como-citar'>aqui</a> como citar este livro.";
|
||||||
|
citarDiv.appendChild(citarDivLabel);
|
||||||
|
citarDiv.appendChild(citarDivSpan);
|
||||||
|
|
||||||
|
const postosDeVendaDiv = document.createElement("div");
|
||||||
|
const postosDeVendaDivLabel = document.createElement("p");
|
||||||
|
postosDeVendaDivLabel.innerHTML = "<strong>Versão Impressa</strong>";
|
||||||
|
const postosDeVendaDivSpan = document.createElement("span");
|
||||||
|
postosDeVendaDivSpan.innerHTML = "Veja <a href='/index.html#versão-impressa'>aqui</a> onde comprar.";
|
||||||
|
postosDeVendaDiv.appendChild(postosDeVendaDivLabel);
|
||||||
|
postosDeVendaDiv.appendChild(postosDeVendaDivSpan);
|
||||||
|
|
||||||
// Adicione todos os elementos à janela modal
|
// Adicione todos os elementos à janela modal
|
||||||
modalContent.appendChild(closeBtn);
|
modalContent.appendChild(closeBtn);
|
||||||
modalContent.appendChild(referenciaDiv);
|
modalContent.appendChild(referenciaDiv);
|
||||||
modalContent.appendChild(linkDiv);
|
modalContent.appendChild(linkDiv);
|
||||||
modalContent.appendChild(qrCodeLabel);
|
modalContent.appendChild(qrCodeLabel);
|
||||||
modalContent.appendChild(qrCodeContainer);
|
modalContent.appendChild(qrCodeContainer);
|
||||||
|
modalContent.appendChild(citarDiv);
|
||||||
|
modalContent.appendChild(postosDeVendaDiv);
|
||||||
modal.appendChild(modalContent);
|
modal.appendChild(modalContent);
|
||||||
|
|
||||||
// Adicione a janela modal ao corpo do documento
|
// Adicione a janela modal ao corpo do documento
|
||||||
|
Loading…
x
Reference in New Issue
Block a user