-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript.js
More file actions
40 lines (14 loc) · 683 Bytes
/
Copy pathscript.js
File metadata and controls
40 lines (14 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function funcaoGerar(){
const textoCitacao = document.querySelector("body > textarea").value
const valorInputLink = document.querySelectorAll('.input')[0].value
const textoAutor = document.querySelectorAll('.input')[1].value
document.querySelector('#elementoCitacao').textContent = textoCitacao;
document.querySelector('#elementoAutor').textContent = textoAutor;
document.querySelector("#imagemCitacao").src = valorInputLink
}
function funcaoDownload() {
var node = document.getElementById('capture');
html2canvas(node).then(function(canvas) {
document.body.appendChild(canvas);
});
}