diff --git a/addons/website_hr_recruitment/static/src/css/jquery.realperson.css b/addons/website_hr_recruitment/static/src/css/jquery.realperson.css deleted file mode 100644 index a19aa103bca..00000000000 --- a/addons/website_hr_recruitment/static/src/css/jquery.realperson.css +++ /dev/null @@ -1,26 +0,0 @@ -/* Real Person jQuery plugin styles v1.1.1. */ -.realperson-challenge { - display: block; - color: #000; -} -.realperson-text { - font-family: "Courier New",monospace; - font-size: 6px; - font-weight: bold; - letter-spacing: -1px; - line-height: 3px; -} -.realperson-regen { - padding-top: 4px; - font-size: 12px; - text-align: center; - cursor: pointer; - display: inline-block; -} -.realperson-disabled { - opacity: 0.5; - filter: Alpha(Opacity=50); -} -.realperson-disabled .realperson-regen { - cursor: default; -} diff --git a/addons/website_hr_recruitment/static/src/js/captcha.js b/addons/website_hr_recruitment/static/src/js/captcha.js deleted file mode 100644 index 0da2c8c430b..00000000000 --- a/addons/website_hr_recruitment/static/src/js/captcha.js +++ /dev/null @@ -1,27 +0,0 @@ -$(document).ready(function (event) { - $('#defaultReal').realperson(); - $('button[type=submit]').click(function (e) { - value = $('#defaultReal').val(); - var hash = 5381; - for (var i = 0; i < value.length; i++) { - hash = ((hash << 5) + hash) + value.charCodeAt(i); - } - $('#captchaval').val(hash); - if ($('[name=partner_name]').val() && $('[name=email_from]').val() && $('[name=ufile]').val()){ - var flag = 0; - if ($('#captchaval').val()) { - var hashval = $('[name=defaultRealHash]').val(); - var captchahash = $('#captchaval').val(); - flag = 1; - } - } - if (flag==1) { - if (hashval == captchahash){ - return true; - }else{ - $('[name=defaultReal]').focus(); - return false; - } - } - }); -}); diff --git a/addons/website_hr_recruitment/static/src/js/jquery.realperson.js b/addons/website_hr_recruitment/static/src/js/jquery.realperson.js deleted file mode 100644 index 8e23fd0df7f..00000000000 --- a/addons/website_hr_recruitment/static/src/js/jquery.realperson.js +++ /dev/null @@ -1,235 +0,0 @@ -/* http://keith-wood.name/realPerson.html - Real Person Form Submission for jQuery v1.1.1. - Written by Keith Wood (kwood{at}iinet.com.au) June 2009. - Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license. - Please attribute the author if you use it. */ - -(function($) { // Hide scope, no $ conflict - -/* Real person manager. */ -function RealPerson() { - this._defaults = { - length: 6, // Number of characters to use - includeNumbers: false, // True to use numbers as well as letters - regenerate: 'Click to change', // Instruction text to regenerate - hashName: '{n}Hash' // Name of the hash value field to compare with, - // use {n} to substitute with the original field name - }; -} - -var CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; -var DOTS = [ - [' * ', ' * * ', ' * * ', ' * * ', ' ***** ', '* *', '* *'], - ['****** ', '* *', '* *', '****** ', '* *', '* *', '****** '], - [' ***** ', '* *', '* ', '* ', '* ', '* *', ' ***** '], - ['****** ', '* *', '* *', '* *', '* *', '* *', '****** '], - ['*******', '* ', '* ', '**** ', '* ', '* ', '*******'], - ['*******', '* ', '* ', '**** ', '* ', '* ', '* '], - [' ***** ', '* *', '* ', '* ', '* ***', '* *', ' ***** '], - ['* *', '* *', '* *', '*******', '* *', '* *', '* *'], - ['*******', ' * ', ' * ', ' * ', ' * ', ' * ', '*******'], - [' *', ' *', ' *', ' *', ' *', '* *', ' ***** '], - ['* *', '* ** ', '* ** ', '** ', '* ** ', '* ** ', '* *'], - ['* ', '* ', '* ', '* ', '* ', '* ', '*******'], - ['* *', '** **', '* * * *', '* * *', '* *', '* *', '* *'], - ['* *', '** *', '* * *', '* * *', '* * *', '* **', '* *'], - [' ***** ', '* *', '* *', '* *', '* *', '* *', ' ***** '], - ['****** ', '* *', '* *', '****** ', '* ', '* ', '* '], - [' ***** ', '* *', '* *', '* *', '* * *', '* * ', ' **** *'], - ['****** ', '* *', '* *', '****** ', '* * ', '* * ', '* *'], - [' ***** ', '* *', '* ', ' ***** ', ' *', '* *', ' ***** '], - ['*******', ' * ', ' * ', ' * ', ' * ', ' * ', ' * '], - ['* *', '* *', '* *', '* *', '* *', '* *', ' ***** '], - ['* *', '* *', ' * * ', ' * * ', ' * * ', ' * * ', ' * '], - ['* *', '* *', '* *', '* * *', '* * * *', '** **', '* *'], - ['* *', ' * * ', ' * * ', ' * ', ' * * ', ' * * ', '* *'], - ['* *', ' * * ', ' * * ', ' * ', ' * ', ' * ', ' * '], - ['*******', ' * ', ' * ', ' * ', ' * ', ' * ', '*******'], - [' *** ', ' * * ', '* * *', '* * *', '* * *', ' * * ', ' *** '], - [' * ', ' ** ', ' * * ', ' * ', ' * ', ' * ', '*******'], - [' ***** ', '* *', ' *', ' * ', ' ** ', ' ** ', '*******'], - [' ***** ', '* *', ' *', ' ** ', ' *', '* *', ' ***** '], - [' * ', ' ** ', ' * * ', ' * * ', '*******', ' * ', ' * '], - ['*******', '* ', '****** ', ' *', ' *', '* *', ' ***** '], - [' **** ', ' * ', '* ', '****** ', '* *', '* *', ' ***** '], - ['*******', ' * ', ' * ', ' * ', ' * ', ' * ', '* '], - [' ***** ', '* *', '* *', ' ***** ', '* *', '* *', ' ***** '], - [' ***** ', '* *', '* *', ' ******', ' *', ' * ', ' **** ']]; - -$.extend(RealPerson.prototype, { - /* Class name added to elements to indicate already configured with real person. */ - markerClassName: 'hasRealPerson', - /* Name of the data property for instance settings. */ - propertyName: 'realperson', - - /* Override the default settings for all real person instances. - @param options (object) the new settings to use as defaults - @return (RealPerson) this object */ - setDefaults: function(options) { - $.extend(this._defaults, options || {}); - return this; - }, - - /* Attach the real person functionality to an input field. - @param target (element) the control to affect - @param options (object) the custom options for this instance */ - _attachPlugin: function(target, options) { - target = $(target); - if (target.hasClass(this.markerClassName)) { - return; - } - var inst = {options: $.extend({}, this._defaults)}; - target.addClass(this.markerClassName).data(this.propertyName, inst); - this._optionPlugin(target, options); - }, - - /* Retrieve or reconfigure the settings for a control. - @param target (element) the control to affect - @param options (object) the new options for this instance or - (string) an individual property name - @param value (any) the individual property value (omit if options - is an object or to retrieve the value of a setting) - @return (any) if retrieving a value */ - _optionPlugin: function(target, options, value) { - target = $(target); - var inst = target.data(this.propertyName); - if (!options || (typeof options == 'string' && value == null)) { // Get option - var name = options; - options = (inst || {}).options; - return (options && name ? options[name] : options); - } - - if (!target.hasClass(this.markerClassName)) { - return; - } - options = options || {}; - if (typeof options == 'string') { - var name = options; - options = {}; - options[name] = value; - } - $.extend(inst.options, options); - target.prevAll('.' + this.propertyName + '-challenge,.' + this.propertyName + '-hash'). - remove().end().before(this._generateHTML(target, inst)); - }, - - /* Generate the additional content for this control. - @param target (jQuery) the input field - @param inst (object) the current instance settings - @return (string) the additional content */ - _generateHTML: function(target, inst) { - var text = ''; - for (var i = 0; i < inst.options.length; i++) { - text += CHARS.charAt(Math.floor(Math.random() * - (inst.options.includeNumbers ? 36 : 26))); - } - var html = '