-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (66 loc) · 2.14 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>brokencode</title>
<style>
html {
padding-top: 25px;
background-color: rgb(24, 24, 24);
color: rgb(220, 220, 220);
font-family: monaco,Consolas,Lucida Console,monospace;
text-align: center;
}
header {
font-size: x-large;
}
.links a {
color: white;
}
.post {
padding: 25px;
font-size: large;
text-align: left;
}
.post h3 {
margin: 0;
text-align: left;
text-decoration: underline;
}
.content {
padding-left: 10%;
display: flex;
flex-direction: column;
min-height: 100%;
}
</style>
<script src="data.js" type="text/javascript"></script>
<script>
onload = function(event) {
const postJsonString = atob(data);
const posts = JSON.parse(postJsonString);
let content = document.getElementById("content");
for (const index in posts) {
const post = posts[index];
let postDiv = document.createElement("div");
postDiv.className = "post";
let postContent = `<h3>c:/${post.name}!${post.date}.exe</h3>`;
postContent += post.content
postDiv.innerHTML = postContent
content.appendChild(postDiv)
}
}
</script>
</head>
<body>
<header>
Brokencode: A (mad) programmers brain dump
</header>
<br>
<div class="links">
<a href="https://twitter.com/chroma_don">me</a>
</div>
<div id="content" class="content">
</div>
<footer>- Oliver James -</footer>
</body>
</html>