fixing button

This commit is contained in:
Chris Smith
2019-03-05 12:44:32 -06:00
parent 4dd2173947
commit 69ad29c539
4 changed files with 9 additions and 47 deletions

View File

@@ -1,30 +1,6 @@
/**
3/15-3/31 : VIP rate for Current, Alumni Families : $55/ticket , $350/table of 8
4/1-4/30 : Early Bird rate open to all : $65/ticket, $450/table
5/1 - 5/30 : $75/ticket, $500/table
2 bottles of wine at table, dinner, dessert, appetizers
Ticket enhancers : $2/ticket and sold in packs of 10
Drinks - 4 tickets
Egg Pull - 2 tickets
Wine pull - 3 tickets
*/
// Init variables for use below
ticketPrice = 55;
tablePrice = 350;
drinkPrice = 20;
childcarePrice = 25;
cabanaPrice = 250;
// When the DOM is loaded and ready add our handlers
addEventHandler(document, 'DOMContentLoaded', function () {
// Fire update ticket prices on DOM Loaded
updateTicketPricesOnDOM();
addEventHandler(document.getElementById('credit'), 'click', function() {
document.getElementById('checkDetails').style.display = 'none';
@@ -37,18 +13,6 @@ addEventHandler(document, 'DOMContentLoaded', function () {
});
function updateTicketPricesOnDOM() {
document.getElementById('eventTicketPrice').innerHTML = ticketPrice;
document.getElementById('eventTicketPrice2').innerHTML = ticketPrice;
document.getElementById('ticketEnhancerPrice').innerHTML = drinkPrice;
document.getElementById('ticketEnhancerPrice2').innerHTML = drinkPrice;
document.getElementById('tablePrice').innerHTML = tablePrice;
document.getElementById('tablePrice2').innerHTML = tablePrice;
document.getElementById('childcarePrice').innerHTML = childcarePrice;
document.getElementById('cabanaPrice').innerHTML = cabanaPrice;
}
/**
* Add event handler to DOM event
* @param element

View File

@@ -5,12 +5,7 @@
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="/js/main.js"></script>
<script>
// Example starter JavaScript for disabling form submissions if there are invalid fields

View File

@@ -44,8 +44,11 @@
<div class="website">
<div class="gridStyle container">
<div class="pad-25-top pad-15-left">
<a href="/" class="btn-primary btn">Home</a>
</div>
<div class="py-5 text-center">
<h4 class="pad-25-top">Nature's Classroom Institute & Montessori School Presents</h4>
<h4>Nature's Classroom Institute & Montessori School Presents</h4>
<img src="/images/logo.png" alt="Dinner in the Woods Event Logo">
<h1>Dinner in the Woods</h1>
<h5>Live Music · Local Food · Live & Silent Auction · Cabanas</h5>

View File

@@ -144,12 +144,12 @@
<div class="d-block my-3">
<div class="custom-control custom-radio">
<input id="credit" name="paymentMethod" type="radio" class="custom-control-input" value="0" checked required>
<label class="custom-control-label" for="credit">Credit card</label>
<input id="credit" name="paymentMethod" type="radio" value="0" checked required>
<label for="credit">Credit card</label>
</div>
<div class="custom-control custom-radio">
<input id="check" name="paymentMethod" type="radio" class="custom-control-input" value="1" required>
<label class="custom-control-label" for="debit">Check/Cash</label>
<input id="check" name="paymentMethod" type="radio" value="1" required>
<label for="debit">Check/Cash</label>
</div>
</div>
<div class="row" id="checkDetails" style="display: none">