Improve opendir_image.js.

master
voussoir 2021-07-01 15:55:34 -07:00
parent cc607b5cf8
commit 280ede3db2
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ var has_started = false;
var CSS = ` var CSS = `
body { background-color: #fff; } body { background-color: #fff; }
audio, video { display: block; } audio, video { display: block; }
audio { width: ${audio_width}px; } audio { width: ${audio_width}px; max-width: 100% }
video { height: ${video_height}px; } video { height: ${video_height}px; max-width: 100% }
img { display: block; height: ${image_height}px; max-width: 100%; } img { display: block; height: ${image_height}px; max-width: 100%; }
a { color: #000 !important; } a { color: #000 !important; }
.control_panel { position: relative; background-color: #aaa; min-height: 10px; width: 100%; } .control_panel { position: relative; background-color: #aaa; min-height: 10px; width: 100%; }
@ -145,7 +145,7 @@ function create_odi_div(url)
try try
{ {
var basename = decodeURI(get_basename(url)); var basename = decodeURIComponent(get_basename(url));
} }
catch (exc) catch (exc)
{ {