refactor main.js into smaller pieces, and moved navbar.js to assets
This commit is contained in:
parent
fd8eeb3330
commit
177dffe553
19 changed files with 214 additions and 207 deletions
5
assets/scripts/features/videoplayer/plyr.js
Normal file
5
assets/scripts/features/videoplayer/plyr.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import Plyr from 'plyr';
|
||||
import { videoplayer } from '@params';
|
||||
|
||||
const { plyr: options } = videoplayer;
|
||||
window.addEventListener('DOMContentLoaded', () => Plyr.setup('.js-player', options));
|
Loading…
Add table
Add a link
Reference in a new issue