-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
105 lines (90 loc) · 4.27 KB
/
index.html
File metadata and controls
105 lines (90 loc) · 4.27 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Berti - Full-Stack Dev</title>
<meta name="description"
content="Jonathan Berti - Full-Stack Web Developer Resume - 2019 - I've been writing code for the web and using Linux since Netscape Navigator 1.0 shipped with RedHat in 1997. Since then, I have been solving problems on the web with Javascript, PHP, Python and a host of other languages. Maybe you should hire me. I charge $1,000,000 an hour usually, but, I like you, I bet we could work something out." />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon"
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAO9AAADvQBThc/RQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAK0SURBVFiFvddNqFVVFAfw333v5mflB/ZUFIU0DUEhR0HZRFQEUaShJBY8k8SBQx2kTUKjQKf5MdCBQuAkSNCJghAhOPALFEIkjEw0U/OL53sO1rne8/Y9577nO/f1h8PlrL3XWf+991r/tS+jgx4cx0Pcxrd4Y5RitaCOCxhInr3/F4HlBcEH8BRj0sldo0Cgp8Q+ts3YK0zH+xUJLFK8A7dRG8r5MC5VJAAHk+D92FA0sZ6838fUDhD4Er9iBZ7jKE4Px/FrkSydwoc4h8e4hi1DOWwTWzaxA8Fn4IHWXNicjS/G2rQK7me/nTiGdXirwN4g8AGWpDnwT47AH0ME+Bgfid0ah0lZwDmYi1klfu9mv13oTgl8liPQDpNFUo0bYl4RpuBNUZItBP7GMc2dSDERS9E3wuANzM8I1FMCd7EDjzATX2k2kT+xSZxdP26Ilbwjmk6fyKFb4vj+VZ7172UE1LAnN7BU1O6PQjqf5cb6DZbuJwaX7D78lXuvZQuZUEBgp9jteTVRGp3AEq0qelGUW4pDQqjmjUYzyuN6iX2+WHitLvr0bCVa3QbPxLY3cKdgzs0S37m4J1dtyxR3sHZPWaUQpfa96ANFvndEMp+qQqChmim2impq53slW/3FThKo48gw/PqxMfO5nupAFRzQVNIU/+GyWPFPmq15fBUC+dtNrxCpFFeFst7DQiFAm7BSCNfdTpRhD34osJ8XidqLBXiB1UIpfxci9mlj8khy4EHmu69gbHf2zeWa6rkmG+vNs6x6BG/ji8R+Et8YpsJWOYIa1ht86RjA9uEGr0qgC6sS2xlx93utj4wU3fgksf3yuh+pQmCM1mvX2ZK5kzX/FU0TKjgo9kiqoEjfuwuC7y+Zv4tmFfRp31yK8BAn8Lm4LW0RtZ7iO/wsrnDjc/bf4CVFZu1lWeEHHAAAAABJRU5ErkJggg==" />
<script src='https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.0/showdown.min.js'></script>
<style>
body {
background-color: #3a3535;
color: aliceblue;
}
a {
font-family: 'Courier New', Courier, monospace;
}
ul {
list-style-type: none;
padding-inline-start: 0px !important;
}
li {
border: 1px solid black;
margin-block-start: 5px;
padding: 1vw;
}
li>* {
align-content: center;
text-align: center;
margin: 0px auto;
}
li>a {
text-decoration: none;
color: aliceblue !important;
}
</style>
</head>
<body>
<div>
<ul id="linkList"></ul>
</div>
<script>
const converter = new showdown.Converter()
showdown.setFlavor('github');
const dirFilter = (response) => {
if (response.type === 'dir') {
return `${response.path}`
} else {
return false
}
}
const fetchFile = (url) => {
let textContent = '';
return fetch(url).then(res => res.text()).then((text) => {
return textContent = text;
})
return textContent
}
var list = document.getElementById('linkList')
const createLinkElement = (linkArray) => {
let tmplink = ''
linkArray.map(link => {
fetch(link + '/README.md').then(res => {
tmplink = link
return res.text()
}).then(txt => {
list.innerHTML += `<li><a href="${tmplink}">${converter.makeHtml(txt)}</a></li>`
})
})
}
var exLinks = fetch('https://api.github.com/repos/atomize/atomize.github.io/contents/examples')
.then(res => {
return res.json()
})
.then(contents => {
return contents.map(dirFilter)
})
exLinks.then(links => createLinkElement(links))
console.log(document.location)
</script>
</body>
</html>