[bknr-cvs] hans changed trunk/projects/quickhoney/website/
BKNR Commits
bknr at bknr.net
Sat Jul 26 22:06:44 UTC 2008
Revision: 3649
Author: hans
URL: http://bknr.net/trac/changeset/3649
Work on shopping cart page, fix shop page a little
U trunk/projects/quickhoney/website/static/javascript.js
U trunk/projects/quickhoney/website/static/styles.css
U trunk/projects/quickhoney/website/templates/index.xml
Modified: trunk/projects/quickhoney/website/static/javascript.js
===================================================================
--- trunk/projects/quickhoney/website/static/javascript.js 2008-07-26 22:06:02 UTC (rev 3648)
+++ trunk/projects/quickhoney/website/static/javascript.js 2008-07-26 22:06:44 UTC (rev 3649)
@@ -432,12 +432,20 @@
});
pages['shop']
- = new Page(['shop_page'],
+ = new Page(['results'],
['000000', 'ffffff', '0054ff'],
function() {
footer_hide();
});
+pages['cart']
+ = new Page(['cart_page'],
+ ['000000', 'ffffff', '0054ff'],
+ function() {
+ show_shopping_cart();
+ footer_hide();
+ });
+
pages['contact']
= new Page(['contact_page'],
['000000', 'ffffff', 'ffa200'],
@@ -1302,6 +1310,12 @@
}
}
+function show_shopping_cart ()
+{
+ $('menu').className = 'shop';
+ document.body.className = 'shop';
+}
+
function recolored_image_path(name)
{
return '/image/' + name + '/color,ff00ff,' + pages[current_directory].colors[2];
Modified: trunk/projects/quickhoney/website/static/styles.css
===================================================================
--- trunk/projects/quickhoney/website/static/styles.css 2008-07-26 22:06:02 UTC (rev 3648)
+++ trunk/projects/quickhoney/website/static/styles.css 2008-07-26 22:06:44 UTC (rev 3649)
@@ -25,6 +25,8 @@
margin: 0px;
}
+a img { border-width: 0px; }
+
.cmslink {
background-color: #bfbfbf;
color: #000000;
@@ -617,7 +619,7 @@
padding-top: 16px;
}
-img#checkout {
+a#checkout {
position: absolute;
top: 0px;
left: 585px;
Modified: trunk/projects/quickhoney/website/templates/index.xml
===================================================================
--- trunk/projects/quickhoney/website/templates/index.xml 2008-07-26 22:06:02 UTC (rev 3648)
+++ trunk/projects/quickhoney/website/templates/index.xml 2008-07-26 22:06:44 UTC (rev 3649)
@@ -23,7 +23,7 @@
<div id="overlay">
</div>
- <img id="checkout" src="/image/checkout" width="112" height="24"/>
+ <a id="checkout" href="#cart" onclick="show_page('cart');"><img src="/image/checkout" width="112" height="24"/></a>
<div id="menu">
<a onclick="show_page('home')" href="#home" id="m_home">
@@ -150,11 +150,8 @@
</div>
</p>
</div>
-
- <div id="shop_page">
- <img id="shop-type" src="/image/type-shop" />
- <p id="shop_content">
- </p>
+
+ <div id="cart_page">
</div>
<div id="contact_page">
More information about the Bknr-cvs
mailing list