⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.91
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
skvinfotech.com
/
public
/
assets
/
_js
/
pages
/
View File Name :
op_auth_signup.js
/* * Document : op_auth_signup.js * Author : pixelcave * Description: Custom JS code used in Sign Up Page */ class pageAuthSignUp { /* * Init Sign Up Form Validation, for more examples you can check out https://github.com/jzaefferer/jquery-validation * */ static initValidation() { // Load default options for jQuery Validation plugin One.helpers('validation'); // Init Form Validation jQuery('.js-validation-signup').validate({ rules: { 'signup-username': { required: true, minlength: 3 }, 'signup-email': { required: true, email: true }, 'signup-password': { required: true, minlength: 5 }, 'signup-password-confirm': { required: true, equalTo: '#signup-password' }, 'signup-terms': { required: true } }, messages: { 'signup-username': { required: 'Please enter a username', minlength: 'Your username must consist of at least 3 characters' }, 'signup-email': 'Please enter a valid email address', 'signup-password': { required: 'Please provide a password', minlength: 'Your password must be at least 5 characters long' }, 'signup-password-confirm': { required: 'Please provide a password', minlength: 'Your password must be at least 5 characters long', equalTo: 'Please enter the same password as above' }, 'signup-terms': 'You must agree to the service terms!' } }); } /* * Init functionality * */ static init() { this.initValidation(); } } // Initialize when page loads jQuery(() => { pageAuthSignUp.init(); });