PageSourceSearch

https://nelsoncarvalheiro.com/wp-content/themes/uncode/library/js/printScreen.js?ver=923077423

js nelsoncarvalheiro.com collected 2026-10-02 12:23:54 UTC 971 bytes, 34 lines download raw bytes

1(function($) {
2	"use strict";
3
4	UNCODE.printScreen = function() {
5	var inlineMediaStyle = null,
6		setResize;
7
8    function changeMediaStyle() {
9		clearRequestTimeout(setResize);
10		setResize = requestTimeout(function(){
11	        var $head = document.getElementsByTagName('head')[0],
12	        	$newStyle = document.createElement('style'),
13	        	winW = window.innerWidth,
14	        	printH = window.innerHeight;
15
16	        $newStyle.setAttribute('type', 'text/css');
17	        $newStyle.setAttribute('media', 'print');
18	        $newStyle.appendChild(document.createTextNode('@page { size: ' + winW + 'px ' + printH + 'px; margin: 0; }'));
19
20	        if (inlineMediaStyle != null) {
21	            $head.replaceChild($newStyle, inlineMediaStyle)
22	        } else {
23	            $head.appendChild($newStyle);
24	        }
25	        inlineMediaStyle = $newStyle;
26	    }, 1000);
27    }
28
29    changeMediaStyle();
30    window.addEventListener('resize', changeMediaStyle);
31};
32
33
34})(jQuery);

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.