diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-03-25 22:36:42 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-03-25 22:36:42 -0400 |
commit | 4da506408edc02607ac3827c7c09ab6a6c8cf0b8 (patch) | |
tree | 5c44d3914bd0967e252fd0c2adae331a729ff3b0 /www | |
parent | 1d91a7996a5ade0915cd340c5726baa3c0986e04 (diff) | |
download | html5ks-4da506408edc02607ac3827c7c09ab6a6c8cf0b8.tar.xz html5ks-4da506408edc02607ac3827c7c09ab6a6c8cf0b8.zip |
bleh
Diffstat (limited to 'www')
-rw-r--r-- | www/css/index.css | 2 | ||||
-rw-r--r-- | www/js/api.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/www/css/index.css b/www/css/index.css index f46f79b..bc35230 100644 --- a/www/css/index.css +++ b/www/css/index.css @@ -310,7 +310,7 @@ h2 { background-image: url("../dump/ui/bg-gm.png"); } #context-menu { - background: white no-repeat top center; + background: transparent no-repeat top center; margin-top: -210px; padding-top: 60px; position: absolute; diff --git a/www/js/api.js b/www/js/api.js index 04d8c5a..b8c2f28 100644 --- a/www/js/api.js +++ b/www/js/api.js @@ -56,7 +56,7 @@ window.html5ks.api = { }; setTimeout(function () { - if (el.oncanplaythrough) { + if (el.src && el.oncanplaythrough) { console.warn("video not playing after 3 seconds"); el.oncanplaythrough(); } @@ -161,6 +161,7 @@ window.html5ks.api = { video.volume = html5ks.persistent.musicVolume; var done = function () { video.style.display = "none"; + video.onerror = null; video.src = ""; deferred.resolve(); }; |