PageSourceSearch

https://pc.mpo.jp/modalConfirm.js

js mpo.jp collected 2026-10-02 12:24:05 UTC 1,780 bytes, 86 lines download raw bytes

1$(function(){
2	var modal = $(".modal");//ƒ‚[ƒ_ƒ‹ƒEƒCƒ“ƒhƒE‚̃Nƒ‰ƒX
3	var modal2 = $(".modal2");//ƒ‚[ƒ_ƒ‹ƒEƒCƒ“ƒhƒE‚̃Nƒ‰ƒX
4	var opacity = 1.0;//ƒ‚[ƒ_ƒ‹”wŒi‚Ì“§–¾“x
5	var button = $(".close_modal");//ƒ‚[ƒ_ƒ‹‰ðœƒ{ƒ^ƒ“‚̃Nƒ‰ƒX
6	var button2 = $(".close_modal2");//ƒ‚[ƒ_ƒ‹‰ðœƒ{ƒ^ƒ“‚̃Nƒ‰ƒX
7	var limit = 120;//Cookie‚Ì—LŒøŠúŒÀ(•ª)
8	var ua = navigator.userAgent;
9	var cookie = $.cookie("modal");
10	
11		var overlay = $("<div></div>");
12		overlay.css({
13			"position":"fixed",
14			"z-index":100,
15			"top":0,
16			"left":0,
17			"height":100+"%",
18			"width":100+"%",
19			"background":"#000",
20			"opacity":opacity,
21
22		});
23
24		var overlay2 = $("<div></div>");
25		overlay2.css({
26			"position":"fixed",
27			"z-index":100,
28			"top":0,
29			"left":0,
30			"height":100+"%",
31			"width":100+"%",
32			"background":"rgba(0,0,0,0.8)",
33			"opacity":opacity,
34
35		});
36
37	
38	if(cookie !== "off"){
39
40		$("body").append(overlay);
41		modal.css("display", "block");
42	}
43	if(cookie == "off"){
44        $('#wrap').removeClass("blur");
45        
46        if (ua.indexOf('Intel Mac OS X') > 0){
47		    $("body").append(overlay2);
48		    modal2.css("display", "block");
49        }
50    }
51    
52    button2.click(function(){
53		$(overlay2).fadeOut("slow");
54		
55		$('#wrap').removeClass("blur");
56		modal2.hide();
57		
58    });
59    
60	button.click(function(){
61		$(overlay).fadeOut("slow");
62		$('#wrap').removeClass("blur");
63		modal.hide();
64		
65		if (ua.indexOf('Intel Mac OS X') > 0){
66    		$("body").append(overlay2);
67	    	modal2.css("display", "block");
68		}
69		
70		var clearTime = new Date();
71		clearTime.setTime(clearTime.getTime()+(limit*60*1000));
72		$.cookie("modal", "off", {expires:clearTime, path:"/"});
73	});
74	$(".remove_cookie").click(function(){
75		$.removeCookie("modal", {expires:-1, path:"/"});
76		location.reload();
77	});
78	
79	
80	
81	
82	
83	
84	
85	
86});

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.