fixing button
This commit is contained in:
36
js/main.js
36
js/main.js
@@ -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
|
// When the DOM is loaded and ready add our handlers
|
||||||
addEventHandler(document, 'DOMContentLoaded', function () {
|
addEventHandler(document, 'DOMContentLoaded', function () {
|
||||||
// Fire update ticket prices on DOM Loaded
|
|
||||||
updateTicketPricesOnDOM();
|
|
||||||
|
|
||||||
addEventHandler(document.getElementById('credit'), 'click', function() {
|
addEventHandler(document.getElementById('credit'), 'click', function() {
|
||||||
document.getElementById('checkDetails').style.display = 'none';
|
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
|
* Add event handler to DOM event
|
||||||
* @param element
|
* @param element
|
||||||
|
|||||||
@@ -5,12 +5,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</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 src="/js/main.js"></script>
|
||||||
<script>
|
<script>
|
||||||
// Example starter JavaScript for disabling form submissions if there are invalid fields
|
// Example starter JavaScript for disabling form submissions if there are invalid fields
|
||||||
|
|||||||
@@ -44,8 +44,11 @@
|
|||||||
|
|
||||||
<div class="website">
|
<div class="website">
|
||||||
<div class="gridStyle container">
|
<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">
|
<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">
|
<img src="/images/logo.png" alt="Dinner in the Woods Event Logo">
|
||||||
<h1>Dinner in the Woods</h1>
|
<h1>Dinner in the Woods</h1>
|
||||||
<h5>Live Music · Local Food · Live & Silent Auction · Cabanas</h5>
|
<h5>Live Music · Local Food · Live & Silent Auction · Cabanas</h5>
|
||||||
|
|||||||
@@ -144,12 +144,12 @@
|
|||||||
|
|
||||||
<div class="d-block my-3">
|
<div class="d-block my-3">
|
||||||
<div class="custom-control custom-radio">
|
<div class="custom-control custom-radio">
|
||||||
<input id="credit" name="paymentMethod" type="radio" class="custom-control-input" value="0" checked required>
|
<input id="credit" name="paymentMethod" type="radio" value="0" checked required>
|
||||||
<label class="custom-control-label" for="credit">Credit card</label>
|
<label for="credit">Credit card</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="custom-control custom-radio">
|
<div class="custom-control custom-radio">
|
||||||
<input id="check" name="paymentMethod" type="radio" class="custom-control-input" value="1" required>
|
<input id="check" name="paymentMethod" type="radio" value="1" required>
|
||||||
<label class="custom-control-label" for="debit">Check/Cash</label>
|
<label for="debit">Check/Cash</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" id="checkDetails" style="display: none">
|
<div class="row" id="checkDetails" style="display: none">
|
||||||
|
|||||||
Reference in New Issue
Block a user