Improve opendir_image.js.
This commit is contained in:
parent
cc607b5cf8
commit
280ede3db2
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue