/***************************************************************************** * GLOBALS *****************************************************************************/ /***************************************************************************** * NAMESPACE *****************************************************************************/ namespace("com.pedro.kelspot.captcha", (function() { /***************************************************************************** * SELF *****************************************************************************/ var self = {}; self.captchaOptions = { general: { endpoint: "/icon-captcha/captcha-request.php", fontFamily: "Titillium Web", credits: "show" }, security: { interactionDelay: 500, hoverProtection: true, displayInitialMessage: true, initializationDelay: 500, incorrectSelectionResetDelay: 3000, loadingAnimationDuration: 1000, invalidateTime: 1000 * 60 * 2 // 2 minutes, in milliseconds }, locale: { initialization: { verify: "I'm not a robot", loading: "Loading challenge..." }, header: "Select the icon displayed the least amount of times", correct: "Verification complete", incorrect: { title: "Uh oh", subtitle: "You've selected the wrong icon" }, timeout: { title: "Please wait 60 sec", subtitle: "You made too many incorrect tries" } } }; /***************************************************************************** * CLASSES *****************************************************************************/ /***************************************************************************** * METHODS *****************************************************************************/ /***************************************************************************** * END *****************************************************************************/ return self; })());