PageSourceSearch

https://friche-escalette.com/wp-content/themes/html5blank-stable/js/reziseimg.js

js friche-escalette.com collected 2026-10-04 02:16:26 UTC 2,185 bytes, 106 lines download raw bytes

1(function ($, root, undefined) {
2	
3	$(function () {
4
5		$.fn.tagName = function() { return this.get(0).tagName.toLowerCase(); }
6
7		'use strict';
8
9		var the_timer;
10
11
12function fullscreenbg(){
13
14 if(!$('body').hasClass('page-template-page-prog-php')){
15            	
16    
17$(".loaded, .page figure").each(function(){
18
19
20	var $this = $(this);
21
22	if( $this.hasClass("responsive")){
23			$this.picture();
24
25		}else if( $this.hasClass("full") ){
26
27
28
29
30
31				if( $this.tagName() != 'figure'){
32                            var img =  $this.find('figure');
33                        }else{
34                            var img =  $this;
35                        }
36
37
38
39
40                    var imgdesk = img.attr('data-media1024'),
41                        imgpad = img.attr('data-media768'),
42                        imgminipad = img.attr('data-media320'),
43                        imgmob = img.attr('data-media'),
44                        imgurl = null;
45
46                        if(  $(window).width() < 321 ){
47                            imgurl = imgmob;
48                        }else if(  $(window).width() > 320 &&  $(window).width() < 768 ){
49                            imgurl = imgminipad;
50                        }else if(  $(window).width() > 767 &&  $(window).width() < 1024 ){
51                            imgurl = imgpad;
52                        }else{
53                            imgurl = imgdesk;
54                        }
55
56
57                        img.css({"background-image":"url("+imgurl+")"});
58
59
60
61			               if( !$this.hasClass("imgjs") && !$('body').hasClass('home') ){
62			                $this.append('<img src="'+imgurl+'" style="opacity:0;position:absolute;top:0;left:0" >');
63			                $this.addClass("imgjs");
64			              }
65
66
67					}
68
69
70       		});
71
72        }
73		 
74		 }
75
76
77			$(document).ready(function() { 
78		
79			var ua = window.navigator.userAgent;
80            var msie = ua.indexOf("MSIE ");
81
82
83
84			fullscreenbg(); 
85
86
87				if( msie == 0 ){
88				window.addEventListener('resize', 
89
90					function(){  
91
92					  clearTimeout(the_timer);  
93					  the_timer = setTimeout(function(){  
94					  			fullscreenbg(); 
95					  }, 75); 
96
97					});
98
99					}  
100
101	
102			})
103
104		});
105	
106	})(jQuery, this);

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.