Registration Form

Registration form



Total Payment

Hello, If you encounter any issues during the registration process, we kindly suggest clearing your browser's cache and cookies. Alternatively, feel free to contact us for assistance at otcybersummit@getvfairs.io. We're here to help!

'; if (flag == 1) { $('.package_addon_price').text(price); $('.pmnt_fld').parent('div').parent('div').before(selected); // $(this).parent('div').parent('span').append(selected); var total_price = parseInt(price); $('.pmnt_fld').parent('div').parent('div').before('
Amount: ' + symbol + '' + price + '
'); $('.pmnt_fld').parent('div').parent('div').before('
Total : ' + symbol + '' + total_price + '
'); // $(this).parent('div').parent('span').append('
Total Price: '+ symbol +''+ price + '
'); } } }); $(function () { $('[data-toggle="tooltip"]').tooltip( {template: ''} ); }) $('.verify_registration_code').on('click', function (e) { e.preventDefault(); var code= $("input[name=registration_code]").val(); if (code != "") { $("#registration_code_message").html(''); jQuery.ajax({ url: "https://otcybersummit.isa.org/en/form/registrationCodeVerification", data: { registration_code: code, ajax_call: 1, appID: 8995, }, type: "POST", success: function (response) { if(response.indexOf('verified') != -1){ $("#registration_code_message").html(''+response.toString().replace(/"/g, "")+''); }else{ $("#registration_code_message").html(response.toString().replace(/"/g, "") ); } }}); } else { $("#registration_code_message").html("Please Enter Registration Code"); } }); }); var slice = [].slice; (function ($, window) { var Starrr; window.Starrr = Starrr = (function () { Starrr.prototype.defaults = { rating: void 0, max: 5, readOnly: false, emptyClass: 'fa fa-star fa-star-emp', fullClass: 'fa fa-star', change: function (e, value) { } }; function Starrr($el, options) { this.options = $.extend({}, this.defaults, options); this.$el = $el; this.createStars(); this.syncRating(); if (this.options.readOnly) { return; } this.$el.on('mouseover.starrr', 'a', (function (_this) { return function (e) { return _this.syncRating(_this.getStars().index(e.currentTarget) + 1); }; })(this)); this.$el.on('mouseout.starrr', (function (_this) { return function () { return _this.syncRating(); }; })(this)); this.$el.on('click.starrr', 'a', (function (_this) { return function (e) { return _this.setRating(_this.getStars().index(e.currentTarget) + 1); }; })(this)); this.$el.on('starrr:change', this.options.change); } Starrr.prototype.getStars = function () { return this.$el.find('a'); }; Starrr.prototype.createStars = function () { var j, ref, results; results = []; var maxStars = this.options.max; if(this.options.maxStars) { maxStars = this.options.maxStars; } for (j = 1, ref = maxStars; 1 = ref; 1 ")); } return results; }; Starrr.prototype.setRating = function (rating) { if (this.options.rating === rating) { rating = void 0; } this.options.rating = rating; this.syncRating(); return this.$el.trigger('starrr:change', rating); }; Starrr.prototype.getRating = function () { return this.options.rating; }; Starrr.prototype.syncRating = function (rating) { var $stars, i, j, ref, results; rating || (rating = this.options.rating); $stars = this.getStars(); results = []; var maxStars = this.options.max; if(this.options.maxStars) { maxStars = this.options.maxStars; } for (i = j = 1, ref = maxStars; 1 = ref; i = 1 = i ? this.options.emptyClass : this.options.fullClass).addClass(rating >= i ? this.options.fullClass : this.options.emptyClass)); } return results; }; return Starrr; })(); $.fn.extend({ starrr: function () { var args, option; option = arguments[0], args = 2
'; $('form.reg-form-data').before(message); $("html, body").animate({scrollTop: 0}, "slow"); var origin = window.location.origin; if (response.url) { if (response.url == 'home-page' || response.url == 'home') { location.replace(origin + '/en/'); } else { var loc = origin + '/en/' + response.url; location.replace(loc); } } else { var loc = origin + '/en/'; location.replace(loc); } setTimeout(function () { $('.fancybox-overlay').css("display", 'none'); }, 3000); } } else { if (response.token_csrf_hash !== undefined) { $('input[name="ci_csrf_token"]').val(response.token_csrf_hash); } if (response.errors !== undefined) { if(response.errors.csrf_validation !== undefined){ message = ''; }else{ message = ''; } if(response.errors.registration_code !== undefined){ message = ''; } if(response.errors.rc_anchor_alert !== undefined){ message = ''; } $(".alert-danger").remove(); $('form.reg-form-data').before(message); $.each(response.errors, function (key, val) { if(key == 'email' || key == 'card_month') { $error_name = $('input[name="' + key + '"]').attr("id") + "-error"; var strippedString = val.replace(/

/g, '').replace(//g, ''); var newText = $("").text(strippedString); $('input[name="' + key + '"]').parent().find(".error").remove(); $('input[name="' + key + '"]').parent().find(".error").attr("id", "'" + $('input[name="' + key + '"]').attr("id") + "-error'"); $('#' + $('input[name="' + key + '"]').attr("id")).attr("aria-describedby", "" + $('input[name="' + key + '"]').attr("id") + "-error"); $('input[name="' + key + '"]').parent().append(newText); $('input[name="' + key + '"]').addClass('has-error'); $('input[name="' + key + '"]').addClass('error').removeClass("valid"); $('input[name="' + key + '"]').focus(); }else{ //removeing HTML Tags val = val.replace(/(]+)>)/gi, ""); $('input[name="' + key + '"]').addClass('has-error'); $('input[name="' + key + '"]').next("span.text-danger").text(val).addClass('has-error'); $('input[name="' + key + '"]').focus(); $('select[name="' + key + '"]').addClass('has-error'); $('select[name="' + key + '"]').next("span.text-danger").text(val).addClass('has-error'); $('input[name="' + key + '"]').focus(); } }); } else { message = '

'; $(".alert-danger").remove(); $('form.reg-form-data').before(message); } $("html, body").animate({scrollTop: 0}, "slow"); } //$('.alert').fadeOut(4000); }, error: function (response, status, error) { console.log('error'); message = ''; $(".alert-danger").remove(); $('form.reg-form-data').before(message); //$('.alert').fadeOut(4000); }, complete: function () { $("#LoadingBar").hide(); $("input[type=submit]").attr('disabled', false); } }); // } return false }); setTimeout(function () { var pmnt_fld_name = $('.pmnt_fld').attr('name'); if (pmnt_fld_name) { var symbol = $("select[name=" + pmnt_fld_name + "]").find(':selected').attr('data-symbol'); if (symbol) { console.log(symbol); var id = pmnt_fld_name.substr(pmnt_fld_name.length - 5); id = id.replace('_', ''); id = id.replace('d', ''); id = id.replace('l', ''); // console.log(id); $("#fld_" + id + " > option").each(function () { var dataprice = $(this).attr('data-price'); if (dataprice) { $(this).text(dataprice + '' + symbol); } }); } } }, 1000); $("input[type=radio], select").on('change', function () { var elementName = $(this).attr('name'); var elementValue = $(this).val(); var id = elementName.substr(elementName.length - 5); if (elementName.indexOf("pmnt_fld") >= 0) { id = id.replace('_', ''); id = id.replace('d', ''); id = id.replace('l', ''); // console.log(ild); // console.log('yes'); if (elementValue != '') { var symbol = $(this).find(':selected').attr('data-symbol'); $("#fld_" + id + " > option").each(function () { var dataprice = $(this).attr('data-price'); if (dataprice) { $(this).text(dataprice + '' + symbol); } // console.log(this.text + ' ' + this.value+ ' '+ dataprice); }); } else { $("#fld_" + id + " > option").each(function () { var dataprice = $(this).attr('data-price'); $(this).text(dataprice) }); } } else { // console.log('no'); } var otherElementName = elementName.replace('[]', '_other'); // console.log(elementValue); // if ($("#" + otherElementName).length == 0) { // return true; // } if ($.isArray(elementValue)) { } else { if (elementValue && elementValue.toLowerCase() == 'other') { $("#group_" + otherElementName).show(); } else { $("#group_" + otherElementName).hide(); // $("#"+otherElementName).val(''); } } }); if (window.location.href.indexOf("saregistration.sport/en/form/editProfileV2") = checkOutDate) { console.log("if"); $("#fld_1304372").val(''); if ($(".error-message-dateDif").length === 0 && checkInDate >= checkOutDate) { console.log("if2"); //var errorMessage = $('').attr('class', 'error-message-dateDif').text('Checkout date must be greater than check-in date').css('color', 'red'); var errorMessage = 'Checkout date must be greater than check-in date'; //$(".error-message-dateDif").show(); console.log(errorMessage); $("#grp_fld_1304372 .text-danger").text('Checkout date must be greater than check-in date'); return false; } return false; } else if (checkInDate ').attr('class', 'error-message-dateDif').text('').css('color', 'red'); $("#fld_1304372").after(errorMessage); $("#grp_fld_1304372 .text-danger").text(''); } */ console.log("inside the days diff") var checkInDate = $("#fld_1304371").val(); var checkOutDate = $("#fld_1304372").val(); if (checkInDate && checkOutDate) { /*var startDate = new Date(checkInDate); var endDate = new Date(checkOutDate); var timeDifference = Math.abs(endDate.getTime() - startDate.getTime()); var daysDifference = Math.ceil(timeDifference / (1000 * 3600 * 24));*/ // Split the date string into day, month, and year var checkInParts = checkInDate.split('/'); var checkOutParts = checkOutDate.split('/'); // Create a new Date object using the correct format (MM/DD/YYYY) var startDate = new Date(checkInParts[2], checkInParts[1] - 1, checkInParts[0]); var endDate = new Date(checkOutParts[2], checkOutParts[1] - 1, checkOutParts[0]); // Calculate the time difference var timeDifference = Math.abs(endDate.getTime() - startDate.getTime()); // Convert time difference to days var daysDifference = Math.ceil(timeDifference / (1000 * 3600 * 24)); var tDifference = endDate.getTime() - startDate.getTime(); console.log(tDifference); $("#grp_fld_1304372 .text-danger").text(''); if (tDifference No. of nights to be reserved:

").insertAfter("#grp_fld_1304372"); } //////////////////////////////////////////////////////////4,5,13,14 days checks////////////////////////////////////////////////////// if (shoulderdatesNew.includes(parseInt($('#fld_1304368').val()))) { var allDates = []; if ($('#shoulderapril4').is(':checked')) { $('#shoulderapril4').trigger('click'); } if ($('#shoulderapril5').is(':checked')) { $('#shoulderapril5').trigger('click'); } if ($('#shoulderapril13').is(':checked')) { $('#shoulderapril13').trigger('click'); } if ($('#shoulderapril14').is(':checked')) { $('#shoulderapril14').trigger('click'); } //for (var i = 1; i Packages Included:
'; var price = 0; var flag = 0; var symbol = $('.pmnt_fld option:selected').data('symbol'); if (typeof symbol == "undefined") { symbol = ''; } selected += "
  • " + $('.addonp option:selected').text() + " - CHF " + parseInt($('.addonp option:selected').data('price')) + "
  • "; //console.log("Selected: " + $('.addonp option:selected').text()); //console.log("Selected Price: " + parseInt($('.addonp option:selected').data('cost'))); price = parseInt($('.addonp option:selected').data('cost')) + parseInt(price); var individualPrice = parseInt($('.addonp option:selected').data('price')); $('.addonsvp input[type=checkbox]:checked').each(function () { selected += "
  • " + $(this).data('name'); //console.log("Price: "+parseInt($(this).data('price'))); //console.log("Variable Price: "+parseInt(price)); price = parseInt($(this).data('price')) + parseInt(price); individualPrice = parseInt($(this).data('price')); selected += " - CHF " + individualPrice + "
  • "; flag = 1; }); selected += '
    '; if (flag == 1) { $('.pmnt_fld').parent('div').parent('div').before(selected); // $(this).parent('div').parent('span').append(selected); // $('.pmnt_fld').parent('div').parent('div').before( // '
    Total Price: ' + // symbol + '' + price + '
    '); $('.pmnt_fld').parent('div').parent('div').before( '
    Total Price: CHF ' + price + '
    '); } } }); } }) var handleResult = function (result) { if (result.error) { alert(result.error.message); } }; function paymentRedirectionMessage(message) { var messageDiv = ''; $('form.reg-form-data').before(messageDiv); $("html, body").animate({scrollTop: 0}, "slow"); } function paymentRedirectionErrorMessage() { $(".success-message").hide(); const message = 'Some thing went wrong while redirecting you to payment please contact event admin.'; var messageDiv = ''; $('form.reg-form-data').before(messageDiv); $("html, body").animate({scrollTop: 0}, "slow"); }
    `; document.body.insertAdjacentHTML('beforeend', modalHTML); $("#LoadingBar").hide(); $('#braintreeModal').modal({ backdrop: 'static', keyboard: false }); $("#total_amount").html("Amount :- "+amount+' '+currency); braintree.dropin.create({ authorization: clientToken, selector: '#dropin-container', }, function (err, instance) { if (err) { console.error(err); return; } document.querySelector('#submit-button').addEventListener('click', function () { instance.requestPaymentMethod(function (err, payload) { if (err) { console.error(err); return; } $('#braintreeModal').hide(); $("#LoadingBar").show(); jQuery.ajax({ url: '/form/processBraintreePayResponse/', type: "POST", data: { nonce: payload.nonce, user_id: user_id, currency: currency, amount: amount, userType: userType, session_id: session_id }, success: function(response) { $("#LoadingBar").hide(); response = eval('(' + response + ')'); if (response.url) { window.location.href = response.url; } }, error: function(xhr, status, error) { console.error('Error processing payment:', error); } }); }); //end }); }); $('#braintreeModal').modal('show'); }, error: function(xhr, status, error) { console.error('Error fetching client token:', error); } }); }; document.head.appendChild(script); } function closeModalBraintree(){ location.replace(failurePageURLBraintreePAy); }