| 31 августа, вторник, 2021 | 18:41:13

Скопировано в буфер обмена!  Копировать Боковая панель Переносы строк Сырой код
1/*web_vitals_polyfill*/(function(){"use strict";var e,t,n,i,r,o,a,c,u,s,f,p;function l(){}return r={passive:!0,capture:!0},o=new Date,a=function n(){i=[],t=-1,e=null,f(addEventListener)},c=function i(r,o){e||(e=o,t=r,n=new Date,f(removeEventListener),u())},u=function r(){if(t>=0&&t<n-o){var a={entryType:"first-input",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+t};i.forEach((function(e){e(a)})),i=[]}},s=function e(t){if(t.cancelable){var n=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?(function(e,t){var n=function n(){c(e,t),o()},i=function e(){o()},o=function e(){removeEventListener("pointerup",n,r),removeEventListener("pointercancel",i,r)};addEventListener("pointerup",n,r),addEventListener("pointercancel",i,r)})(n,t):c(n,t)}},f=function e(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return t(e,s,r)}))},p="hidden"===document.visibilityState?0:1/0,addEventListener("visibilitychange",(function e(t){"hidden"===document.visibilityState&&(p=t.timeStamp,removeEventListener("visibilitychange",e,!0))}),!0),a(),!void(self.webVitals={firstInputPolyfill:function e(t){i.push(t),u()},resetFirstInputPolyfill:a,get firstHiddenTime(){return p}}),l})()({});;
2
3(function() {
4var alertCont;
5function trackOldBrowserEvent(event) {
6 var xhr = new XMLHttpRequest();
7 xhr.open('GET', '/badbrowser_stat.php?act=track&event=' + event);
8 xhr.send();
9}
10function exposeGlobals() {
11 window.hideOldBrowser = function() {
12 alertCont.remove();
13 var date = new Date();
14 date.setTime(date.getTime() + (7 * 24 * 60 * 60 * 1000));
15 var expiresDate = date.toGMTString();
16 var domain = window.locDomain;
17 document.cookie = 'remixoldbshown=1; expires=' + expiresDate + '; path=/' + (domain ? '; domain=.' + domain : '') + ';secure';
18 trackOldBrowserEvent('hideAlert_atom');
19 }
20}
21function checkOldBrowser() {
22 if(!document.body) {
23 setTimeout(checkOldBrowser, 100);
24 return;
25 }
26 try {
27 if ((false || !('noModule' in HTMLScriptElement.prototype)) && !false) {
28 exposeGlobals();
29 var alert = '<div class="OldBrowser__container OldBrowser__container--atom" style="width:960px;"> Ваш браузер устарел. Попробуйте <a href="https://vk.com/away.php?to=https%3A%2F%2F1l-go.mail.ru%2Fr%2Fadid%2F3209701_2013454%2Fpid%2F102819%2Fpof%2F1%2Ff%2F3%2F%3F_1larg_sub%3D505013%26rfr%3D505013%26utm_source%3Dvk%26utm_medium%3Dstripeall%26utm_campaign%3DExpVk&badbrowser=atom&badbrowser_meta=_badbrowser_alert" target="_blank">браузер Atom</a>, чтобы работа ВКонтакте была быстрой и стабильной. <a href="https://vk.com/away.php?to=https%3A%2F%2F1l-go.mail.ru%2Fr%2Fadid%2F3209701_2013454%2Fpid%2F102819%2Fpof%2F1%2Ff%2F3%2F%3F_1larg_sub%3D505013%26rfr%3D505013%26utm_source%3Dvk%26utm_medium%3Dstripeall%26utm_campaign%3DExpVk&badbrowser=atom&badbrowser_meta=_badbrowser_alert" target="_blank">Подробнее</a> <span class="OldBrowser__close" aria-label="Закрыть" role="button" onclick="hideOldBrowser();"></span></div>';
30 alertCont = document.createElement('div');
31 alertCont.className = 'OldBrowser';
32 alertCont.id = 'old_browser_wrap';
33 alertCont.innerHTML = alert;
34 document.body.appendChild(alertCont);
35 trackOldBrowserEvent('showAlert_atom');
36 } else {
37 if (browserVersion < lastVersions[browserName] - 1) {
38 trackOldBrowserEvent('badBrowser' + (lastVersions[browserName] - browserVersion));
39 }
40 }
41 } catch(e) {}
42}
```
Язык
Библиотека
VM
Скорость
JavaScript 20.3.0
Highlight.js 10.4.1
GraalVM
Быстро
Ruby 2.6.6
Rouge 3.26.0
GraalVM
Приемлемо
Время рендеринга подсветки синтаксиса на сервере: 2083ms.
```
Версия Code Polyglot: 1.0.0, 40b65db_190, 19-Jan-2021 15:55:44