Skip to content

Commit

Permalink
Added favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-harding committed Oct 8, 2024
1 parent 2b6ee6b commit 1421ed4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
- [ ] Update readme for API updates
- [ ] Favicon
- [ ] Touch support
- [ ] Title gradient
- [ ] Animation
Expand Down
8 changes: 8 additions & 0 deletions demo/assets/js/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ async function loadPaintWorklet() {
register("https://unpkg.com/[email protected]/worklet.min.js");
createCustomElement("th-squircle");
}

import { path } from "https://unpkg.com/superellipse-squircle@latest/index.min.js";

window.addEventListener("load", () => {
const svg = document.getElementById("arst");
const d = path(0, 0, 16, 16, 6);
console.log(d);
});
11 changes: 11 additions & 0 deletions demo/assets/svg/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="{{ '/assets/svg/favicon.svg' | relative_url }}" />

<script type="module">
import("{{ '/assets/js/loading.js' | relative_url }}").then(({ load }) =>
Expand Down

0 comments on commit 1421ed4

Please sign in to comment.