PageSourceSearch

https://www.rculturi.com/wp-content/plugins/magee-shortcodes/assets/js/magee-modal_ver-1.6.0.js

js rculturi.com collected 2026-09-26 08:07:15 UTC 1,838 bytes, 46 lines download raw bytes

1(function($){
2
3	$.fn.mgmodal = function(options){
4	var options = $.extend({
5		title: '',
6	    message: '',
7		close_icon : '',
8		type : 'effect-1',
9		id : ''
10		}, options);	
11     return this.each(function(){
12		 var obj = $(this);
13		 if(options.type === '') options.type = 'effect-1';
14		 if(options.close_icon === '')options.close_icon = 'yes';
15		 obj.wrap('<div class="ms-modal-wrapper"></div>');
16		 obj.after('<div class="magee-modal-wrapper" id="'+options.id+'"></div>');
17		 var container = obj.parent('.ms-modal-wrapper').find('.magee-modal-wrapper');
18		 container.append('<div class="magee-modal magee-modal-'+options.type+'"></div><div class="magee-modal-overlay"></div>');
19		 var magee_modal = container.find('.magee-modal');
20		 magee_modal.append('<div class="magee-modal-content-wrapper"><div class="magee-modal-title-wrapper"></div><div class="magee-modal-content"></div></div>');
21		 var magee_modal_title = container.find('.magee-modal-title-wrapper');
22		 if(options.close_icon === 'yes'){
23			magee_modal_title.append('<h3>'+ options.title +'<a href="javascript:void(0);" class="magee-modal-close"><i class="fa fa-remove"></i></a></h3>');
24			 }else{
25			 magee_modal_title.append('<h3>'+ options.title +'</h3>');	 
26				 }
27		 var magee_modal_content = container.find('.magee-modal-content');
28		 magee_modal_content.append(options.message);
29		 var modal_close_icon = container.find('a.magee-modal-close');
30		 modal_close_icon.on('click',function(e){
31			   e.preventDefault();
32			   magee_modal.removeClass('magee-modal-show');
33			 });
34		 var magee_modal_overlay = container.find(".magee-modal-overlay");
35		  magee_modal_overlay.on('click',function(){
36			   magee_modal.removeClass('magee-modal-show');
37			 });
38		 obj.on('click',function(){
39			 magee_modal.addClass('magee-modal-show');
40			 
41			 });	 	 
42		 });		
43		
44	};
45	
46})(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.