@@ -2,15 +2,15 @@ import {load} from './video.js';
22let videoElement = document . getElementById ( 'background' ) ;
33
44// create elements
5- let overlay_container = document . createElement ( 'div' ) ;
5+ let overlayContainer = document . createElement ( 'div' ) ;
66let overlay_box = document . createElement ( 'div' ) ;
77let fullscreen = document . createElement ( 'span' ) ;
88let stop = document . createElement ( 'span' ) ;
99let next = document . createElement ( 'span' ) ;
1010let nowplaying = document . createElement ( 'span' ) ;
1111
1212// set attributes
13- overlay_container . setAttribute ( 'id' , 'overlay-container' ) ;
13+ overlayContainer . setAttribute ( 'id' , 'overlay-container' ) ;
1414overlay_box . setAttribute ( 'id' , 'overlay-box' ) ;
1515fullscreen . setAttribute ( 'id' , 'bg-fullscreen' ) ;
1616stop . setAttribute ( 'id' , 'bg-stop' ) ;
@@ -34,18 +34,18 @@ fullscreen.addEventListener('click', () => {
3434 videoElement . classList . remove ( 'fullscreen' ) ;
3535 fullscreen . classList . remove ( 'active' ) ;
3636 overlay_box . classList . remove ( 'active' ) ;
37- overlay_container . style . zIndex = '2' ;
37+ overlayContainer . style . zIndex = '2' ;
3838 } else {
3939 videoElement . classList . add ( 'fullscreen' ) ;
4040 fullscreen . classList . add ( 'active' ) ;
4141 overlay_box . classList . add ( 'active' ) ;
42- overlay_container . style . zIndex = '4' ;
42+ overlayContainer . style . zIndex = '4' ;
4343 }
4444} ) ;
4545
4646stop . addEventListener ( 'click' , ( ) => {
4747 videoElement . remove ( ) ;
48- overlay_container . remove ( ) ;
48+ overlayContainer . remove ( ) ;
4949} ) ;
5050
5151next . addEventListener ( 'click' , ( ) => {
@@ -56,6 +56,6 @@ next.addEventListener('click', () => {
5656overlay_box . appendChild ( fullscreen ) ;
5757overlay_box . appendChild ( stop ) ;
5858overlay_box . appendChild ( next ) ;
59- overlay_container . appendChild ( overlay_box ) ;
60- overlay_container . appendChild ( nowplaying ) ;
61- document . body . appendChild ( overlay_container ) ;
59+ overlayContainer . appendChild ( overlay_box ) ;
60+ overlayContainer . appendChild ( nowplaying ) ;
61+ document . body . appendChild ( overlayContainer ) ;
0 commit comments