diff --git a/src/_h5ai/public/css/lib/ext/preview.less b/src/_h5ai/public/css/lib/ext/preview.less index 930ca5cf..aa4fd1e6 100644 --- a/src/_h5ai/public/css/lib/ext/preview.less +++ b/src/_h5ai/public/css/lib/ext/preview.less @@ -1,5 +1,4 @@ #pv-overlay { - display: none; position: fixed; left: 0; top: 0; diff --git a/src/_h5ai/public/js/lib/ext/preview-aud.js b/src/_h5ai/public/js/lib/ext/preview-aud.js index 3878fa9d..5d76b9f1 100644 --- a/src/_h5ai/public/js/lib/ext/preview-aud.js +++ b/src/_h5ai/public/js/lib/ext/preview-aud.js @@ -1,5 +1,5 @@ -const {each, map, includes, compact} = require('../util'); -const {win, jq} = require('../globals'); +const {each, includes, compact, dom} = require('../util'); +const {win} = require('../globals'); const event = require('../core/event'); const format = require('../core/format'); const allsettings = require('../core/settings'); @@ -10,30 +10,32 @@ const settings = Object.assign({ types: [] }, allsettings['preview-aud']); -function preloadAudio(src, callback) { - const $audio = jq('