⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
ppt.com.ng
/
public
/
assets
/
js
/
View File Name :
modal-add-role.js
/** * Add new role Modal JS */ 'use strict'; document.addEventListener('DOMContentLoaded', function (e) { (function () { // add role form validation FormValidation.formValidation(document.getElementById('addRoleForm'), { fields: { modalRoleName: { validators: { notEmpty: { message: 'Please enter role name' } } } }, plugins: { trigger: new FormValidation.plugins.Trigger(), bootstrap5: new FormValidation.plugins.Bootstrap5({ // Use this for enabling/changing valid/invalid class // eleInvalidClass: '', eleValidClass: '', rowSelector: '.col-12' }), submitButton: new FormValidation.plugins.SubmitButton(), // Submit the form when all fields are valid // defaultSubmit: new FormValidation.plugins.DefaultSubmit(), autoFocus: new FormValidation.plugins.AutoFocus() } }); // Select All checkbox click const selectAll = document.querySelector('#selectAll'), checkboxList = document.querySelectorAll('[type="checkbox"]'); selectAll.addEventListener('change', t => { checkboxList.forEach(e => { e.checked = t.target.checked; }); }); })(); });