{* *} {if $EASYCAPTCHA.challenge == 'drag'} {combine_script id='jquery.event.drag' load='footer' require='jquery' path=$EASYCAPTCHA_PATH|cat:'template/jquery.events/jquery.event.drag-2.2.js'} {combine_script id='jquery.event.drop' load='footer' require='jquery' path=$EASYCAPTCHA_PATH|cat:'template/jquery.events/jquery.event.drop-2.2.js'} {combine_script id='easycaptcha.drag' load='footer' require='jquery.event.drag,jquery.event.drop' path=$EASYCAPTCHA_PATH|cat:'template/drag.js'} {combine_css id='easycaptcha.drag' path=$EASYCAPTCHA_PATH|cat:'template/drag.css' template=true version=$EASYCAPTCHA.lastmod} {capture name=easycaptcha}
{* *} {/capture} {* *} {else if $EASYCAPTCHA.challenge == 'tictac'} {combine_css id='easycaptcha.tictac' path=$EASYCAPTCHA_PATH|cat:'template/tictac.css' template=true version=$EASYCAPTCHA.lastmod} {html_style} #easycaptcha table { background: url('{$ROOT_URL}{$EASYCAPTCHA_PATH}tictac/gen.php?t={$smarty.now}') no-repeat; } {/html_style} {footer_script require='jquery'} (function($){ $('#easycaptcha input').on('change', function() { $('#easycaptcha label').removeClass('selected'); $(this).parent('label').addClass('selected'); }); }(jQuery)); {/footer_script} {capture name=easycaptcha}