-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsave-pdf.js
More file actions
30 lines (23 loc) · 995 Bytes
/
Copy pathsave-pdf.js
File metadata and controls
30 lines (23 loc) · 995 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
function funcao_pdf(){
var pegar_dados = document.getElementById('summernote').value;
var janela = window.open('', '', 'width=800, height=600');
janela.document.write('<html><head>');
janela.document.write('<title>PDF MatracaWeb</title></head>');
janela.document.write('<body>');
janela.document.write(pegar_dados);
janela.document.write('</body> </html>');
janela.document.close();
janela.print();
}
function darkMode(){
document.getElementById('mudar').style.background= "black";
document.getElementById('mudar').style.color= "white";
document.getElementById('mudar2').style.background= "black";
document.getElementById('mudar2').style.color= "white";
}
function lightMode(){
document.getElementById('mudar').style.background= "#dee0df";
document.getElementById('mudar').style.color= "black";
document.getElementById('mudar2').style.background= "#dee0df";
document.getElementById('mudar2').style.color= "black";
}