Is Svelte a requrement? #93
-
The Read me does not mention or give an example of using this with a regular HTML page, is this possible? To clarify, I want to use the downloaded source to load the library from a local directory. The browser example only shows the CDN option. Which files do I load locally and in what order? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No, Svelte is not a requirement. You can use the library in any JS application. A browser version is available in the @event-calendar/build npm package. The CDN in fact takes the files from this package. Therefore, you can simply download the necessary js and css files from these links: https://cdn.jsdelivr.net/npm/@event-calendar/build/event-calendar.min.js and use them as follows (let's assume you put the files in the <link rel="stylesheet" href="/assets/event-calendar.min.css">
<script src="/assets/event-calendar.min.js"></script> |
Beta Was this translation helpful? Give feedback.
No, Svelte is not a requirement. You can use the library in any JS application.
A browser version is available in the @event-calendar/build npm package. The CDN in fact takes the files from this package. Therefore, you can simply download the necessary js and css files from these links:
https://cdn.jsdelivr.net/npm/@event-calendar/build/event-calendar.min.js
https://cdn.jsdelivr.net/npm/@event-calendar/build/event-calendar.min.css
and use them as follows (let's assume you put the files in the
assets
folder at the root of your webserver):