From b141c3ba988f5012cf667b654fc6db12ab03aa6a Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 3 Mar 2019 20:04:02 -0600 Subject: [PATCH] Step 2 --- js/main.js | 9 +++ views/step2.php | 195 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 204 insertions(+) create mode 100644 views/step2.php diff --git a/js/main.js b/js/main.js index 6766e8b..3bfff6a 100644 --- a/js/main.js +++ b/js/main.js @@ -26,6 +26,15 @@ addEventHandler(document, 'DOMContentLoaded', function () { // Fire update ticket prices on DOM Loaded updateTicketPricesOnDOM(); + addEventHandler(document.getElementById('credit'), 'click', function() { + document.getElementById('checkDetails').style.display = 'none'; + document.getElementById('creditDetails').style.display = ''; + }); + addEventHandler(document.getElementById('check'), 'click', function() { + document.getElementById('checkDetails').style.display = ''; + document.getElementById('creditDetails').style.display = 'none'; + }); + }); function updateTicketPricesOnDOM() { diff --git a/views/step2.php b/views/step2.php new file mode 100644 index 0000000..31acae6 --- /dev/null +++ b/views/step2.php @@ -0,0 +1,195 @@ + +
+
+

+ Your cart +

+
    +
  • +
    +
    Product name
    + Brief description +
    + $12 +
  • +
  • + Total + $20 +
  • +
+ +
+
+

Billing address

+
+
+
+ + +
+ Valid first name is required. +
+
+
+ + +
+ Valid last name is required. +
+
+
+
+ + +
+ Please enter a valid email address. +
+
+
+ + +
+ Please enter your address. +
+
+
+
+ + +
+ City required. +
+
+
+ + + +
+ Please provide a valid state. +
+
+
+ + +
+ Zip code required. +
+
+
+
+ +

Payment

+ +
+
+ + +
+
+ + +
+
+ +
+
+ + + Full name as displayed on card +
+ Name on card is required +
+
+
+ + +
+ Credit card number is required +
+
+
+
+
+ + +
+ Expiration date required +
+
+
+ + +
+ Security code required +
+
+
+
+ +
+
+
\ No newline at end of file