Skip to content

Commit f1aba26

Browse files
Add index.html
1 parent 686c9f2 commit f1aba26

File tree

2 files changed

+46
-12
lines changed

2 files changed

+46
-12
lines changed

SPECIFICATION.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<meta name="viewport" content="width=device-width,initial-scale=1" />
66
<title>ASM-Lang SPECIFICATION</title>
77
<style>
8+
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
9+
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');
810
body{background:#222;color:#99ddff;font-family:Open Sans, sans-serif;margin:0;padding:1rem}
911
.container{max-width:1000px;margin:0 auto;text-align:justify;text-justify:inter-word}
1012
pre, code{background:#3c3c3c;color:inherit;font-family:Source Code Pro, monospace;padding:.25rem .5rem}
@@ -18,18 +20,6 @@
1820
<script id="md" type="text/markdown">
1921
# Abstract State Machine Language Specification
2022

21-
<style>
22-
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
23-
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');
24-
25-
:root { --asm-default-text-color: rgb(153,221,255); }
26-
:root { --asm-default-background-color: rgb(34,34,34); }
27-
:root { --asm-keyword-background-color: rgb(60,60,60); }
28-
29-
body { color: var(--asm-default-text-color); background-color: var(--asm-default-background-color); font-family: 'Open Sans', sans-serif; }
30-
code { color: var(--asm-default-text-color); background-color: var(--asm-keyword-background-color); font-family: 'Source Code Pro', monospace; }
31-
</style>
32-
3323
<p align="center">
3424
<img alt="ASM-Lang icon" src="./icon.png">
3525
</p>

index.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width,initial-scale=1" />
6+
<title>ASM-Lang SPECIFICATION</title>
7+
<style>
8+
body{background:#222;color:#99ddff;font-family:Open Sans, sans-serif;margin:0;padding:1rem}
9+
.container{max-width:1000px;margin:0 auto;text-align:justify;text-justify:inter-word}
10+
.container h1{ text-align:center; margin-top:0; }
11+
pre, code{background:#3c3c3c;color:inherit;font-family:Source Code Pro, monospace;padding:.25rem .5rem}
12+
img{max-width:100%}
13+
</style>
14+
</head>
15+
<body>
16+
<div class="container" id="content">Rendering specification…</div>
17+
18+
<!-- Markdown source is embedded below. marked.js will render it into #content. -->
19+
<script id="md" type="text/markdown">
20+
# Abstract State Machine Language
21+
22+
<p align="center">
23+
<img alt="ASM-Lang icon" src="./icon.png">
24+
</p>
25+
26+
ASM-Lang is a statement-based, imperative language focused on simplicity, readability, and brevity.
27+
It is designed to be easy to learn and use, while still being powerful enough to handle a wide range of programming tasks.
28+
29+
- [ASM-Lang Specification](./SPECIFICATION.html)
30+
- [Contribution Guide](./CONTRIBUTING.html)
31+
- [Unlicense](./UNLICENSE.html)
32+
33+
</script>
34+
35+
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
36+
<script>
37+
document.addEventListener('DOMContentLoaded', function(){
38+
const md = document.getElementById('md').textContent;
39+
const rendered = marked.parse(md);
40+
document.getElementById('content').innerHTML = rendered;
41+
});
42+
</script>
43+
</body>
44+
</html>

0 commit comments

Comments
 (0)