Skip to content

Commit

Permalink
move scripts to src
Browse files Browse the repository at this point in the history
  • Loading branch information
Yapper689 committed Jul 7, 2024
1 parent e5ac7e5 commit f97c7bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
</head>
<body>
<svg id="freehand-canvas"><path></path></svg>
<!-- <script src="/src/pages/scripts/draw.js"></script> -->
<script src="https://yapper689.github.io/Draw-App/src/pages/scripts/draw.js"></script>
<script src="/src/scripts/draw.js"></script>
</body>
</html>

Expand Down
3 changes: 1 addition & 2 deletions src/pages/scripts/draw.js → src/scripts/draw.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Shoutout https://codepen.io/bramus/pen/yLXpxRd
// @ref https://github.com/steveruizok/perfect-freehand#rendering

// import { getStroke } from "perfect-freehand";
import { getStroke } from "https://cdn.skypack.dev/perfect-freehand";
import { getStroke } from "perfect-freehand";

if (typeof window !== 'undefined') {
function getSvgPathFromStroke(stroke) {
Expand Down

0 comments on commit f97c7bd

Please sign in to comment.