Compare commits
No commits in common. "f5b74ebd3610b6f740c2549b089a08c3ea0b7476" and "0b7fa5571ca2c01e198543a46c9fa7830437d106" have entirely different histories.
f5b74ebd36
...
0b7fa5571c
34
.vscode/launch.json
vendored
34
.vscode/launch.json
vendored
|
|
@ -5,17 +5,37 @@
|
|||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "HTTP Server",
|
||||
"type": "python",
|
||||
"name": "Launch Edge",
|
||||
"request": "launch",
|
||||
"module": "http.server",
|
||||
"justMyCode": true
|
||||
"type": "msedge",
|
||||
"file": "${workspaceFolder}/index.html"
|
||||
},
|
||||
{
|
||||
"type": "msedge",
|
||||
"name": "Launch index.html",
|
||||
"type": "firefox",
|
||||
"request": "launch",
|
||||
"name": "Edge",
|
||||
"file": "${workspaceFolder}/cv.html"
|
||||
"reAttach": true,
|
||||
"file": "${workspaceFolder}/index.html"
|
||||
},
|
||||
{
|
||||
"name": "Launch localhost",
|
||||
"type": "firefox",
|
||||
"request": "launch",
|
||||
"reAttach": true,
|
||||
"url": "http://localhost/index.html",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"name": "Attach",
|
||||
"type": "firefox",
|
||||
"request": "attach"
|
||||
},
|
||||
{
|
||||
"name": "Launch WebExtension",
|
||||
"type": "firefox",
|
||||
"request": "launch",
|
||||
"reAttach": true,
|
||||
"addonPath": "${workspaceFolder}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
2
cv.html
2
cv.html
|
|
@ -25,7 +25,7 @@
|
|||
<style>
|
||||
:root {
|
||||
--white-neutral: #f4f4f9;
|
||||
--white-hover: #ececff;
|
||||
--white-hover: #e5e5ff;
|
||||
--black-neutral: #1a1a1c;
|
||||
--black-hover: #282833;
|
||||
--accent: #7a7a99;
|
||||
|
|
|
|||
40
index.html
40
index.html
|
|
@ -14,40 +14,7 @@
|
|||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#000000">
|
||||
<meta name="msapplication-TileColor" content="#2b5797">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<script>
|
||||
async function getIssues() {
|
||||
let response = await fetch("https://benjamin.stadlbauer.wien/git/api/v1/repos/Benjamin/personal-website/issues?state=open", {
|
||||
headers: {
|
||||
"Accept": "application/json"
|
||||
}
|
||||
});
|
||||
|
||||
return await response.json();
|
||||
}
|
||||
async function fillIssues() {
|
||||
let issues = [];
|
||||
|
||||
try {
|
||||
issues = await getIssues();
|
||||
let ul = document.getElementById("issues");
|
||||
|
||||
issues.forEach(issue => {
|
||||
let li = document.createElement("li");
|
||||
li.appendChild(document.createTextNode(issue.title));
|
||||
ul.appendChild(li);
|
||||
})
|
||||
} catch (ex) {
|
||||
console.warn("Could not fetch open issues via API");
|
||||
console.warn(ex);
|
||||
document.getElementById("open_issues_p").remove()
|
||||
document.getElementById("issues").remove()
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = (event) => {
|
||||
fillIssues();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
@ -62,7 +29,7 @@
|
|||
<main>
|
||||
<h1>Benjamin’s Website</h1>
|
||||
<p>Welcome to my website which is still under construction.</p>
|
||||
<p>I finished updating my <a href="cv.html">curriculum vitae</a> part of the website, where one will find
|
||||
<p>I am currently working on the <a href="cv.html">curriculum vitae</a> part of the website, where one will find
|
||||
some information about my professional background.</p>
|
||||
<p>I will of course invest more time into this website
|
||||
<ul>
|
||||
|
|
@ -70,11 +37,6 @@
|
|||
<li>to make it more accessible.</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p id="open_issues_p">
|
||||
These are the open issues for my website:
|
||||
<ul id="issues">
|
||||
</ul>
|
||||
</p>
|
||||
<footer>
|
||||
<h2>About this website</h2>
|
||||
<p>I started this website as a pet-project
|
||||
|
|
|
|||
Loading…
Reference in a new issue