diff options
Diffstat (limited to 'media/js/slideshow.js')
-rw-r--r-- | media/js/slideshow.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/media/js/slideshow.js b/media/js/slideshow.js index b8c1921..32e262f 100644 --- a/media/js/slideshow.js +++ b/media/js/slideshow.js @@ -45,14 +45,14 @@ function create_map(obj) { imgid = obj.title.split(',')[2]; //create container divs $('<div class="map-container" id="mc-'+imgid+'">').insertBefore($(obj).parent().parent()); - //$(obj).parent().parent().parent().append('<div id="map-container">'); + //$(obj).parent().parent().parent().prepend('<div class="map-container" id="mc-'+imgid+'">'); $('#mc-'+imgid).append('<div class="map-wrapper" id="mw-'+imgid+'">'); //deal with the variable height of div.legend - //$('#map-container').css({ - // bottom: function(index, value) { - // return parseFloat($(obj).parent().parent().height())-2; - // } - //}); + $('#mc-'+imgid).css({ + bottom: function(index, value) { + return parseFloat($(obj).parent().parent().height())+20; + } + }); mapit(obj.title); } |