File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 3333- [ Browsers support] ( #browsers-support )
3434- [ Demo] ( #demo )
3535- [ Installation] ( #installation )
36+ - [ CDN] ( #cdn )
3637- [ Usage] ( #usage )
3738 - [ fireworks-js] ( #fireworks-js )
3839 - [ @fireworks-js/react ] ( #fireworks-jsreact )
@@ -89,6 +90,23 @@ pnpm add fireworks-js
8990| [ @fireworks-js/angular ] ( #fireworks-jsangular ) | [ ![ ] ( https://img.shields.io/npm/v/@fireworks-js/angular.svg )] ( https://npm.im/@fireworks-js/angular ) | Angular component |
9091| [ @fireworks-js/web ] ( #fireworks-jsweb ) | [ ![ ] ( https://img.shields.io/npm/v/@fireworks-js/web.svg )] ( https://npm.im/@fireworks-js/web ) | Web components |
9192
93+ # CDN
94+
95+ ``` html
96+ <!-- jsDelivr -->
97+ <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] /dist/index.umd.js" ></
script >
98+
99+ <!-- UNPKG -->
100+ <
script src =
" https://unpkg.com/[email protected] /dist/index.umd.js" ></
script >
101+
102+ <!-- Usage -->
103+ <script >
104+ const container = document .querySelector (' .fireworks' )
105+ const fireworks = Fireworks .default (container)
106+ fireworks .start ()
107+ </script >
108+ ```
109+
92110## Usage
93111
94112#### [ ` fireworks-js ` ] ( https://github.com/crashmax-dev/fireworks-js/tree/master/examples/basic )
You can’t perform that action at this time.
0 commit comments