summaryrefslogtreecommitdiffstats
path: root/assets/js (follow)
AgeCommit message (Collapse)Author
2019-10-18Fix comment event listenerOmar Roth
2019-10-15Add support for custom playlistsOmar Roth
2019-10-14Remove invalid source map directive for videojs-quality-selectorOmar Roth
2019-09-26Update silvermine quality selectorOmar Roth
2019-09-21Update videojs-quality-selectorOmar Roth
2019-08-27Bump JS/CSS dependenciesOmar Roth
2019-08-18js: add support to detect alt, meta and control key in keydown handler (#704)leonklingele
This fixes a quite severe user experience issue where pressing the 'alt', 'meta' and/or 'ctrl' key along with one of the supported keys (e.g. 'f' to enter video fullscreen mode) would overwrite the default browser behavior. In the case of 'f+meta' we would enter fullscreen mode, and not open the browser search panel as one might expect. This change is required to stay consistent with the way YouTube handles keydown events.
2019-08-16js: add support for keydown events (#678)leonklingele
* js: add support for keydown events This will modify the player behavior even if the player element is unfocused. Based on the YouTube key bindings, allow to - toggle playback with space and 'k' key - increase and decrease player volume with up / down arrow key - mute and unmute player with 'm' key - jump forwards and backwards by 5 seconds with right / left arrow key - jump forwards and backwards by 10 seconds with 'l' / 'j' key - set video progress with number keys 0–9 - toggle captions with 'c' key - toggle fullscreen mode with 'f' key - play next video with 'N' key - increase and decrease playback speed with '>' / '<' key * js: remove unused dependency 'videojs.hotkeys.min.js' Support for controlling the player volume by scrolling over it is still retained by copying over the relevant code part from the aforementioned library.
2019-08-15Add prefers-color-scheme support (#601)psvenk
* Add prefers-color-scheme support This should fix <https://github.com/omarroth/invidious/issues/559>. The cookie storage format has been changed from boolean ("true"/"false") to tri-state ("dark"/"light"/""), so that users without a cookie set will get dark mode if they have enabled the dark theme in their operating system. The code for handling the cookie state, along with the user's operating system theme, has been factored out into a new function `update_mode`, which is called both at window load and at the "storage" event listener, because the "storage" event listener is only trigerred when a change is made to the localStorage from another tab/window (for more info - see <https://stackoverflow.com/a/4679754>).
2019-08-09Update videojs-http-source-selectorOmar Roth
2019-07-20Remove default arguments from function definitionsOmar Roth
2019-07-14Add '1.75' playback speedOmar Roth
2019-07-09Add community pageOmar Roth
2019-06-22Prevent firing _onStreamProgress after abortingOmar Roth
2019-06-16Fix event listener for notifications.jsOmar Roth
2019-06-16Optimize get_subscriptions AJAXOmar Roth
2019-06-16Add target="_blank" to embed titlesOmar Roth
2019-06-16Fix title URL for embedded videosOmar Roth
2019-06-16Fix typo in notifications.jsOmar Roth
2019-06-16Shorten timeout for AJAXOmar Roth
2019-06-16Add clickable title for embedded videosOmar Roth
2019-06-15Fix retry on timeout for AJAX requestsOmar Roth
2019-06-08Add title overlay to embedded videosOmar Roth
2019-06-08Add premiere date to watch pageOmar Roth
2019-06-07Minor refactorOmar Roth
2019-06-05Use short URL for sharing videosOmar Roth
2019-06-01Only add notification event listener after onloadOmar Roth
2019-06-01Add support for Web notificationsOmar Roth
2019-05-29Add 'comments' as URL parameterOmar Roth
2019-05-27Update videojs-vtt-thumbnails versionOmar Roth
2019-05-27Add "local" to "next video" URLsOmar Roth
2019-05-20Reset playbackRate once player has caught up to sourceOmar Roth
2019-05-16Refactor watched_widget.jsOmar Roth
2019-05-14Fix comments for age-restricted videosOmar Roth
2019-05-09Add option to toggle theme without reloadOmar Roth
2019-05-09Fix typo in player.jsOmar Roth
2019-05-08Remove referer from XHROmar Roth
2019-05-06Refactor player.jsOmar Roth
2019-05-06Refactor embed.jsOmar Roth
2019-05-06Refactor watch.jsOmar Roth
2019-05-05Remove source map URL from videojs.hotkeys.min.jsOmar Roth
2019-05-05Refactor subscribe_widgetOmar Roth
2019-05-04Add mouse hover for video previewsOmar Roth
2019-05-02Add video previewsOmar Roth
2019-05-01Minor formatting changesOmar Roth
2019-05-01Update source and licensesOmar Roth
2019-04-30Add annotation playerglmdgrielson
This addresses issue #110 from master. Yay for adding annotations back!
2019-04-28Add http-source-selectorOmar Roth
2019-04-24Update videojs-shareOmar Roth
2019-04-12Fix share buttonOmar Roth