Skip to content

Commit

Permalink
Linked assets to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-harding committed Oct 5, 2024
1 parent 95f7023 commit 11dda26
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions demo/assets/js/demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// TODO: Need to bundle paint function into worklet file to avoid CORS issues

function main() {
console.log("Hello");
}

main();
11 changes: 11 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script
src="https://unpkg.com/[email protected]/worklet.min.js"
type="module"
async
></script>
<script
src="{{ '/assets/js/demo.js' | relative_url }}"
type="module"
async
></script>
<link href="https://unpkg.com/[email protected]/index.css" />
<link
rel="stylesheet"
href="{{ '/assets/css/style.css' | relative_url }}"
Expand Down

0 comments on commit 11dda26

Please sign in to comment.