()
| 234 | // hideControls hides the video controls when not in use |
| 235 | // if the video is paused, the controls must remain visible |
| 236 | function hideControls() { |
| 237 | if (video.paused) { |
| 238 | return; |
| 239 | } |
| 240 | |
| 241 | videoControls.classList.add('hide'); |
| 242 | } |
| 243 | |
| 244 | // showControls displays the video controls |
| 245 | function showControls() { |