-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
152 lines (128 loc) · 3.9 KB
/
Copy pathindex.html
File metadata and controls
152 lines (128 loc) · 3.9 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FHE Benchmarking Suite</title>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
line-height: 1.6;
max-width: 900px;
margin: 0 auto;
padding: 20px;
color: #333;
background-color: #f9f9f9;
}
h1, h2, h3 {
color: #2c3e50;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
h1 {
border-bottom: 2px solid #3498db;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
code {
background-color: #f4f4f4;
padding: 2px 6px;
border-radius: 3px;
font-family: "Courier New", monospace;
}
pre {
background-color: #f4f4f4;
padding: 12px;
border-radius: 5px;
overflow-x: auto;
}
pre code {
background-color: transparent;
padding: 0;
}
table {
border-collapse: collapse;
margin: 20px 0;
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 12px;
text-align: left;
}
th {
background-color: #f4f4f4;
}
ul, ol {
margin: 10px 0;
padding-left: 30px;
}
li {
margin: 8px 0;
}
blockquote {
border-left: 4px solid #3498db;
margin: 0;
padding-left: 15px;
color: #666;
}
.contributors {
text-align: center;
margin: 30px 0;
}
.contributors img {
margin: 0 15px;
}
table img {
max-height: 60px;
}
footer {
border-top: 1px solid #ddd;
margin-top: 40px;
padding-top: 20px;
text-align: center;
color: #666;
font-size: 0.9em;
}
</style>
</head>
<body>
<div id="content"></div>
<footer id="footer"></footer>
<script>
async function loadMarkdown() {
try {
const response = await fetch('README.md');
const markdown = await response.text();
// Configure marked options to allow HTML
marked.setOptions({
breaks: true,
gfm: true,
async: false,
});
const html = marked.parse(markdown);
document.getElementById('content').innerHTML = html;
// Extract and style footer if it exists
const contentDiv = document.getElementById('content');
const footerContent = contentDiv.querySelector('hr + p');
if (footerContent) {
const footer = document.getElementById('footer');
footer.innerHTML = footerContent.outerHTML;
footerContent.remove();
}
} catch (error) {
document.getElementById('content').innerHTML = '<p>Error loading README: ' + error.message + '</p>';
}
}
// Load markdown when page loads
window.addEventListener('DOMContentLoaded', loadMarkdown);
</script>
</body>
</html>