mirror of
https://gitlab.com/MisterBiggs/Resume.git
synced 2025-06-15 17:06:39 +00:00
clean up some js
This commit is contained in:
parent
fb850dbbe8
commit
d575c3e0c1
@ -89,8 +89,7 @@
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>
|
||||
Embedded Software Engineer | United Launch Alliance | Denver, CO |
|
||||
2022
|
||||
Embedded Software Engineer | United Launch Alliance | Denver, CO | 2022
|
||||
</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
@ -130,7 +129,8 @@
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>
|
||||
Undergraduate Research Lead | Orbital Debris Classification | Prescott, AZ | 2021
|
||||
Undergraduate Research Lead | Orbital Debris Classification | Prescott,
|
||||
AZ | 2021
|
||||
</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
@ -228,17 +228,18 @@
|
||||
</dl>
|
||||
<h2 id="noprint">Engineering Project Writeups</h2>
|
||||
<br id="noprint" />
|
||||
<script>
|
||||
const RSS_URL = `https://projects.ansonbiggs.com/index.xml`;
|
||||
<div id="xml-feed-container"></div>
|
||||
|
||||
fetch(RSS_URL)
|
||||
<script>
|
||||
const PROJECTS_URL = `https://projects.ansonbiggs.com/index.xml`;
|
||||
|
||||
fetch(PROJECTS_URL)
|
||||
.then((response) => response.text())
|
||||
.then((str) => new window.DOMParser().parseFromString(str, "text/xml"))
|
||||
.then((data) => {
|
||||
console.log(data);
|
||||
const items = data.querySelectorAll("item");
|
||||
let articles = ``;
|
||||
let detailedlist = `<dl id="onlyprint">`;
|
||||
items.forEach((el) => {
|
||||
articles += `
|
||||
<article id="noprint">`;
|
||||
@ -261,16 +262,8 @@
|
||||
</a>
|
||||
</article>
|
||||
`;
|
||||
|
||||
detailedlist += `
|
||||
<dt><a href="${el.querySelector("link").innerHTML}">
|
||||
${el.querySelector("title").innerHTML}</a></dt>
|
||||
<dd>${el.querySelector("description").innerHTML}</dd>
|
||||
`;
|
||||
});
|
||||
detailedlist += `</dl>`;
|
||||
document.body.insertAdjacentHTML("beforeend", detailedlist);
|
||||
document.body.insertAdjacentHTML("beforeend", articles);
|
||||
document.getElementById("xml-feed-container").innerHTML = articles;
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user