-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathheart_result.html
88 lines (81 loc) · 3.69 KB
/
heart_result.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
83
84
85
86
87
88
<!DOCTYPE html>
<p lang="en">
<head>
<title>HealthSystem | Assessment</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
<link rel="canonical" href="https://getbootstrap.com/docs/4.5/examples/carousel/">
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.js"></script>
<script type="text/javascript" language="JavaScript">
window.onload = function () {
document.getElementById("download")
.addEventListener("click", () => {
const invoice = this.document.getElementById("assess");
console.log(invoice);
console.log(window);
var opt = {
margin: 1,
filename: 'Heart_Assessment.pdf',
image: { type: 'jpeg', quality: 0.98 },
html2canvas: { scale: 2 },
jsPDF: { unit: 'in', format: 'letter', orientation: 'landscape' }
};
html2pdf().from(invoice).set(opt).save();
})
}</script>
<style>
body {
padding-top: 3rem;
padding-bottom: 3rem;
color: #5a5a5a;
font-family: 'Poppins', sans-serif;
overflow-x: hidden;
}
nav {
font-family: sans-serif;
}
.navbar-brand {
font-size: 20px;
font-family: Georgia, 'Times New Roman', Times, serif;
}
@media (min-width: 768px) {
html {
font-size: 16px;
}
}
.container {
max-width: 960px;
}
.pricing-header {
max-width: 700px;
}
.card-deck .card {
min-width: 220px;
}
.themed-container {
padding: 15px;
margin-bottom: 30px;
background-color: rgba(0, 123, 255, .15);
border: 1px solid rgba(0, 123, 255, .2);
}
</style>
</head>
<body>
<div id="assess">
<div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 class="display-5">HEALTH SYSTEM</h1>
<p class="lead">Please find below the Risk Assessment</p>
</div>
<div class="container themed-container"><h1 style="text-align: center;">{{ prediction_text }}</h1></div>
<p style="text-align: center;">Click <a href="/disindex">here</a> to learn more about Heart Disease</p>
<p style="text-align: center;">©riskassess.com</p>
</div>
<br/>
<button class="btn btn-primary btn-lg" id="download">Download</button>
</body>
</html>