-
Notifications
You must be signed in to change notification settings - Fork 0
/
whitepaper.html
132 lines (119 loc) · 3.83 KB
/
whitepaper.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Casper Shorts Whitepaper</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src https://fonts.gstatic.com https://cdn.jsdelivr.net; script-src 'self' https://cdn.jsdelivr.net 'nonce-abcdef';">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<style>
body {
display: flex;
justify-content: center;
min-height: 100vh;
margin: 0;
padding: 20px;
background: #f9f9f9;
/* font-family: 'Roboto', sans-serif; */
line-height: 1.6;
color: #333;
}
main {
width: 100%;
max-width: 40em;
background: #fff;
padding-left: 5em;
padding-right: 5em;
padding-top: 5em;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
border-radius: 5px;
text-align: justify;
text-justify: inter-word;
}
h1 {
text-align: center;
font-size: 1.6em;
}
h2 {
font-size: 1.2em;
}
h3 {
font-size: 1em;
}
.authors {
text-align: center;
font-size: 1em;
margin-top: 1em;
}
.abstract {
padding-top: 3em;
padding-bottom: 3em;
padding-left: 5em;
padding-right: 5em;
}
.language-mermaid {
display: flex;
justify-content: center;
margin-top: 20px;
}
svg.mermaid {
margin: auto; /* ensures that SVGs are centered */
max-width: 100%; /* ensures SVG does not overflow */
}
/* code {
font-family: monospace;
background-color: #eee;
padding: 2px 5px;
border-radius: 3px;
} */
/* Comic style customizations */
.node rect, .node circle, .node ellipse {
stroke: black;
stroke-width: 2px;
fill: white;
}
.node text {
font-family: "Comic Sans MS", "Comic Sans", cursive;
font-size: 14px;
}
.edgePath path {
stroke: black;
stroke-width: 2px;
fill: none;
}
.edgeLabel text {
font-family: "Comic Sans MS", "Comic Sans", cursive;
font-size: 12px;
fill: black;
}
</style>
<script nonce="abcdef">
window.onload = function () {
mermaid.initialize({
startOnLoad: false,
theme: 'base',
});
fetch("whitepaper.md")
.then(response => response.text())
.then(text => {
var output = document.getElementById('output');
var rendered = texme.render(text, { style: 'plain'});
output.innerHTML = rendered;
// Initialize Mermaid for any diagrams in the rendered Markdown
mermaid.init(undefined, output.querySelectorAll('.language-mermaid'));
if (window.MathJax) {
window.MathJax.texReset();
window.MathJax.typesetPromise();
}
});
};
</script>
</head>
<body>
<main>
<div id="output"></div>
</main>
</body>
</html>