tixstar-tickets

Tixstar Tickets .btn-register-continue { border-radius: 4px; margin: 15px auto auto auto; width: 150px; height: 35px; font-size: 14px; padding-top: 5px; color: #fff; float: none; border: 1px solid #404040; background: #636363; background: -moz-linear-gradient(top, #636363 0%, #4d4d4d 100%); background: -webkit-linear-gradient(top, #636363 0%,#4d4d4d 100%); background: linear-gradient(to bottom, #636363 0%,#4d4d4d 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#636363', endColorstr='#4d4d4d',GradientType=0 ); } window.jQuery || document.write('<script src="http://growyourbusiness.com.au/javascripts/jquery.1.11.3.min.js"><\/script>') $(function() { // get ticket quantities var ticketQuantity = parseInt(getUrlParameter('quantity')); ticketQuantities = ticketQuantity + 1; var html = ''; for(var i=1; i < ticketQuantities; i++) { html = '<div class="container" style="margin: 15px auto;">' + '<div class="col-xs-12">' + '<strong>TICKET '+i+'/'+ticketQuantity+'</strong>' + '</div>' + '</div>' + '<div class="ticket-details container" style="background-color: #fff; padding: 15px 0;">' + '<div class="col-xs-12">' + '<div>' + '<label for="" style="text-align:left;">First Name</label>' + '<input class="required form-control fld-first-name-'+i+'" name="fld-first-name-'+i+'"></input>' + '</div>' + '<div>' + '<label for="" style="text-align:left;">Last Name</label>' + '<input class="required form-control fld-last-name-'+i+'" name="fld-last-name-'+i+'"></input>' + '</div>' + '<div>' + '<label for="" style="text-align:left;">Email Address</label>' + '<input class="required form-control fld-email-'+i+'" name="fld-email-'+i+'"></input>' + '</div>' + '</div>' + '</div>'; $('.ticket-form-container').append(html); html = ''; } }); function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++) { sParameterName = sURLVariables[i].split('='); if (sParameterName[0] === sParam) { return sParameterName[1] === undefined ? true : sParameterName[1]; } } } a.menu-item { background-color:transparent; }
ID: 10000398
Shane Delia Experience @ MAHA
PRIVATE DINING HOSTED BY SHANE DELIA, 6-COURSE MENU WITH MATCHING WINES - SHANE DELIA EXPERIENCE
Mon 9 May 2016 6:00 pm - Mon 9 May 2016 10:00 pm
Register
$(function() { // event register $('#btn-event-register').on('click', function() { // form validation var error = 0; $('.required').each(function(index) { // empty fields if($(this).val() == '') { error++; notify('Please fill all fields.', 'error'); return false; } }); // if no errors if(error < 1) { var attendees = []; var form = new FormData(); $('.ticket-details').each(function(index) { attendees.push({ FirstName : $('.fld-first-name-'+(index + 1)).val(), LastName : $('.fld-last-name-'+(index + 1)).val(), Email : $('.fld-email-'+(index + 1)).val() }); }); form.append("attendees", JSON.stringify(attendees)); form.append("event-title", $('.event-title').html()); form.append("event-detail", $('.event-detail').html()); form.append("event-time", $('.event-time').html()); form.append("user-id", getCookie('userId')); var settings = { "async": true, "crossDomain": true, "url": "http://www.growyourbusiness.com.au/php/api-ticket-registration.php", "method": "POST", "processData": false, "contentType": false, "mimeType": "multipart/form-data", "data": form } $.ajax(settings).done(function(response) { console.log(response); $('#modal-congratulation').modal('show'); }); } }); // user logout $('.user-logout').on('click', function() { window.location = "http://www.growyourbusiness.com.au/staging_2016/register"; deleteCookie('isLogged'); deleteCookie('userId'); deleteCookie('userName'); }); function deleteCookie(name) { document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; } }); function notify(message, type) { noty({ text : message, type : type, animation: { open: 'animated bounceInDown', close: 'animated bounceOutUp', easing: 'swing', speed: 500 } }); }