Skip to content

Instantly share code, notes, and snippets.

Ivo Lukacovic ilblog

  • Prague
View GitHub Profile
@ilblog
ilblog / README.md
Last active Jun 2, 2020
Create mp4 video from set of images in the browser client side, using ffmpeg.js in worker thread
View README.md
@ilblog
ilblog / fullscreen_controller.js
Created Dec 20, 2017
Microscopic Javascript fullscreen controller
View fullscreen_controller.js
// Fullscreen controller used on www.windy.com
const d = document
, el = $('#fullscreen')
, isFullscreen = () => d.fullscreen || d.webkitIsFullScreen || d.mozFullScreen
, onFullChange = () => el.innerHTML = isFullscreen() ? '' : '-' // Change of icon
d.addEventListener('fullscreenchange', onFullChange )
d.addEventListener('webkitfullscreenchange',onFullChange )
d.addEventListener('webkitfullscreenchange',onFullChange )
d.addEventListener('mozfullscreenchange',onFullChange )
You can’t perform that action at this time.