PageSourceSearch

https://libnvkz.ru/view/vendor/tinyslider/helpers/createStyleSheet.js

js libnvkz.ru collected 2026-10-02 12:06:58 UTC 765 bytes, 22 lines download raw bytes

vendor: 765 bytes, lines 1-22
1// create and append style sheet
2export function createStyleSheet (media, nonce) {
3  // Create the <style> tag
4  var style = document.createElement("style");
5  // style.setAttribute("type", "text/css");
6
7  // Add a media (and/or media query) here if you'd like!
8  // style.setAttribute("media", "screen")
9  // style.setAttribute("media", "only screen and (max-width : 1024px)")
10  if (media) { style.setAttribute("media", media); }
11
12  // Add nonce attribute for Content Security Policy
13  if (nonce) { style.setAttribute("nonce", nonce); }
14
15  // WebKit hack :(
16  // style.appendChild(document.createTextNode(""));
17
18  // Add the <style> element to the page
19  document.querySelector('head').appendChild(style);
20
21  return style.sheet ? style.sheet : style.styleSheet;
22};

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.