-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (44 loc) · 1.45 KB
/
Copy pathindex.html
File metadata and controls
47 lines (44 loc) · 1.45 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RWA Model Dashboard - Product Requirements Document</title>
<link rel="stylesheet" href="prd-styles.css">
</head>
<body>
<div id="content"></div>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
// Fetch the markdown file
fetch('RWA_Model_Dashboard_PRD.md')
.then(response => response.text())
.then(markdown => {
// Convert markdown to HTML
document.getElementById('content').innerHTML = marked.parse(markdown);
// Add print button
const printButton = document.createElement('button');
printButton.textContent = 'Print / Save as PDF';
printButton.style.padding = '10px 15px';
printButton.style.backgroundColor = '#2563eb';
printButton.style.color = 'white';
printButton.style.border = 'none';
printButton.style.borderRadius = '4px';
printButton.style.cursor = 'pointer';
printButton.style.marginTop = '20px';
printButton.style.fontWeight = 'bold';
printButton.addEventListener('click', () => {
window.print();
});
document.body.insertBefore(printButton, document.body.firstChild);
});
</script>
<style>
@media print {
button {
display: none;
}
}
</style>
</body>
</html>