PageSourceSearch

https://twentysix.ru/templates/skin/new_vlt/js/platform.js

js twentysix.ru collected 2026-10-02 10:15:05 UTC 1,460 bytes, 6 lines download raw bytes

1'use strict';(function(){var version='1.0.1';var selector='.evihub-widget';function EHApi(){console.debug('Hello from evihub!');}
2EHApi.init=init;window.EHApi=EHApi;function init(){var widgets=document.querySelectorAll(selector);if(widgets.length===0){console.error('Cannot find widget by selector: '+selector);setTimeout(init,1000);return;}
3for(var i=0;i<widgets.length;++i){var widget=widgets[i];processWidget(widget);}}
4function processWidget(widget){var href=widget.getAttribute('data-href');if(!href){console.error('Widget has no data-href attribute');return;}
5var width=parseInt(widget.getAttribute('data-width'))||240;var height=parseInt(widget.getAttribute('data-height'))||400;var title=widget.getAttribute('data-title')||'';var color=widget.getAttribute('data-color')||'#ff2000';var url=href+'?'+'width='+width+'&'+'height='+height+'&'+'title='+title+'&'+'color='+color.substring(1);createWidget(widget,width,height,url);}
6function createWidget(widget,width,height,src){var iframe=document.createElement('iframe');iframe.setAttribute('src',src);
6iframe.setAttribute('class','evihub-widget-iframe');iframe.setAttribute('frameborder','1');iframe.setAttribute('scrolling','no');iframe.style.border='1px solid #ccc';iframe.style.position='relative';iframe.style.overflow='hidden';iframe.setAttribute('width',width+'px');iframe.style.width=width+'px';iframe.style.height=height+'px';widget.innerHTML='';widget.appendChild(iframe);}}());window.EHApi.init();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.