Author: hhubner Date: 2006-02-06 03:42:15 -0600 (Mon, 06 Feb 2006) New Revision: 1822
Modified: trunk/projects/quickhoney/website/static/javascript.js Log: Add explicit cell border (how did this get lost?)
Modified: trunk/projects/quickhoney/website/static/javascript.js =================================================================== --- trunk/projects/quickhoney/website/static/javascript.js 2006-02-01 07:04:35 UTC (rev 1821) +++ trunk/projects/quickhoney/website/static/javascript.js 2006-02-06 09:42:15 UTC (rev 1822) @@ -527,17 +527,17 @@ document.getElementById("path").innerHTML = path_links.join(" / "); }
-/* home image */ +/* home image - called from homeimage.onload */
function home_loaded(image) {
debug('home_loaded - image is ' + image + ' width: ' + image.width);
+ image.style.left = (36 + (648 - image.width) / 2) + 'px'; + image.style.top = (114 + (648 - image.height) / 2) + 'px'; + reveal_image(image);
- document.getElementById("homeimage").style.left = (36 + (648 - image.width) / 2) + 'px'; - document.getElementById("homeimage").style.top = (114 + (648 - image.height) / 2) + 'px'; - if (logged_in) { var current_home_image = image.src.substring(image.src.indexOf('/image/') + 7); if (current_home_image != 'trans') { @@ -744,7 +744,7 @@ thumbnail_html += '<a href="#" onclick="display_image(' + "'" + image.position + "'" + ');">' + '<img class="inherited_image" width="' + cell_width + '" height="' + cell_height + '" ' - + ' src="/image/' + image.name + '/cell,' + background_color + ',' + cell_width + ',' + cell_height + '" ' + + ' src="/image/' + image.name + '/cell,' + background_color + ',' + cell_width + ',' + cell_height + ',8" ' + ' onload="reveal_image(this);" />' + '</a>'; } @@ -876,17 +876,6 @@ detail_window.focus(); }
-/* nice_jobs() is a special form of a subdirectory which does not have a parent directory */ - -function nice_jobs() { - - document.getElementById("clients").style.visibility = 'hidden'; - - current_directory = 'clients'; - current_image = null; - subdirectory('nicejobs'); -} - /* Used from image-detail to load the current image */
function load_image() { @@ -964,7 +953,7 @@ document.getElementById("debugger").style.visibility = 'visible'; document.getElementById("debugger").style.left = '730px'; document.getElementById("debugger").style.width = '400px'; - document.getElementById("debugger").style.heigth = '640px'; + document.getElementById("debugger").style.height = '640px'; } else { document.getElementById("debugger").style.left = "1px"; document.getElementById("debugger").style.right = "1px";