403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.218.243.199
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/cwd/themes/personalias/functions/kirki/kirki-packages/control-date/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/cwd/themes/personalias/functions/kirki/kirki-packages/control-date/src/control.js
import "./control.scss";

wp.customize.controlConstructor['kirki-date'] = wp.customize.kirkiDynamicControl.extend({

	handleWidth: (input) => {
		var styleTag = document.querySelector('#kirki-style-datepicker');
		styleTag.innerHTML = '.kirki-datepicker-popup {width: ' + input.clientWidth.toString() + 'px;}';
	},

	initKirkiControl: function (control) {
		var selector;

		control = control || this;
		selector = control.selector + ' input.datepicker';

		var styleTag = document.querySelector('#kirki-style-datepicker');

		if (!styleTag) {
			styleTag = document.createElement('style');
			styleTag.id = 'kirki-style-datepicker';
			document.head.appendChild(styleTag);
		}

		// Init the datepicker.
		jQuery(selector).datepicker({
			dateFormat: 'yy-mm-dd',
			duration: 200,
			beforeShow: function (input, inst) {
				inst.dpDiv[0].classList.add('kirki-datepicker-popup');
				control.handleWidth(input);
			}
		});

		// Save the changes
		this.container.on('change keyup paste', 'input.datepicker', function () {
			control.setting.set(jQuery(this).val());
		});
	}
});

Youez - 2016 - github.com/yon3zu
LinuXploit