[bknr-cvs] r1902 - trunk/projects/quickhoney/website/static
bknr at bknr.net
bknr at bknr.net
Tue Mar 7 19:42:40 UTC 2006
Author: hhubner
Date: 2006-03-07 14:42:39 -0500 (Tue, 07 Mar 2006)
New Revision: 1902
Modified:
trunk/projects/quickhoney/website/static/javascript.js
Log:
Recover "nice_jobs" and some other changes that got lost somewhere.
Modified: trunk/projects/quickhoney/website/static/javascript.js
===================================================================
--- trunk/projects/quickhoney/website/static/javascript.js 2006-03-07 19:33:03 UTC (rev 1901)
+++ trunk/projects/quickhoney/website/static/javascript.js 2006-03-07 19:42:39 UTC (rev 1902)
@@ -527,17 +527,17 @@
document.getElementById("path").innerHTML = path_links.join(" / ");
}
-/* home image - called from homeimage.onload */
+/* home image */
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 + ',8" '
+ + ' src="/image/' + image.name + '/cell,' + background_color + ',' + cell_width + ',' + cell_height + '" '
+ ' onload="reveal_image(this);" />'
+ '</a>';
}
@@ -876,6 +876,17 @@
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() {
@@ -953,7 +964,7 @@
document.getElementById("debugger").style.visibility = 'visible';
document.getElementById("debugger").style.left = '730px';
document.getElementById("debugger").style.width = '400px';
- document.getElementById("debugger").style.height = '640px';
+ document.getElementById("debugger").style.heigth = '640px';
} else {
document.getElementById("debugger").style.left = "1px";
document.getElementById("debugger").style.right = "1px";
More information about the Bknr-cvs
mailing list