Compare commits
2 commits
a49f96f827
...
4b4b91a30a
| Author | SHA1 | Date | |
|---|---|---|---|
| 4b4b91a30a | |||
| b61db22369 |
6 changed files with 34 additions and 7 deletions
|
|
@ -68,13 +68,14 @@ function bondageItemsToUl(items) {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} position
|
||||
* @returns {Promise<HTMLElement>}
|
||||
*/
|
||||
async function generateGearListArticle() {
|
||||
async function generateGearListArticle(position) {
|
||||
let list = await getGearList();
|
||||
|
||||
let bondageItems = document.createElement("article");
|
||||
bondageItems.setAttribute("id", "gl-body");
|
||||
bondageItems.setAttribute("id", position);
|
||||
let heading = document.createElement("h2");
|
||||
heading.textContent = "Gear List";
|
||||
bondageItems.appendChild(heading);
|
||||
|
|
@ -111,5 +112,5 @@ function buildSection(items) {
|
|||
export async function attachGearList(position) {
|
||||
document
|
||||
.getElementById(position)
|
||||
.replaceWith(await generateGearListArticle());
|
||||
.replaceWith(await generateGearListArticle(position));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
</head>
|
||||
<body>
|
||||
<header id="hd-box"></header>
|
||||
This will be my gear
|
||||
<article id="gl-body"></article>
|
||||
<article id="main"></article>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { loadHTML } from "/global/loadin.mjs";
|
|||
|
||||
export function loadDependencies() {
|
||||
loadHTML("hd-box", "/header/header.html");
|
||||
attachGearList("gl-body");
|
||||
attachGearList("main");
|
||||
}
|
||||
|
||||
loadDependencies();
|
||||
|
|
|
|||
|
|
@ -7,4 +7,24 @@ body {
|
|||
font-style: normal;
|
||||
font-variation-settings: "wdth" 100;
|
||||
font-size: 16pt;
|
||||
margin: 0;
|
||||
min-height: 100svh;
|
||||
height: 100svh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
background-color: #1e2030;
|
||||
color: #cad3f5;
|
||||
}
|
||||
|
||||
#main {
|
||||
max-width: 40rem;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0.25rem;
|
||||
margin-top: 0;
|
||||
padding: 0.25rem;
|
||||
border-left: solid 2px #c6a0f6;
|
||||
border-right: solid 2px #c6a0f6;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,9 +10,11 @@ header {
|
|||
width: calc(100% - 1.5rem);
|
||||
|
||||
margin-bottom: 0.25rem;
|
||||
margin-top: 0.5rem;
|
||||
padding: 0.5rem;
|
||||
border-width: 3px;
|
||||
border-style: solid;
|
||||
border-color: #c6a0f6;
|
||||
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
|
@ -41,4 +43,9 @@ header {
|
|||
width: 2rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #cad3f5;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,6 @@
|
|||
</p>
|
||||
<![endif]-->
|
||||
<header id="hd-box"></header>
|
||||
Look ma, I'm horny!
|
||||
<article id="main">Look ma, I'm horny!</article>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue