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/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/landing/polyfill.js
/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
(function(w){
	"use strict";

	if (!w.loadCSS)
	{
		w.loadCSS = (function() {});
	}

	var rp = loadCSS.relpreload = {};

	rp.support = (function() {
		var ret;
		try
		{
			ret = w.document.createElement("link").relList.supports("preload");
		}
		catch (e)
		{
			ret = false;
		}
		return function()
		{
			return ret;
		};
	})();


	rp.bindMediaToggle = function(link)
	{
		var finalMedia = link.media || "all";

		function enableStylesheet()
		{
			link.media = finalMedia;
		}

		if (link.addEventListener)
		{
			link.addEventListener("load", enableStylesheet);
		}
		else if (link.attachEvent)
		{
			link.attachEvent("onload", enableStylesheet);
		}

		setTimeout(function() {
			link.rel = "stylesheet";
			link.media = "only x";
		});

		setTimeout(enableStylesheet, 3000);
	};

	rp.poly = function()
	{
		if (rp.support())
		{
			return;
		}

		var links = w.document.getElementsByTagName("link");

		for (var i = 0; i < links.length; i++)
		{
			var link = links[ i ];
			if (link.rel === "preload" && link.getAttribute("as") === "style" && !link.getAttribute("data-loadcss"))
			{
				link.setAttribute("data-loadcss", true);
				rp.bindMediaToggle(link);
			}
		}
	};

	if (!rp.support())
	{
		rp.poly();

		var run = w.setInterval(rp.poly, 500);

		if (w.addEventListener)
		{
			w.addEventListener("load", function() {
				rp.poly();
				w.clearInterval(run);
			});
		}
		else if (w.attachEvent)
		{
			w.attachEvent("onload", function() {
				rp.poly();
				w.clearInterval(run);
			});
		}
	}

	w.loadCSS = loadCSS;
})(window);

Youez - 2016 - github.com/yon3zu
LinuXploit