PageSourceSearch

https://www.mastered.meylercampbell.com/script/widgets.js?1692002820

js meylercampbell.com collected 2026-10-02 06:14:54 UTC 6,702 bytes, 183 lines download raw bytes

1var widgets={
2    init: function(){ 
3
4        widgets.widgets_init();
5        widgets.toggel_content();
6        widgets.get_next_prev_events();
7        widgets.get_event_tooltip();
8        widgets.init_request_dialog();
9    //widgets.save_widgets_order();
10        
11    },
12    get_next_prev_events:function(){
13        //Event callender next periv
14        $('.ev-cl-next-prev').live('click',function(){
15            var np_url = $(this).attr('href');
16            $.ajax({
17                type: 'GET',
18                //dataType: 'json',
19                url:np_url,
20                success: function(res){
21                    $('.widget_callender').replaceWith(res).fadeIn(200);
22                /*$('.widget_callender').fadeOut(100,function(){
23                        $('.widget_callender').replaceWith(res).fadeIn(200);
24                    });*/
25                //$('#event_calendar_outer').html(res);
26                }
27            });
28            return false;
29        });  
30    },
31    get_event_tooltip:function(){
32        $('.day-default .show_tooltip').live('click',function(){
33            return false;
34        });
35        $('.day-default .show_tooltip').live('mouseenter',function(){
36            var link = $(this);
37            var div = $(link).parent();
38            var np_url = $(this).attr('href');
39            //var pos = $(this).p();
40            $.ajax({
41                type: 'GET',
42                //dataType: 'json',
43                url:np_url,
44                success: function(res){
45                    $('.cl_tooltip').remove();
46                    $(link).parent().append(res);
47                    //$(div).children('.cl_tooltip').css('top',(pos.top-20)+'px');
48                    //$(div).children('.cl_tooltip').css('left', (pos.left+15)+'px');
49                    $(div).children('.cl_tooltip').fadeIn(500);
50                }
51            });
52            return false;
53        });  
54        $('.cl_tooltip').live('mouseleave', function(){
55            $(this).fadeOut(500);
56        });
57            
58         
59            
60            
61    },
62    widgets_init:function(){
63        $( ".column" ).sortable({
64            connectWith: ".column",
65            handle: '.portlet-header',
66            forcePlaceholderSize: true,
67            opacity: 0.8,
68            revert: true,
69            stop: function(event, ui){
70                var result ='';
71                $('.column').each(function(i){
72                    var col = i+1;
73                    if(i==0){
74                        result += $(this).sortable('serialize',{
75                            key: 'col_'+col+'[]'
76                        } );
77                    }
78                    else{
79                        result += '&'+ $(this).sortable('serialize',{
80                            key: 'col_'+col+'[]'
81                        } );
82                    }
83                });
84                //var result = $(this).sortable('serialize');
85            
86                $.ajax({
87                    type:'post',
88                    url: base_url+ 'home/save_widget_order',
89                    data: result
90                });
91            }
92        });
93
94        /*$( ".portlet" ).addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
95        .find( ".portlet-header" )
96        .addClass( "ui-widget-header ui-corner-all" )
97        .prepend( "<span class='ui-icon ui-icon-minusthick'></span>")
98        .prepend( "<span class='ui-icon ui-icon-closethick'></span>")
99        .end()
100        .find( ".portlet-content" );*/
101
102        $( ".column .portlet-header" ).disableSelection();
103
104    },
105    toggel_content:function(){
106        $( ".portlet-header .ui-icon-minusthick" ).click(function() {
107            $( this ).toggleClass( "ui-icon-minusthick" ).toggleClass( "ui-icon-plusthick" );
108            $( this ).parents( ".portlet:first" ).find( ".portlet-content" ).toggle();
109        });
110    },
111    delete_widgets:function(){
112        $( ".portlet-header .ui-icon-closethick" ).click(function() {
113            $( this ).toggleClass( "ui-icon-minusthick" ).toggleClass( "ui-icon-plusthick" );
114            $( this ).parents( ".portlet:first" ).find( ".portlet-content" ).toggle();
115        });
116    },
117    save_widgets_order: function(){
118        $.ajax({
119            type: 'POST',
120            dataType: 'json',
121            url: "dialog.php?area=reminder&page=ajax_request&action=save_reminder",
122            data: $('#reminder_form').serialize(),
123            beforeSend: function( ) {
124            //$("#tab_reminder").mask("Waiting...");
125            },
126            success: function(res){
127                if(res.status==1){
128                    $('.loadmask-msg').html('<div>Success: '+res.msg+'</div>');
129                    if(res.reminder_id !='undefined' && res.reminder_id > 0){
130                        $('#reminder_id').val(res.reminder_id);
131                                
132                    }
133                    var redir = $('#redir_url').attr('href');
134                    if(redir !='undefined' && redir !=''){
135                        $(location).attr('href',redir);
136                    }
137                            
138                    setTimeout(function(){ 
139                        //$("#tab_reminder").unmask();
140                        }, 1000 ); 
141                }
142                else{
143                    $('.loadmask-msg').html('<div>Error: '+res.msg+'</div>');
144                    setTimeout(function(){ 
145                        //$("#tab_reminder").unmask();
146                        }, 1000 );
147                }
148                        
149            }
150        });
151            
152        
153    },
154    init_request_dialog:function(){
155        $( "#info_dialog" ).dialog({
156            autoOpen: false,
157            modal: true,
158            width: 550,
159            height: 'auto',
160            resizable: false,
161            //title: 'Save search',
162            dialogClass: 'info_dialog'
163        });
164    
165        $('.dialog_close').live('click',function(){
166            $( "#info_dialog" ).dialog('close');
167        });
168    
169        $('#show_request_info').click(function(){
170            $("#info_dialog .info_dialog_head .dialog_close").remove();
171            $("#info_dialog .info_dialog_head").append('<span class="dialog_close">X</span>')
172            $("#info_dialog" ).dialog('open');
173            return false;
174        });
175        
176        $('#submits_req_info').live('click',function(){
177            $('#request_info_form').submit();
178            $( "#info_dialog" ).dialog('close');
179            return false;
180        });
181    }
182
183}

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.