{combine_css path=$EASYCAPTCHA_PATH|cat:'template/style.css'} {combine_css path='themes/default/js/plugins/chosen.css'} {combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} {combine_css path=$EASYCAPTCHA_PATH|cat:'template/bgrins-spectrum/spectrum.css'} {combine_script id='jquery.spectrum' load='footer' path=$EASYCAPTCHA_PATH|cat:'template/bgrins-spectrum/spectrum.js'} {assign var="spectrum_language" value=$EASYCAPTCHA_PATH|cat:'template/bgrins-spectrum/i18n/jquery.spectrum-'|cat:$lang_info.code|cat:'.js'} {if 'PHPWG_ROOT_PATH'|constant|cat:$spectrum_language|file_exists} {combine_script id='jquery.spectrum.'|cat:$lang_info.code load='footer' require='jquery.spectrum' path=$spectrum_language} {/if} {footer_script} // multiselect $("select").css({ width: 300 }).chosen({ disable_search:true, placeholder_text_multiple: '{'Nowhere'|translate}' }); // Spectrum settings $.extend($.fn.spectrum.defaults, { showInput: true, showPalette: true, localStorageKey: "spectrum.easycaptcha", showInitial: true, preferredFormat: "hex6", }); // Tic-tac-toe preview $('.preview-tictac').on('change', function() { var inputs = ['size','bg1','bg2','bd','obj','sel'], url = '{$EASYCAPTCHA_PATH}tictac/gen_admin.php?t='+ new Date().getTime(); for (var i=0; i'+ ''+ ''; } $('#easycaptcha').prepend(html); }); $('#drag_style').appendTo('head'); // move to last position to have priority $('.preview-drag').eq(0).trigger('change'); $('#easycaptcha .drop_zone').on({ 'mouseenter': function() { $(this).addClass('valid'); }, 'mouseleave': function() { $(this).removeClass('valid'); }, }); // Drag & drop theme $('.theme').on('click', function() { $('.theme').removeClass('selected'); $(this).addClass('selected'); $('input[name="drag[theme]"]').val($(this).attr('title')).trigger('change'); }); $('.theme .title span').css('background-color', $('#content').css('background-color')); $('.theme .count span').css('background-color', $('#content').css('background-color')); // show previews $('.preview').prevAll('a').on('click', function() { $(this).hide(); $(this).nextAll('.preview').slideDown(); }); {/footer_script}

Easy Captcha

{'Configuration'|translate}
  • {'Activate on'|translate}
  • {'Comments action'|translate}
  • {'Challenge'|translate}
{'Tic-tac-toe options'|translate}
  • {'Image size'|translate}
  • {'Colors'|translate}
    {'Background'|translate} 1 {'Background'|translate} 2 {'Border'|translate} {'Marks'|translate} {'Selection'|translate}
  •   {'Preview'|translate}
{'Drag & drop options'|translate}
  • {'This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.'|translate}
  • {'Theme'|translate} {foreach from=$THEMES key=theme item=params}
    {$theme|ucfirst}
    ({$params.count})
    {/foreach}
  • {'Image size'|translate}
  • {'Number of images'|translate}
  • {'Colors'|translate}
    {'Background'|translate} 1 {'Background'|translate} 2 {'Image'|translate} {'Image border'|translate} {'Drop'|translate} {'Drop border'|translate} {'Text'|translate}
  •   {'Preview'|translate}
    {$easycaptcha.challenge = 'drag'} {include file=$EASYCAPTCHA_ABS_PATH|cat:'template/common.inc.tpl' EASYCAPTCHA=$easycaptcha} {$smarty.capture.easycaptcha}

Icons [#1] [#2] [#3] [#4] | Libraries [Spectrum.js] [jQuery.events]
{* *} {html_head} {/html_head}