%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 13.58.62.69
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/components/bitrix/rest.marketplace.booklet/templates/.default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/rest.marketplace.booklet/templates/.default//script.js
;(function ()
{
	'use strict';

	BX.namespace('BX.Rest.MarketSite.TileGrid.Item');

	if (!BX.TileGrid)
	{
		return false;
	}

	/**
	 *
	 * @param options
	 * @extends {BX.TileGrid.Item}
	 * @constructor
	 */

	BX.Rest.MarketSite.TileGrid.Item = function(options) {

		BX.TileGrid.Item.apply(this, arguments);

		this.title = options.title;
		this.icon = options.icon;
		this.url = options.url;
		this.onclick = options.onclick;
		this.disabled = options.disabled;

		this.layout = {
			wrapper: null,
			title: null,
			icon: null
		}
	};

	BX.Rest.MarketSite.TileGrid.Item.prototype = {

		__proto__: BX.TileGrid.Item.prototype,
		constructor: BX.TileGrid.Item,

		getContent: function()
		{
			if (!this.layout.wrapper)
			{
				this.layout.wrapper = BX.create('div', {
					props: {
						className: 'rest-market-action-wrapper'+((this.disabled) ? ' rest-market-action-wrapper-disabled':''),
					},
					children: [
						this.getTitle(),
						this.getIconNode()
					]
				})
			}

			return this.layout.wrapper;
		},

		getTitle: function()
		{
			if (!this.layout.title)
			{
				this.layout.title = BX.create('div', {
					props: {
						className: 'rest-market-action-title'
					},
					text: this.title
				})
			}

			return this.layout.title;
		},

		getIconNode: function()
		{
			if (!this.layout.icon)
			{
				this.layout.icon = BX.create('div', {
					props: {
						className: 'rest-market-action-icon'
					},
					children: [
						BX.create('span', {
							props: {
								className: 'rest-market-action-icon-image',
							},
							style: {
								backgroundImage: 'url(' + this.icon + ')'
							},
							events: {
								click: !this.disabled ? this.getClickEvent() : function(){}
							}
						})
					]
				})
			}

			return this.layout.icon;
		},
		getClickEvent: function()
		{
			if (!!this.onclick && this.onclick !== '')
			{
				return new Function('', this.onclick);
			}
			else
			{
				return BX.delegate(
					function () {
						BX.SidePanel.Instance.open(this.url);
					},
					this
				);
			}
		},
	}
})();

Youez - 2016 - github.com/yon3zu
LinuXploit