-
Notifications
You must be signed in to change notification settings - Fork 0
/
Generate.html
82 lines (75 loc) · 2.59 KB
/
Generate.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<html>
<head>
<title>
Configure Dashboard
</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.1.3/dist/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js"></script>
<script>
function pdf()
{
var doc=new jsPDF();
var res=document.querySelector('#reports');
doc.fromHTML(res,20,20,{
"width" : 170
});
doc.save("Report.pdf");
console.log("jkasdfhjk");
}
</script>
<style>
.card{
margin-top:2%;
margin-left: 50px;
width: 90%;
padding: 10px;
}
.report
{
border: black 1px solid;
width: 900px;
height: 470px;
}
.btn{
background-color: #1F2937;
color: whitesmoke;
width: 100px;
margin-bottom: 10px;
}
.btn:hover{
background-color: whitesmoke;
}
</style>
</head>
<body>
<div class="card shadow rounded" >
<center> <div class="name">
<h1>Report</h1>
</div>
<div class="report" id="reports">
asefhkvciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiruehfjdfghkjhdfkusdaofuteoirujtvoi4oio
se kvueytihvniotuiuti4
veltyueivtiu;rn
doirytieutoiu
asefhkvciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiruehfjdfghkjhdfkusdaofuteoirujtvoi4oio
se kvueytihvniotuiuti4
veltyueivtiu;rn
doirytieutoiu
asefhkvciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiruehfjdfghkjhdfkusdaofuteoirujtvoi4oio
se kvueytihvniotuiuti4
veltyueivtiu;rn
doirytieutoiu
</div>
<br>
<input type="submit" class="btn shadow rounded" value="Back" onclick="location.href='Report.html'">
<input type="submit" class="btn shadow rounded" value="Download" onclick="pdf();">
</center>
</div>
</body>
</html>