Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Generate static content (without deploying)
on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
# Single deploy job since we're just deploying
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true

- uses: denoland/setup-deno@v2
with:
deno-version: v2.x.x

- run: deno run --allow-all index.ts
4 changes: 2 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
with:
lfs: true

- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x.x
deno-version: v2.x.x

- run: deno run --allow-all index.ts

Expand Down
160 changes: 0 additions & 160 deletions credits.old.js

This file was deleted.

5 changes: 5 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"imports": {
"@std/path": "jsr:@std/path@^1.1.6"
}
}
23 changes: 23 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 12 additions & 9 deletions footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,23 @@
console.log('Copied to clipboard;\n', content)
alert('Coped HTML to clipboard')
}
catch (except){}
catch (except) {
console.error('failed to copy content to clipboard', {
error: except,
content
});
}
}
document.addEventListener('click', (e) =>
{
if (e.target.localName == "img")
if (e.target.localName !== "img") return;
let targetContent = `<img src="${encodeURI(e.target.src)}" height="31" />`;
if (e.target.attributes.targetLink != undefined)
{
let targetContent = `<img src="${e.target.src}" height="31" />`
if (e.target.attributes.targetLink != undefined)
{
targetContent = `<a href="${e.target.attributes.targetLink.value}">${targetContent}</a>`
}
clipboardCopy(targetContent)
e.preventDefault()
targetContent = `<a href="${encodeURI(e.target.attributes.targetLink.value)}">${targetContent}</a>`;
}
clipboardCopy(targetContent);
e.preventDefault();
})
</script>
</body>
Expand Down
90 changes: 0 additions & 90 deletions generate.js

This file was deleted.

34 changes: 0 additions & 34 deletions groups.old.js

This file was deleted.

2 changes: 1 addition & 1 deletion header.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
transition: 100ms;
}
body {
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #333;
color: #e9e9e9;
}
Expand Down
Loading
Loading