PageSourceSearch

https://alamys.org/wp-content/plugins/grupo-interes/js/jquery.confirm/jquery.confirm.js?ver=6.9.9

js alamys.org collected 2026-10-02 12:15:43 UTC 1,304 bytes, 61 lines download raw bytes

1(function (window, document, $, undefined) {
2	"use strict";
3	
4	$.confirm = function(params){
5		
6		if($('#confirmOverlay').length){
7			// A confirm is already shown on the page:
8			return false;
9		}
10		
11		var buttonHTML = '';
12		$.each(params.buttons,function(name,obj){
13			
14			// Generating the markup for the buttons:
15			
16			buttonHTML += '<a href="#" class="button '+obj['class']+'">'+name+'</a>';
17			
18			if(!obj.action){
19				obj.action = function(){};
20			}
21		});
22		
23		var markup = [
24			'<div id="confirmOverlay">',
25			'<div id="confirmBox">',
26			'<h1>',params.title,'</h1>',
27			'<p>',params.message,'</p>',
28			'<div id="confirmButtons">',
29			buttonHTML,
30			'</div></div></div>'
31		].join('');
32		
33		$(markup).hide().appendTo('body').fadeIn();
34		
35		var buttons = $('#confirmBox .button'),
36			i = 0;
37
38		$.each(params.buttons,function(name,obj){
39			buttons.eq(i++).click(function(){
40				
41				// Calling the action attribute when a
42				// click occurs, and hiding the confirm.
43				
44				obj.action();
45				$.confirm.hide();
46				return false;
47			});
48		});
49	}
50
51	$.confirm.hide = function(){
52		$('#confirmOverlay').fadeOut(function(){
53			$(this).remove();
54		});
55	}
56	$.fn.confirm = function (options) {
57		return this;
58	}
59	
60})(window, document, jQuery);
61

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.