js/register.js
// Register events that need to be handled in register.js.
Register events that need to be handled in register.js.
Register events that need to be handled in register . js .
function registerEvents() {
  $('#captchaContainer').on('click', '#registerButton', function (event) {
    const valid = validateInfo()
    if (valid) postRequest()
  })
  $('#captchaContainer').on('click', '#registerButtonTest', function (event) {
    postRequestTest()
  })
  $('#captchaContainer').on('click', 'input', function (event) {
    radioValue = $('input:checked').val()
  })
  player.on('ended', function() {
      videoComplete = true
      attemptConfirmationTransition()
  })
}
function registerEvents ( ) { $ ( '#captchaContainer' ) . on ( 'click' , '#registerButton' , function ( event ) { const valid = validateInfo ( ) if ( valid ) postRequest ( ) } ) $ ( '#captchaContainer' ) . on ( 'click' , '#registerButtonTest' , function ( event ) { postRequestTest ( ) } ) $ ( '#captchaContainer' ) . on ( 'click' , 'input' , function ( event ) { radioValue = $ ( 'input:checked' ) . val ( ) } ) player . on ( 'ended' , function ( ) { videoComplete = true attemptConfirmationTransition ( ) } ) }
Register events that need to be handled in register.js.
Register events that need to be handled in register . js .
//const valid = validateInfo() // Detect when the Vimeo player has finished the video.