updated
This commit is contained in:
parent
16cfc341f5
commit
be7d36956c
|
@ -3,7 +3,7 @@ Module for creating "hot lines"
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
```html
|
```html
|
||||||
<section id="wrap_articles" style="display: flex">
|
<section id="wrap" style="display: flex">
|
||||||
<!-- First element -->
|
<!-- First element -->
|
||||||
<article>
|
<article>
|
||||||
<h3>Place</h3>
|
<h3>Place</h3>
|
||||||
|
@ -23,10 +23,7 @@ import("/js/modules/hotline.mjs").then((module) => {
|
||||||
// Imported the hotline.mjs module
|
// Imported the hotline.mjs module
|
||||||
|
|
||||||
// Initializing an instance of the hotline.mjs
|
// Initializing an instance of the hotline.mjs
|
||||||
const instance = new module.hotline(
|
const instance = new module.hotline(document.getElementById('wrap'));
|
||||||
'articles',
|
|
||||||
document.getElementById('wrap_articles')
|
|
||||||
);
|
|
||||||
|
|
||||||
// Initializing settings of the hotline instance
|
// Initializing settings of the hotline instance
|
||||||
instance.move = false;
|
instance.move = false;
|
||||||
|
|
Loading…
Reference in New Issue