<script><!-- [et_pb_line_break_holder] --> var is_logged_in = ($('.swpm-logged-status-value').length > 0 ? true : false);<!-- [et_pb_line_break_holder] --> var is_full_member = (is_logged_in && $('.swpm-logged-membership-value').text() == 'Full Member' ? true : false);<!-- [et_pb_line_break_holder] --> var username = ($('.swpm-logged-username-value').length > 0 ? $('.swpm-logged-username-value').text() : '');<!-- [et_pb_line_break_holder] --> console.log('[Xonos]: '+(is_logged_in === true ? username : 'Unregistered guest')+' has signed in '+(is_full_member === true ? 'with Full Member Access' : 'with no access granted.'));<!-- [et_pb_line_break_holder] --> var initSwitchform;<!-- [et_pb_line_break_holder] --> if(is_logged_in) {<!-- [et_pb_line_break_holder] --> console.log('[Xonos]: Hiding registration form and revealing payment options.');<!-- [et_pb_line_break_holder] --> initSwitchform = setInterval(function() {<!-- [et_pb_line_break_holder] --> showWhenReady();<!-- [et_pb_line_break_holder] --> },500);<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> console.log('[Xonos]: Hiding payment options and revealing registration form.');<!-- [et_pb_line_break_holder] --> setTimeout(function() {<!-- [et_pb_line_break_holder] --> // $('#swpm-8').remove();<!-- [et_pb_line_break_holder] --> $('.swpm-section.swpm-section-20').prepend('<li class="swpm-item swpm-item-text" style="display:block"><label for="human-check" class="swpm-desc">Which is closer to you between <strong style="color:#B21613;"><u>Russia</u></strong> or <strong style="color:#B21613;"><u>The Moon</u></strong>? <span style="font-size:11pt;color:#937F77;">(Type in your answer below.)</span></label><div><input type="text" name="human-check" id="human-check" class="swpm-text swpm-medium" style="display:block"></div></li>');<!-- [et_pb_line_break_holder] --> },1000);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> function showWhenReady() {<!-- [et_pb_line_break_holder] --> if($('#swpm-form-1').length > 0 && $('#already-registered').length > 0) {<!-- [et_pb_line_break_holder] --> console.log('[Xonos]: Form is ready. Toggling now.');<!-- [et_pb_line_break_holder] --> $('#swpm-form-1').hide();<!-- [et_pb_line_break_holder] --> $('#already-registered').show();<!-- [et_pb_line_break_holder] --> clearInterval(initSwitchform);<!-- [et_pb_line_break_holder] --> } else { console.log('[Xonos]: Form is not ready. Waiting to try again...'); }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> /* (function($) {<!-- [et_pb_line_break_holder] --> console.log('[Xonos]: Initiating event handlers.');<!-- [et_pb_line_break_holder] --> $(document).on('keyup', '#human-check', function(e) {<!-- [et_pb_line_break_holder] --> var str = $(this).val().toLowerCase();<!-- [et_pb_line_break_holder] --> var sbc = $('#item-swpm-8');<!-- [et_pb_line_break_holder] --> if(str == 'russia') {<!-- [et_pb_line_break_holder] --> sbc.empty().append('<input type="submit" name="swpm-fb-submit" id="swpm-8" value="Register" class="swpm-submit ">');<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> sbc.empty();<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> })(jQuery); */<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --></script>