mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Improved mobile and desktop
- Showing correct button on mobile - Showing and hiding player-element on play/pause on mobile - Improved playback on desktop, not stopping videoes if they're skipped while one is loading/buffering - Small player visual-fixes on mobile
This commit is contained in:
@@ -9,6 +9,7 @@ var socket_connected = false;
|
||||
var dynamicListeners = {};
|
||||
var player_ready = false;
|
||||
var previousSoundcloud;
|
||||
var buffering = false;
|
||||
var empty_clear = false;
|
||||
var fix_too_far = false;
|
||||
var beginning = false;
|
||||
@@ -79,10 +80,8 @@ function receiveMessage(event) {
|
||||
|
||||
window.addEventListener("message", receiveMessage, false);
|
||||
window.addEventListener("DOMContentLoaded", function() {
|
||||
console.log("Loaded DOMContent");
|
||||
})
|
||||
window.addEventListener("load", function() {
|
||||
console.log("Window loaded");
|
||||
if(hash.length >= 3 && hash[2] == "autoplay"){
|
||||
autoplay = true;
|
||||
Helper.css("#player", "visibility", "hidden");
|
||||
|
||||
Reference in New Issue
Block a user