PageSourceSearch

https://securitylab.lat/js/image_croper.js

js securitylab.lat collected 2026-10-05 23:27:24 UTC 1,738 bytes, 56 lines download raw bytes

1$( document ).ready(function() {
2	$( window ).resize(function() {
3		bannerReload();
4	});
5	bannerReload();
6});
7
8function bannerReload(){
9	var iWidth = $( window ).width();
10	console.log( "load:"+iWidth );
11	if($(".banner_728-90-desktop").html()!='undefined'){
12
13		$(".banner_728-90-mobile").html($(".banner_728-90-desktop").html());
14
15		var linkImage = $(".banner_728-90-mobile").find('img').attr("src");
16		if(linkImage !== undefined){
17			console.log("link image src: "+linkImage);
18			$(".banner_728-90-mobile").find("a").addClass("bg-cover");
19			$(".banner_728-90-mobile").find("img").addClass("d-none");
20			//var linkImage = $(".banner_728-90-mobile").find('img').attr("src");
21
22			$(".banner_728-90-mobile").find("a").css('background-image', 'url(' + linkImage + ')');
23		}
24	}
25	if($(".banner_240-400-desktop").html()!='undefined'){
26		$(".banner_240-400-mobile").html($(".banner_240-400-desktop").html());
27	}
28
29	// width 768
30	if(iWidth <= 990){
31		$(".banner_728-90-mobile").removeClass("d-none");
32		$(".banner_240-400-mobile").addClass("d-none");
33//		$(".banner_728-90-desktop").addClass("d-none");
34	}
35	if(iWidth > 990){
36		$(".banner_728-90-mobile").addClass("d-none");
37		$(".banner_240-400-mobile").addClass("d-none");
38//		$(".banner_728-90-desktop").removeClass("d-none");
39	}
40	// width 768
41
42	// mobile 320
43	if(iWidth <= 500){
44		$(".banner_728-90-mobile").removeClass("d-none");
45		$(".banner_240-400-mobile").removeClass("d-none");
46		$(".banner_728-90-mobile").removeClass("d-none");
47
48//		$(".banner_728-90-desktop").addClass("d-none");
49
50	}
51	if(iWidth > 501){
52		$(".banner_240-400-mobile").addClass("d-none");
53//		$(".banner_728-90-desktop").removeClass("d-none");		
54	}
55	// mobile 320
56}

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.