Move all js/css dependencies local to fix further issues(Need to figure a way to remove dependencies all together due to size 5mb page load currently)

This commit is contained in:
Peter Stockings
2023-04-13 21:44:53 +10:00
parent 5aca58fc7f
commit 06a7fbfb4b
8 changed files with 173 additions and 7 deletions

View File

@@ -6,10 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Workout Tracker</title>
<script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
<script src="/static/js/plotly-2.14.0.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tw-elements/dist/css/tw-elements.min.css" />
<script src="https://cdn.tailwindcss.com/3.2.4"></script>
<link href="/static/css/tw-elements.min.css" rel="stylesheet">
<script src="/static/js/tailwindcss@3.2.4.js"></script>
<script>
tailwind.config = {
darkMode: "class",
@@ -25,13 +25,13 @@
},
};
</script>
<script src="https://unpkg.com/htmx.org"></script>
<script src="https://unpkg.com/hyperscript.org"></script>
<script src="https://cdn.jsdelivr.net/npm/tw-elements/dist/js/tw-elements.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="/static/js/htmx.min.js"></script>
<script src="/static/js/hyperscript.min.js"></script>
<script src="/static/js/sweetalert2@11.js"></script>
<link href="/static/css/style.css" rel="stylesheet">
<script src="/static/js/tw-elements.min.js"></script>
<script>
function debounce(func, timeout = 300) {