return [ 80, 64 ];
}
-function display_image(width, height, evt, filename, element_id)
+function replace_image_element(url, element_id, parent_node)
{
- var url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "/" + global_infobox + filename;
var img = document.getElementById(element_id);
if (img !== null) {
img.src = "data:";
img.src = url;
}
+ parent_node.appendChild(img);
+ return img;
+}
+
+function display_image(width, height, evt, filename, element_id)
+{
+ var url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "/nobox/" + filename;
var main = document.getElementById("iehack");
- main.appendChild(img);
+ var img = replace_image_element(url, element_id, main);
+
+ if (global_infobox != 'nobox') {
+ var url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "/box/" + filename;
+ var boximg = replace_image_element(url, element_id + "_box", main);
+
+ boximg.style.position = "absolute";
+ boximg.style.left = "0px";
+ boximg.style.bottom = "-1px";
+ }
return img;
}
# We don't care about @otherres since each of these images are
# already pretty cheap to generate, but we need the exact width so we can make
# one in the right size.
- $r->log->warn("BOX: $infobox");
if ($infobox eq 'box') {
my ($img, $width, $height);