gnomeweb-wml r6320 - trunk/www.gnome.org/projects/chronojump



Author: xaviblas
Date: Thu Sep 18 13:41:37 2008
New Revision: 6320
URL: http://svn.gnome.org/viewvc/gnomeweb-wml?rev=6320&view=rev

Log:
updated .js, store nicer


Modified:
   trunk/www.gnome.org/projects/chronojump/shipping.js
   trunk/www.gnome.org/projects/chronojump/store.html

Modified: trunk/www.gnome.org/projects/chronojump/shipping.js
==============================================================================
--- trunk/www.gnome.org/projects/chronojump/shipping.js	(original)
+++ trunk/www.gnome.org/projects/chronojump/shipping.js	Thu Sep 18 13:41:37 2008
@@ -57,8 +57,11 @@
 	 } else if (form.quantity_pre.value == 2) {
 		 form.os1.value = "2 chronopics"
 		 form.amount.value = 4.4
-	 } else if (form.quantity_pre.value >= 3 && form.quantity_pre.value <= 4) {
-		 form.os1.value = form.quantity.pre.value
+	 } else if (form.quantity_pre.value == 3) {
+		 form.os1.value = "3 chronopics"
+		 form.amount.value = 5.3
+	 } else if (form.quantity_pre.value == 4) { //different than above for the "handling" at end of file
+		 form.os1.value = "4 chronopics"
 		 form.amount.value = 5.3
 	 } else if (form.quantity_pre.value >= 5 && form.quantity_pre.value <= 6) {
 		 form.os1.value = "5-6 chronopics"
@@ -97,8 +100,11 @@
 	 } else if (form.quantity_pre.value == 2) {
 		 form.os1.value = "2 chronopics"
 		 form.amount.value = 7.05
-	 } else if (form.quantity_pre.value >= 3 && form.quantity_pre.value <= 4) {
-		 form.os1.value = "3-4 chronopics"
+	 } else if (form.quantity_pre.value == 3) {
+		 form.os1.value = "3 chronopics"
+		 form.amount.value = 10.2
+	 } else if (form.quantity_pre.value == 4) { //different than above for the "handling" at end of file
+		 form.os1.value = "4 chronopics"
 		 form.amount.value = 10.2
 	 } else if (form.quantity_pre.value >= 5 && form.quantity_pre.value <= 6) {
 		 form.os1.value = "5-6 chronopics"
@@ -136,8 +142,11 @@
 	 } else if (form.quantity_pre.value == 2) {
 		 form.os1.value = "2 chronopics"
 		 form.amount.value = 8.09
-	 } else if (form.quantity_pre.value >= 3 && form.quantity_pre.value <= 4) {
-		 form.os1.value = "3-4 chronopics"
+	 } else if (form.quantity_pre.value == 3) {
+		 form.os1.value = "3 chronopics"
+		 form.amount.value = 12.34
+	 } else if (form.quantity_pre.value == 4) { //different than above for the "handling" at end of file
+		 form.os1.value = "4 chronopics"
 		 form.amount.value = 12.34
 	 } else if (form.quantity_pre.value >= 5 && form.quantity_pre.value <= 6) {
 		 form.os1.value = "5-6 chronopics"
@@ -163,17 +172,24 @@
 	 form.os1.value = form.os1.value + ". Nota: la segÃent columna \"Quantitat\" ha de ser 1"
 }
 
-
 //manage handling
+a = form.amount.value;
+
 if (form.quantity_pre.value == 1) {
-	form.amount.value = form.amount.value + 1.6
+	b = 1.6;
 } else if (form.quantity_pre.value == 2) {
-	form.amount.value += 2.8
+	b = 2.8;
 } else if (form.quantity_pre.value == 3) {
-	form.amount.value += 4
+	b = 4;
 } else {
-	form.amount.value += 5
+	b = 5;
 }  
 
+var a2 = a*1;
+var b2 = b*1;
+
+form.amount.value = (a2+b2);
+
+}
 
 //--------------------------------------------------------------//

Modified: trunk/www.gnome.org/projects/chronojump/store.html
==============================================================================
--- trunk/www.gnome.org/projects/chronojump/store.html	(original)
+++ trunk/www.gnome.org/projects/chronojump/store.html	Thu Sep 18 13:41:37 2008
@@ -14,31 +14,28 @@
   </head>
 
   <body id="page-main" class="with-sidebar">
-    <div align="left">
-      <table width="640" border="0" cellspacing="0" cellpadding="0">
-	<tr><td>
-	    <table width="100%" cellspacing="0" cellpadding="0" border="0">
-	      <tr><td align="left">
-		  <img src="images/store_header.png" alt="logo" width="206" height="90" border="0">
-		  </td><td valign="center" align="left">
-		  <font size=5 color="#444444"><b>Chronopic&nbsp;&nbsp;store</b>
-			  <!-- fun message -->
-			  <!--
-			  <font size="2"><br><br>1,2,3... fun!</font>
-			  <br><font size="1" color="red">check values in input and radio</font>
-			  -->
-			  <font size="1" color="#444444"><br>Chronopic is Chronojump's chronometer<br>This sales are absolutely non-profit</font>
-		  </font>
-		  </td><td valign="center" align="right">
-		  <div id="sidebarStore">
-		    <ul>
-		      <li><a href="store_ca.html">Catal&agrave;</a></li>
-		      <li id="currentLanguage">English</li>
-		      <li><a href="store_es.html">Espa&ntilde;ol</a></li>
-		    </ul>
-		  </div>
-	      </td></tr>
-	    </table>
+	  <div align="left">
+		  <table width="640" border="0" cellspacing="0" cellpadding="0">
+			  <tr><td>
+					  <table width="100%" cellspacing="0" cellpadding="0" border="0">
+						  <tr><td rowspan="2" align="left">
+								  <img src="images/store_header.png" alt="logo" width="206" height="90" border="0">
+								  </td><td valign="center" align="left">
+								  <font size=5 color="#444444"><b>Chronopic&nbsp;&nbsp;store</b>
+								  </font>
+								  </td><td rowspan="2" valign="center" align="right">
+								  <div id="sidebarStore">
+									  <ul>
+										  <li><a href="store_ca.html">Catal&agrave;</a></li>
+										  <li id="currentLanguage">English</li>
+										  <li><a href="store_es.html">Espa&ntilde;ol</a></li>
+									  </ul>
+								  </div>
+						  </td></tr>
+						  <tr><td>
+								  <font size="1" color="#444444">Chronopic is Chronojump's chronometer<br>This sales are absolutely non-profit</font>
+						  </td></tr>
+					  </table>
 	  </td>
 	</tr>
 	<tr valign="top"><th align="left" bgcolor="#e6e6fa"><font color="#444444">&nbsp;1 - Add shipping cost to cart</font> </th></tr>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]