File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed
Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 2828
2929Now you can add the javascript bundle and css bundle to your web page either directly or through
3030 an import with Webpack or native ECMAscript modules and CSS modules.
31-
32- If you want to include it into CSS directly, follow this minimal example:
33-
34-
35- ```
36- <!doctype html>
37- <html lang="en">
38- <head>
39- <meta charset="utf-8" />
40- <title>Your page</title>
41- </head>
42- <body class="level2">
43- <script src="node_modules/@rnacentral/rnacentral-sequence-search-embed/dist/rnacentral-sequence-search.js"></script>
44- <rnacentral-sequence-search databases='["mirbase"]'/>
45- </body>
46- </html>
47- ```
48-
49- Note that we import the javascript bundle in ` <body> ` and css bundle
50- in ` <head> ` .
5131
52- Also take note, how we initialize the plugin with ` ReactDOM.render `
53- and tell it to render the plugin into ` 'div#sequence-search' ` element,
54- of the page above.
32+ For a minimal example, see [ index.html] ( ./index.html ) .
5533
5634Javascript bundle is wrapped into a UMD wrapper and should be safe
5735to use with ECMAscript modules and AMD/Require.js. CSS bundle is
You can’t perform that action at this time.
0 commit comments