PageSourceSearch

https://romantavast.ee/wp-content/plugins/apex-notification-bar-lite/js/frontend/frontend.js?ver=2.0.6

js romantavast.ee collected 2026-10-02 14:09:19 UTC 52,541 bytes, 1,080 lines download raw bytes

1(function ($) {
2  $(function () {
3    var apexnb_ajax_url   = apexnblite_script_variable.ajax_url;
4    var apexnb_ajax_nonce = apexnblite_script_variable.ajax_nonce ;
5
6
7    /* OPT FORM: Subscribe Custom Form JS START */
8    $('.edn_subs_email_r').keyup(function(){
9      if($(this).val() != ''){
10        $(this).css('border-color','');
11      }
12    });
13       //custom subscribe form submission
14       $('.edn_subs_submit_ajax').click(function(){
15        var selector = $(this);
16
17        var but_email_error_msg = selector.closest('.edn-subscribe-form').find('input.edn-subs-email-error-msg').val();
18        if(but_email_error_msg == ''){
19          but_email_error_msg = apexnblite_script_variable.but_email_error_msg;
20        }
21        var success_note = selector.closest('.edn-subscribe-form').find('input.edn-success-note').val();
22        if(success_note == ''){
23          success_note = apexnblite_script_variable.success_note;
24        }
25        var already_subs = selector.closest('.edn-subscribe-form').find('input.edn-subs-already-subscribed').val();
26        if(already_subs == ''){
27          already_subs = apexnblite_script_variable.already_subs;
28        }
29        var check_to_conform = selector.closest('.edn-subscribe-form').find('input.edn-subs-checktoconfirmmsg').val();
30        if(check_to_conform == ''){
31          check_to_conform = apexnblite_script_variable.check_to_conform;
32        }
33        var sending_fail = selector.closest('.edn-subscribe-form').find('input.edn-subs-sending-fail').val();
34        if(sending_fail == ''){
35          sending_fail = apexnblite_script_variable.sending_fail;
36        }
37
38        var barid = selector.closest('.edn-subscribe-form').find('.apexnb-bar-id').val();
39        var email = selector.closest('.edn-subscribe-form').find('input[name="edn_email"].edn_subs_email_r').val();
40
41        var error_flag = 0;
42        if(email == ''){
43          error_flag = 1;
44          selector.closest('.edn-subscribe-form').find('.edn-error').html(but_email_error_msg);
45        }else if(!validateEmail(email)){
46          error_flag = 1;            
47          selector.closest('.edn-subscribe-form').find('.edn-error').html(but_email_error_msg);
48        }
49        if (error_flag == 0)
50        {
51          selector.closest('.edn-subscribe-form').find('.edn_subs_email_r').css('border-color','');
52          var confirm = selector.closest('.edn-subscribe-form').find('.edn-subs-email-confirm').val();          
53          var page_id = selector.closest('.edn-subscribe-form').find('.edn-page-id').val();
54          $.ajax({
55            url: apexnb_ajax_url,
56            type: 'post',
57            dataType: 'html',
58            data: {
59              action:'subscribe_ajax',
60              email: email,
61              confirm: confirm,
62              page_id: page_id,
63              bar_id :barid,
64              nonce: apexnb_ajax_nonce,
65            },
66            beforeSend: function() {
67              selector.closest('.edn-subscribe-form').find('.edn-ajax-loader').show('slow');
68            },
69            complete: function() {
70             selector.closest('.edn-subscribe-form').find('.edn-ajax-loader').hide('slow');
71           },
72           success: function(resp) {
73            if(resp=='success'){
74              selector.closest('.edn-subscribe-form').find('.edn-error').html('');
75              selector.closest('.edn-subscribe-form').find('.edn-subs-success').html(success_note).delay(5000).fadeOut();
76              selector.closest('.edn-subscribe-form').find('.edn_subs_email_r').val('');
77            }else if(resp=='aready'){
78              selector.closest('.edn-subscribe-form').find('.edn-error').html(already_subs).delay(5000).fadeOut();
79              selector.closest('.edn-subscribe-form').find('.edn_subs_email_r').val('');
80            }else if(resp=='confirm'){
81              selector.closest('.edn-subscribe-form').find('.edn-subs-success').html(check_to_conform).delay(5000).fadeOut();
82              selector.closest('.edn-subscribe-form').find('.edn_subs_email_r').val('');
83            }else if(resp=='fail'){
84              selector.closest('.edn-subscribe-form').find('.edn-error').html(sending_fail).delay(5000).fadeOut();
85              selector.closest('.edn-subscribe-form').find('.edn_subs_email_r').val('');
86            }
87          }
88        });
89        }
90      });
91       $('input[name="edn_email"]').keyup(function () {
92
93        var val1 = $(this).val(); 
94        var but_email_error_msg = $(this).closest('.edn-subscribe-form').find('input.edn-subs-email-error-msg').val();
95        if(but_email_error_msg == ''){
96          but_email_error_msg = apexnblite_script_variable.but_email_error_msg;
97        }
98        if(val1 == ''){
99         $(this).closest('.edn-subscribe-form').find('.edn-error').html('');
100       }else{
101         if(!validateEmail(val1)){
102          $(this).closest('.edn-subscribe-form').find('.edn-error').html(but_email_error_msg);
103        } else{  
104         $(this).closest('.edn-subscribe-form').find('.edn-error').html('');
105       }
106     } 
107   });
108
109       /* SUbscribe Custom Form END */
110
111
112
113       var mySlider;
114       var barHeight;
115       var barHeight2;
116
117       /* Contact Us form DIsplay */
118       $('.edn-notify-bar').on('click', '.edn-contact-form-button', function () {
119         var id = $(this).data('id');
120         if( $(this).hasClass('edn-multiple-cf-btn')){   
121           var id_array = id.split('_');
122           $(this).closest('.edn-notify-bar').find('.edn-multiple-'+id_array[1]).show(400); 
123         }else{
124          $(this).closest('.edn-notify-bar').find('#'+id+'-lightbox').show(400);
125        }
126      });
127
128
129
130       $('body').on('click','.edn-contact-close',function(){
131        $(this).closest('.edn-contact-lightbox').hide(400);
132        $('.edn_error').html('');
133        $('.edn-success').html('');
134        $('.edn-error').html('');
135      });
136
137       $(document).keyup(function(e) {
138                 if (e.keyCode == 27) { // escape key maps to keycode `27`
139                   $('.edn-contact-lightbox').hide(400);
140                   $('.edn_error').html('');
141                   $('.edn-success').html('');
142                   $('.edn-error').html('');
143                 }
144               });
145       $('.ednpro_overlay').click(function(){
146        $(this).closest('.edn-notify-bar').find('.edn-contact-lightbox').hide(400);
147        $(this).closest('.edn-notify-bar').find('.edn_error').html('');
148        $(this).closest('.edn-notify-bar').find('.edn-success').html('');
149        $(this).closest('.edn-notify-bar').find('.edn-error').html('');
150      });
151       
152
153       /* Contact US Form*/
154       $('.edn-contact-submit').click(function(){
155
156        var selector = $(this);
157        var baridd = selector.closest('.edn-notify-bar').attr('data-barid');
158        var bariddd = baridd.split('-');
159        var barid = bariddd[1];
160
161        var formtype = selector.closest('.edn-notify-bar').attr('data-formtype');
162        var id = selector.attr('id');
163        var error_flag = 0;
164        
165        var empty_name = selector.closest('.edn-notify-bar').find('input[name="edn_contact_us_name"]').data('name-error-msg');
166        var empty_email = selector.closest('.edn-notify-bar').find('input[name="edn_contact_us_email"]').data('email-error-msg');
167        var valid_email = selector.closest('.edn-notify-bar').find('input[name="edn_contact_us_email"]').data('email-valid-msg');
168
169        var id_array = ['',''];
170        var error_id = '';
171        if(selector.hasClass('edn-multiple')){
172          id_array = id.split('_');
173          var email = selector.closest('.edn-notify-bar').find('input[name="edn_contact_us_email"]#edn-multi-email-'+id_array[1]).val();
174          var name = selector.closest('.edn-notify-bar').find('input[name="edn_contact_us_name"]#edn-multi-name-'+id_array[1]).val();
175          var check_message_required = selector.closest('.edn-notify-bar').find('#edn_required_message-'+barid+'-'+id_array[1]).val();
176          var error_id = '-'+id_array[1];
177          var formtype = "multiple";
178          var message = selector.closest('.edn-notify-bar').find('textarea[name="edn_contact_us_message"]#edn_contact_us_'+barid+'_message'+id_array[1]).val();
179          var error_message = selector.closest('.edn-notify-bar').find('#edn_contact_us_'+barid+'_message'+id_array[1]).data('message-error');
180        }else{
181          var name = selector.closest('.edn-notify-bar').find('input[name="edn_contact_us_name"]').val();
182          var email = selector.closest('.edn-notify-bar').find('input[name="edn_contact_us_email"]').val();
183          var message = selector.closest('.edn-notify-bar').find('textarea[name="edn_contact_us_message"]').val();
184          var formtype = "static";
185          var check_message_required =  selector.closest('.edn-notify-bar').find('#edn_required_message-'+barid).val();
186          var error_message = selector.closest('.edn-notify-bar').find('#edn_contact_us_'+barid+'_message').data('message-error');
187          error_id = '';
188          id_array = ['',''];
189        }
190
191
192        if(id=='edn-both-required-submit-'+barid || id=='edn-both-required-submit_'+id_array[1]+'_'+barid){
193
194          if(name == ''){
195            error_flag = 1;
196            selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_name"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html(empty_name);
197          }else{
198            error_flag = 0;
199            selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_name"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html('');
200          }
201          if(check_message_required == 1){
202                    // alert(check_message_required);
203
204                    if(message == ''){
205                     error_flag = 1;
206                     selector.closest('.apexnb-ccform').find('#edn_contact_us_'+barid+'_message'+id_array[1]).closest('.edn-field-wrapper').find('.edn_error'+error_id).html(error_message);
207                   }else{
208                     error_flag = 0;
209                     selector.closest('.apexnb-ccform').find('#edn_contact_us_'+barid+'_message'+id_array[1]).closest('.edn-field-wrapper').find('.edn_error'+error_id).html('');
210                   }
211                 }else{
212                   error_flag = 0;
213                   selector.closest('.apexnb-ccform').find('#edn_contact_us_'+barid+'_message'+id_array[1]).closest('.edn-field-wrapper').find('.edn_error'+error_id).html('');
214                 }
215                 if(email == ''){
216                  error_flag = 1;
217                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html(empty_email);
218                }else if(!validateEmail(email)){
219                  error_flag = 1;              
220                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html(valid_email);
221                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').focus();
222                }else{
223                  error_flag = 0;
224                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html('');
225                }
226              }else if(id=='edn-name-required-submit-'+barid || id=='edn-name-required-submit_'+id_array[1]+'_'+barid){
227                if(name == ''){
228                  error_flag = 1;
229                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_name"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html(empty_name);
230                }else{
231                  error_flag = 0;
232                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_name"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html('');
233                }
234              }else if(id=='edn-email-required-submit-'+barid || id=='edn-email-required-submit_'+id_array[1]+'_'+barid){
235                if(email == ''){
236                  error_flag = 1;
237                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html(empty_email);
238                }else if(!validateEmail(email)){
239                  error_flag = 1;
240                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html(valid_email);
241                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').focus();
242                }else{
243                  error_flag = 0;
244                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html('');
245                }
246              }else{
247                if(email == ''){
248                  error_flag = 1;
249                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html(empty_email);
250                }else if(!validateEmail(email)){
251                  error_flag = 1;
252                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').closest('.edn-field-wrapper').find('.edn_error'+error_id).html(valid_email);
253                  selector.closest('.apexnb-ccform').find('input[name="edn_contact_us_email"]').focus();
254                }else{
255                  error_flag = 0;
256                  selector.closest('.edn-contact-lightbox-inner-content').find('.edn_error'+error_id).html('');
257                }
258              }
259
260              if (error_flag == 0)
261              {
262               // var msg =selector.closest('.edn-notify-bar[data-barid='+barid+']').find('#edn_contact_us_'+barid+'_message'+id_array[1]).val();
263
264
265               $.ajax({
266                url: apexnb_ajax_url,
267                type: 'post',
268                dataType: 'html',
269                data: {
270                  action:'contact_us_ajax',
271                  name: name,
272                  email: email,
273                  message: message,
274                  barid : barid,
275                  formtype: formtype,
276                  id_array: id_array[1],
277                  nonce: apexnb_ajax_nonce,
278                },
279                beforeSend: function() {
280                 selector.closest('.edn-notify-bar[data-barid='+baridd+']').find('.edn-ajax-loader').show();
281               },
282               complete: function() {
283                 selector.closest('.edn-notify-bar[data-barid='+baridd+']').find('.edn-ajax-loader').hide();
284               },
285               success: function(resp) {
286                if(resp==1){
287                 selector.closest('.edn-field-wrapper').find('.edn-success').show().delay(5000).fadeOut();
288                 selector.closest('.edn-notify-bar[data-barid='+baridd+']').find('input[type=text]').val(''); 
289                 selector.closest('.edn-notify-bar[data-barid='+baridd+']').find('textarea[name="edn_contact_us_message"]').val('');
290                 selector.closest('.edn-notify-bar[data-barid='+baridd+']').find('input[type=select]').val('');
291                 selector.closest('.edn-notify-bar[data-barid='+baridd+']').find('input[type=radio]').val('');
292                 selector.closest('.edn-notify-bar[data-barid='+baridd+']').find('input[type=checkbox]').val(''); 
293                 selector.closest('.edn-notify-bar[data-barid='+baridd+']').find('.edn_error').fadeOut();
294               }else{
295                 selector.closest('.edn-field-wrapper').find('.edn-error').show().delay(5000).fadeOut();
296               }
297             }
298           });
299             }
300           });
301
302$('.edn-default-form-popup input[name="edn_contact_us_name"]').keyup(function () {     
303  $(this).closest('.edn-field-wrapper').find('.edn-error').html('');
304  $(this).closest('.edn-field-wrapper').find('.edn_error').html('');
305}); 
306$('.edn-default-form-popup textarea[name="edn_contact_us_message"]').keyup(function () {       
307 $(this).closest('.edn-field-wrapper').find('.edn_error').html('');
308 $(this).closest('.edn-field-wrapper').find('.edn-error').html('');
309});
310$('.edn-default-form-popup input[name="edn_contact_us_email"]').keyup(function () { 
311 var val = $(this).val(); 
312 var valid_email = $('input[name="edn_contact_us_email"]').data('email-valid-msg'); 
313 if(!validateEmail(val)){
314   $(this).closest('.edn-field-wrapper').find('.edn-error').html(valid_email);
315   $(this).closest('.edn-field').find('.edn_error').html(valid_email);
316 }else{
317   $(this).closest('.edn-field-wrapper').find('.edn-error').html('');
318   $(this).closest('.edn-field-wrapper').find('.edn_error').html('');
319 }   
320
321});
322
323        // Function that validates email address through a regular expression.
324        function validateEmail(email) {
325          var filter = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
326          if (filter.test(email)) {
327            return true;
328          }
329          else {
330            return false;
331          }
332        }
333
334
335        /* Components Bar Effect */ 
336
337        $('.edn-multiple-content,.edn-twitter-feed,.edn-post-title,.edn-rss-feed').each(function(){
338          var id = $(this).attr('id');
339          var barid = $(this).attr('data-barid');
340
341          if(id == 'edn-twitter-effect-ticker-'+barid || id =='edn-post-effect-ticker-'+barid || id == 'edn-rss-effect-ticker-'+barid || id=='edn-effect-ticker-'+barid){
342           /* **** Ticker Option **** */
343           var ticker_hover = $('#apexnb-ticker-'+barid).data('ticker-hover');
344           var ticker_speed = $('#apexnb-ticker-'+barid).data('ticker-speed');
345           var ticker_direction = $('#apexnb-ticker-'+barid).data('ticker-direction');
346           var ticker_title =  $('#apexnb-ticker-'+barid).data('ticker-title');
347           if(ticker_title == ''){
348            ticker_title = "Latest";
349          }
350          if(ticker_speed == ''){
351            ticker_speed = 0.10;
352          }
353          $('#'+id).ticker({
354                speed: ticker_speed,  // The speed of the reveal
355                tickerHover: ticker_hover,         
356                ajaxFeed: false,       // Populate jQuery News Ticker via a feed
357                feedUrl: false,        // The URL of the feed
358                feedType: 'xml',       // Currently only XML
359                htmlFeed: true,        // Populate jQuery News Ticker via HTML
360                debugMode: true,       // Show some helpful errors in the console or as alerts
361                controls: false,        // Whether or not to show the jQuery News Ticker 
361controls
362                titleText: ticker_title,   // To remove the title set this to an empty String
363                direction: ticker_direction,     // Ticker direction - current options are 'ltr' or 'rtl'
364              });
365        }else if(id=='edn-twitter-effect-slider-'+barid || id=='edn-post-effect-slider-'+barid || id == 'edn-rss-effect-slider-'+barid || id=='edn-effect-slider-'+barid){
366          var controls = $('#apexnb-ticker-'+barid).data('slider-controls');
367          if(controls == 1){var control = true;}else{var control = false;}
368          var slider_duration = $('#apexnb-ticker-'+barid).data('slider-duration');
369          var auto_slide = $('#apexnb-ticker-'+barid).data('slider-auto');
370          if(auto_slide == ''){
371            auto_slide = true;
372          }
373          if(slider_duration == ''){
374            slider_duration = 8000;
375          }
376                var slider_transition = $('#apexnb-ticker-'+barid).data('slider-transition'); //speed
377                if(slider_transition == ''){
378                  slider_transition = 5000;
379                }
380                var adaptive_height = $('#apexnb-ticker-'+barid).data('slider-adaptive-height');
381                if(adaptive_height == ''){
382                  adaptive_height = true;
383                }
384                var ticker_animation = $('#apexnb-ticker-'+barid).data('slider-animation');
385                mySlider = $('#'+id).bxSlider({
386                  auto: auto_slide,
387                  controls: control,
388                  pager: false,
389                  speed: slider_transition,
390                  pause: slider_duration,
391                  stopAuto: false,
392                  mode: ticker_animation,
393                  adaptiveHeight: adaptive_height,
394                  displaySlideQty: 1,
395                  moveSlideQty: 1,
396                  infiniteLoop: true,
397                  hideControlOnEnd: true
398                });
399                mySlider.reloadSlider();
400              }else if(id=='edn-twitter-effect-scroller-'+barid || id=='edn-post-effect-scroller-'+barid || id == 'edn-rss-effect-scroller-'+barid || id=='edn-effect-scroller-'+barid){
401                var controls = $('#apexnb-ticker-'+barid).data('scroll-controls');
402                if(controls == 1){var control = true;}else{var control = false;}
403                var scroll_direction = $('#apexnb-ticker-'+barid).data('scroll-direction');
404                var scroll_animation = $('#apexnb-ticker-'+barid).data('scroll-animation');
405                var scroll_speed = $('#apexnb-ticker-'+barid).data('scroll-speed');
406                if(scroll_speed == ''){
407                  scroll_speed = 0.10;
408                }
409                var scroll_title = $('#apexnb-ticker-'+barid).data('scroll-title');
410                if(scroll_title == ''){
411                  scroll_title = "Latest";
412                }
413                $('#'+id).ticker({
414                speed: scroll_speed,           // The speed of the reveal
415                ajaxFeed: false,       // Populate jQuery News Ticker via a feed
416                feedUrl: false,        // The URL of the feed
417                                   // MUST BE ON THE SAME DOMAIN AS THE TICKER
418                feedType: 'xml',       // Currently only XML
419                htmlFeed: true,        // Populate jQuery News Ticker via HTML
420                debugMode: true,       // Show some helpful errors in the console or as alerts
421                                   // SHOULD BE SET TO FALSE FOR PRODUCTION SITES!
422                controls: control,        // Whether or not to show the jQuery News Ticker controls
423                titleText: scroll_title,   // To remove the title set this to an empty String
424                displayType: scroll_animation, // Animation type - current options are 'reveal' or 'fade'
425                direction: scroll_direction,     // Ticker direction - current options are 'ltr' or 'rtl'
426                pauseOnItems: 2000,     //The pause on a news item before being replaced
427                fadeInSpeed: 1000,   //Speed of fade in animation
428                fadeOutSpeed: 2000      // Speed of fade out animation
429              });
430
431              }
432            });
433/* Bar effect end */
434
435/* Set and unset cookies on user close button */
436var reset,loggedinchecker;
437
438$('.edn-notify-bar').each(function(){
439 var selector            = $(this);
440 var selectorid          = $(this).attr('data-barid');
441         var close_type          = selector.find('.edn-visibility-bar-options').data('close-type'); // show-hide or user can close or always show type
442
443         var close_once          = selector.find('.edn-visibility-bar-options').data('close-once');  //Note:  display only once after user close.
444         var duration_closetime  = selector.find('.edn-visibility-bar-options').data('duration-close');
445         var show_once_hideshow  = selector.find('.edn-visibility-bar-options').data('show_once_hideshow');
446
447         var show_once_loggedusers = selector.find('.edn-visibility-bar-options').data('show_once_loggedusers');
448         var check_loggedin = selector.find('.edn-visibility-bar-options').data('check_loggedin');
449         var check_userid = selector.find('.edn-visibility-bar-options').data('check_userid');
450         var nbid = selector.find('.edn-visibility-bar-options').data('notification_bar_id');
451
452         var get_cookie = getCookie1('show_toggle_check_'+nbid);
453
454      if(show_once_hideshow != 1){
455        delete_cookie('show_toggle_check_'+nbid);
456      }
457
458
459      if(close_type != "show-hide"){
460        delete_cookie('show_toggle_check_'+nbid);
461      }
462
463      if(typeof get_cookie !='undefined'){
464        $('.edn-notify-bar[data-barid=apexbar-'+nbid+']').addClass('open');
465        $('.edn-notify-bar[data-barid=apexbar-'+nbid+']').find('.edn-left-arrow,.edn-right-arrow,.edn-top-up-arrow,.edn-bottom-down-arrow').addClass('open');
466      }
467
468      /* check if show once bar to logged in users is enabled or not */  
469      if(show_once_loggedusers == 1){
470       reset = "1";
471     }else{
472      reset = "0";
473    }
474    /* check if any user is logged in? */  
475    if(check_loggedin == 1){
476     loggedinchecker = "1";
477   }else{
478    loggedinchecker = "0";
479  }
480
481  /* Toggle Button for Bar */
482  $(this).find('.edn-left-arrow,.edn-right-arrow,.edn-top-up-arrow,.edn-bottom-down-arrow').click(function(){ 
483    $(this).toggle(function(){ 
484
485      /* if bar is closed*/
486      if($(this).closest('.edn-notify-bar').hasClass('open')){
487
488        $(this).closest('.edn-notify-bar').removeClass('open');
489        $(this).removeClass('open');
490        barHeight = $(this).closest('.edn-notify-bar').find('.edn-container').outerHeight();
491        if ( $(this).closest('.edn-notify-bar.edn-position-top,.edn-notify-bar.edn-position-top_absolute').length > 0 ) {
492
493          $('body').css('padding-top', barHeight).addClass('has-ednbar').addClass('has-ednbar');
494          $('.masthead').css('margin-top',barHeight);
495                   
496                   var bq = barHeight + 104;
497                   $('.rev_slider img:nth-of-type(1)').css('margin-top',bq);
498
499                 }else if( $(this).closest('.edn-notify-bar.edn-position-bottom').length > 0){
500                   if($(this).closest('.edn-notify-bar').hasClass('edn-pro-open-panel-active')){
501                    if($(this).closest('.edn-notify-bar').hasClass('open')){
502                     $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('bottom',barHeight);
503                     $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('bottom',barHeight);
504                   }         
505                 }
506               }
507
508               
509
510             }else{
511
512               $(this).closest('.edn-notify-bar').addClass('open');
513               $(this).addClass('open');
514
515               if ( $(this).closest('.edn-notify-bar.edn-position-top,.edn-notify-bar.edn-position-top_absolute').length > 0 ) {
516                 $('body').css('padding-top','0px');
517                 $('.masthead').css('margin-top',0);
518
519               }else if( $(this).closest('.edn-notify-bar.edn-position-bottom').length > 0){
520                 if($(this).closest('.edn-notify-bar').hasClass('edn-pro-open-panel-active')){
521                  if($(this).closest('.edn-notify-bar').hasClass('open')){
522                   $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('bottom','0');
523                   $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('bottom','0');
524                 }         
525               }
526
527             }
528           }
529
530
531
532           if ( $(this).closest('.edn-notify-bar.edn-position-top,.edn-notify-bar.edn-position-top_absolute').length > 0 ) {
533            if($(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').length > 0){
534              $('body').css('padding-top','36px');
535              $('.rev_slider img:nth-of-type(1)').css('margin-top','72px');
536              $('.masthead').css('margin-top','36px');
537                   
538                 }
539               }
540               $('body').removeClass('has-ednbar');
541
542              
543                 if( reset == 1){
544                  if(loggedinchecker == 1 && nbid != ''){
545                   $.ajax({
546                    url: apexnb_ajax_url,
547                    type: 'post',
548                    dataType: 'html',
549                    data: {
550                      action:'ajax_reset_showonce',
551                      check_reset:reset,
552                      nb_id : nbid,
553                      userid: check_userid,
554                      loggedin_checker:loggedinchecker,
555                      nonce: apexnb_ajax_nonce,
556                    },
557                    beforeSend: function() {
558                      $('.edn-ajax-loader').show('slow');
559                    },
560                    complete: function() {
561                      $('.edn-ajax-loader').hide('slow');
562                    },
563                    success: function( resp ) {
564
565                     if(resp == "success"){
566                       $('.ednpro_main_wrapper.ednpro_section').css('display','none');
567                     }else{
568                      $('.ednpro_main_wrapper.ednpro_section').css('display','block');
569                    }
570
571                  }
572                });
573                 }
574               }else{     
575                if(show_once_hideshow == 1){
576                     setCookie('show_toggle_check_'+nbid, 'already_open', '86400'); // for 1 day
577                   }
578                 }
579
580                // setCookie('show_toggle_check', 'already_open', 5); // 5 second time 
581              }, function(){
582
583
584               if($(this).closest('.edn-notify-bar').hasClass('open')){
585                 $(this).closest('.edn-notify-bar').removeClass('open');
586                 $(this).closest('.edn-notify-bar').find('.edn-container').removeClass('open');
587                 $(this).toggle();
588                 $(this).removeClass('open');
589
590                 if ( $(this).closest('.edn-notify-bar.edn-position-top,.edn-notify-bar.edn-position-top_absolute').length > 0 ) {
591                   barHeight = $(this).closest('.edn-notify-bar').find('.edn-container').outerHeight();
592                   if($(this).closest('.edn-notify-bar').hasClass('edn-pro-open-panel-active')){
593                    var bB = $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').outerHeight();
594                    $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('top', barHeight);
595                    $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('top', barHeight);
596
597                    var barHeight = parseInt(bB) + parseInt(barHeight);
598                  }
599
600                    
601                    $('.masthead').css('margin-top',barHeight);
602                    var bq = barHeight + 104;
603                    $('.rev_slider img:nth-of-type(1)').css('margin-top',bq);
604                   }else if( $(this).closest('.edn-notify-bar.edn-position-bottom').length > 0){
605                    var bottomHeight = $(this).closest('.edn-notify-bar').find('.edn-container').outerHeight();
606                    if($(this).closest('.edn-notify-bar').hasClass('edn-pro-open-panel-active')){
607                     $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('bottom',bottomHeight);
608                     $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('bottom',bottomHeight);    
609                   }
610                 }
611
612               }else{
613                $(this).closest('.edn-notify-bar').addClass('open');
614                $(this).closest('.edn-notify-bar').find('.edn-container').addClass('open');
615                $(this).toggle();
616                $(this).addClass('open');
617                if ( $(this).closest('.edn-notify-bar.edn-position-top,.edn-notify-bar.edn-position-top_absolute').length > 0 ) {
618                 $('body').css('padding-top', 0);
619                 $('.masthead').css('margin-top',0);
620                 $('.rev_slider img:nth-of-type(1)').css('margin-top','0px');
621                  }else if( $(this).closest('.edn-notify-bar.edn-position-bottom').length > 0){
622                   if($(this).closest('.edn-notify-bar').hasClass('edn-pro-open-panel-active')){
623                     $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('bottom','0');
624                     $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('bottom','0');        
625                   }
626                 }
627               }
628             });
629
630/* Toggle Button for Bar End */
631}); //closing for click before toggle
632
633if(duration_closetime == ''){
634           duration = 10;  //default second
635         }else{
636           duration = duration_closetime;
637         }
638        // close button for notificatio bar top
639
640        if(close_type == "user-can-close"){
641         $('.edn-notify-bar[data-barid='+selectorid+']').find('.edn-controls-close').click(function(){
642           
643            if(loggedinchecker != 1){
644             if(close_once == 1){
645               checkCookie(duration,close_type,nbid);
646             }else{
647               delete_cookie('cookie_set_time_'+nbid);
648             }
649
650           }else{
651
652                           if( reset != 1){ // check once if show bar only once to logged in user is enable or not.
653                             if(close_once == 1){
654
655                               checkCookie(duration,close_type,nbid);
656                             }else{
657                              delete_cookie('cookie_set_time_'+nbid);
658                            }
659                          }else{
660
661                            if(loggedinchecker == 1 && nbid != ''){
662                             $.ajax({
663                              url: apexnb_ajax_url,
664                              type: 'post',
665                              dataType: 'html',
666                              data: {
667                                action:'ajax_reset_showonce',
668                                check_reset:reset,
669                                nb_id : nbid,
670                                userid: check_userid,
671                                loggedin_checker:loggedinchecker,
672                                nonce: apexnb_ajax_nonce,
673                              },
674                              beforeSend: function() {
675                                $('.edn-ajax-loader').show('slow');
676                              },
677                              complete: function() {
678                                $('.edn-ajax-loader').hide('slow');
679                              },
680                              success: function( resp ) {
681                                if(resp == "success"){
682                                 $('.ednpro_main_wrapper.ednpro_section').css('display','none');
683                               }else{
684                                $('.ednpro_main_wrapper.ednpro_section').css('display','block');
685                              }
686
687                            }
688                          });
689                           }else{
690
691                           }
692
693                         } 
694
695                       }
696
697
698                       $(this).closest('.edn-notify-bar').hide();
699                       $(this).closest('.edn-notify-bar').find('.edn-cntrol-wrap').hide();
700                       $(this).closest('.edn-notify-bar').find('.edn-container').hide();
701                       $('body').css('padding-top','0px');
702                       $('.masthead').css('margin-top',0);
703                       $('body').removeClass('has-ednbar');
704
705                     });
706       }else{
707        delete_cookie('cookie_set_time_'+nbid);
708      }
709
710
711
712
713     });
714
715
716
717function getCookie1(c_name) {
718 var i, x, y, ARRcookies = document.cookie.split(";");
719 for (i = 0; i < ARRcookies.length; i++) {
720   x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
721   y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1);
722   x = x.replace(/^\s+|\s+$/g, "");
723   if (x == c_name) {
724     return unescape(y);
725   }
726 }
727}
728
729function checkCookie(time,close_type,nbid) {
730  var cookie = getCookie("cookie_set_time_"+nbid);
731  if (cookie != "") {
732              //cookie is set
733            } else {
734                  cookie = 'cookie_set_time_'+nbid;
735                  if (cookie != "" && cookie != null) {
736                    setCookie("cookie_set_time_"+nbid, cookie, time);
737                  }
738                }
739
740              }
741
742
743              function delete_cookie(name) {
744                document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
745              }
746
747
748              function setCookie(cname, cvalue, time) {
749                var d = new Date();
750                d.setTime(d.getTime() + (time* 1000));
751                var expires = "expires=" + d.toGMTString();
752                document.cookie = cname + "=" + cvalue + "; " + expires;
753              }
754              function getCookie(cname) {
755                var name = cname + "=";
756                var ca = document.cookie.split(';');
757                for (var i = 0; i < ca.length; i++) {
758                  var c = ca[i];
759                  while (c.charAt(0) == ' ')
760                    c = c.substring(1);
761                  if (c.indexOf(name) == 0) {
762                    return c.substring(name.length, c.length);
763                  }
764                }
765                return "";
766              }
767
768
769              /* set and unset cookies on user close button*/
770
771
772
773
774  /*
775  * Check Bar Visibility Type 
776  */
777  $('.edn-notify-bar').each(function(){
778    var bar_id = $(this).attr('data-barid');
779    var bid = bar_id.split("-");
780
781    var showtime = $(this).find('.edn-visibility-option-'+bid[1]).data('show-time-duration');
782
783    var hidetime = $(this).find('.edn-visibility-option-'+bid[1]).data('hide-time-duration');
784    var vtype = $(this).find('.edn-visibility-option-'+bid[1]).data('visibility-type');
785
786    if(vtype=="hide-time"){
787      if($(this).hasClass('edn-visibility-hide-time')){
788        if(hidetime != ''){
789         $(this).delay(hidetime).fadeOut();
790       }else{
791         $(this).delay(10000).fadeOut();
792       }
793     }
794   }
795
796   if($(this).hasClass('edn-visibility-show-time')){
797
798     if(vtype == "show-time"){
799       if(showtime != ''){
800         setTimeout(function(){
801           $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').fadeIn('slow');
802           $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+'] .visibility_show-time').fadeIn('slow');
803           if($('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('#effect_type'+bid[1]).val() == "slider"){
804            mySlider.reloadSlider({
805             displaySlideQty: 1,
806             moveSlideQty: 1,
807             infiniteLoop: true,
808             hideControlOnEnd: true
809           });
810
811          }
812        }, showtime);
813
814       }else{
815         setTimeout(function(){
816          $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').fadeIn('slow');
817          $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+'] .visibility_show-time').fadeIn('slow');
818          if($('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('#effect_type'+bid[1]).val() == "slider"){
819           mySlider.reloadSlider({
820             displaySlideQty: 1,
821             moveSlideQty: 1,
822             infiniteLoop: false,
823             hideControlOnEnd: true
824           });
825         }
826       },10000);
827       }
828
829
830
831     }
832
833
834   }
835
836
837   if ( $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('edn-position-top')) {
838
839     if ( $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.edn-container').actual('height') > 0 ) {
840      barHeight =  $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.edn-container').actual('height');
841      var ActualHeight = barHeight;
842      if($('body').find('#wpadminbar').length > 0){
843        var adminbarHeight = $('body').find('#wpadminbar').actual('height');
844        barHeight = parseInt(adminbarHeight) + parseInt(barHeight);
845      }else{
846        barHeight = parseInt(barHeight);
847      }
848      if($('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('edn-pro-open-panel-active')){
849       var bB = $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-top-panel-open').actual('height');
850       var  barHH = barHeight;
851       barHeight = parseInt(bB) + parseInt(barHeight);
852       ActualHeight = parseInt(bB) + parseInt(ActualHeight);
853       $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-open-panel').css('top', barHH);
854       $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-top-panel-open').css('top', barHH);
855     }
856
857
858     if($('body').find('#wpadminbar').length > 0){
859      var bq = ActualHeight + 104;
860      $('.rev_slider img:nth-of-type(1)').css('margin-top',bq);
861
862                         $('body').css('padding-top', ActualHeight).addClass('has-ednbar');
863                         $('.masthead').css('padding-top',ActualHeight);
864                       }else{
865
866                        var bq = barHeight + 104;
867                        $('.rev_slider img:nth-of-type(1)').css('margin-top',bq);
868                          $('body').css('padding-top', barHeight).addClass('has-ednbar');
869                          $('.masthead').css('padding-top',barHeight);
870                        }
871                      }
872                    }
873
874                    if ( $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('edn-position-bottom')) {
875                      if ( $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.edn-container').actual('height') > 0 ) {
876                        barHeight =  $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.edn-container').actual('height');
877                        if($('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('edn-pro-open-panel-active')){
878                          var bB = $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-top-panel-open').actual('height');
879                          var  barHH = barHeight;
880                          $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-open-panel').css('bottom', barHeight);
881                          $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-top-panel-open').css('bottom', barHH);
882
883                        }
884
885                      }  
886                    }
887
888                    if ( $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('edn-position-top_absolute') ) {
889                      if ( $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.edn-container').actual('height') > 0 ) {
890                       barHeight2 =  $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.edn-container').actual('height');
891                       var ActualHeight2 = barHeight2;
892                       if($('body').find('#wpadminbar').length > 0){
893                        var adminbarHeight = $('body').find('#wpadminbar').actual('height');
894                        barHeight2 = parseInt(adminbarHeight) + parseInt(barHeight2);
895                      }else{
896                        barHeight2 = parseInt(barHeight2);
897                      }
898
899                      if($('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('edn-pro-open-panel-active')){
900
901                        var bB = $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-top-panel-open').actual('height');
902                        var  barHH2 = barHeight2;
903                        var barHeight2 = parseInt(bB) + parseInt(barHeight2);
904                        ActualHeight2 = parseInt(bB) + parseInt(ActualHeight2);
905                        $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-open-panel').css('top', barHH2);
906                        $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-top-panel-open').css('top', barHH2);
907                      }
908
909                      if($('body').find('#wpadminbar').length > 0){
910                        var bq = ActualHeight2 + 104;
911                        $('.rev_slider img:nth-of-type(1)').css('margin-top',bq);
912                           $('.masthead').css('margin-top',ActualHeight2);
913                         }else{
914                           var bq = barHeight2 + 104;
915                           $('.rev_slider img:nth-of-type(1)').css('margin-top',bq);
916                           $('.masthead').css('margin-top',barHeight2);
917                         }
918
919                       }
920                     }
921
922
923              // for single open bar only
924              if ( $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('edn-position-top') || $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('edn-position-top_absolute')) {
925
926                if($('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('open')){
927                  $('body').css('padding-top', 0).removeClass('has-ednbar');
928                  $('.masthead').css('margin-top',0);
929                }
930                if($('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('apexnb-single-open-panel')){
931                 if($('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').hasClass('edn-pro-open-panel-active')){
932                  barHeight = $('.edn-notify-bar[data-barid=apexbar-'+bid[1]+']').find('.ednpro-top-panel-open').actual('height');
933                  var ActualHeight3 = barHeight;
934                }
935                if($('body').find('#wpadminbar').length > 0){
936                  var adminbarHeight = $('body').find('#wpadminbar').actual('height');
937                          var bq = ActualHeight3 + 104;
938                          $('.rev_slider img:nth-of-type(1)').css('margin-top',bq);
939                          $('body').css('padding-top', ActualHeight3).addClass('has-ednbar');
940                          $('.masthead').css('margin-top',ActualHeight3);
941                        }else{
942                            var bq = barHeight + 104;
943                            $('.rev_slider img:nth-of-type(1)').css('margin-top',bq);
944                          $('body').css('padding-top', barHeight).addClass('has-ednbar');
945                          $('.masthead').css('margin-top',barHeight);
946                        }
947
948                      }
949                    }
950
951
952
953                  });
954
955/* open panel section */
956$('.edn-notify-bar').each(function(){
957 $(this).find('.ednpro-top-panel-open').click(function(){
958
959   $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').toggleClass( "open_panel" );
960   $(this).closest('.edn-notify-bar').toggleClass( "ednpro-open-panel-sh
960ow" );
961
962   var barHeightt =  $(this).closest('.edn-notify-bar').find('.edn-container').actual('height');
963   if ( $(this).closest('.edn-notify-bar').hasClass('edn-position-top')) {
964
965    if($('body').find('#wpadminbar').length > 0){
966      var adminbarHeight = $('body').find('#wpadminbar').actual('height');
967      barHeightt = parseInt(adminbarHeight) + parseInt(barHeightt);
968    }else{
969      barHeightt = parseInt(barHeightt);
970    }
971
972    if ( barHeightt > 0 ) {
973
974     if($(this).closest('.edn-notify-bar').hasClass('edn-pro-open-panel-active')){
975
976      if($(this).closest('.edn-notify-bar').find('.ednpro-open-panel').hasClass('open_panel')){
977
978        var heightt1 = '335';
979        var barHH = parseInt(heightt1) + parseInt(barHeightt);
980      }else{
981       var barHH = barHeightt;
982     }
983
984     /* check if top bar is opened or close: Open class is when bar is closed*/
985     if($(this).closest('.edn-notify-bar').hasClass('open')){
986
987       var panel_height = $(this).closest('.edn-notify-bar').find('.apexnb-open-panel-wrapper').actual('height');
988
989
990       if($(this).closest('.edn-notify-bar').find('.ednpro-open-panel').hasClass('open_panel')){
991        var heightt1 = '335';
992        var barHH = parseInt(heightt1);
993                                    //$(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('top', barHeight);
994                                    $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('top', barHH);
995                                  }else{
996                                   $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('top', panel_height);
997                                   $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('top', panel_height);
998
999                                 }
1000
1001                               }else{
1002                                $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('top', barHeightt);
1003                                $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('top', barHH);
1004                              }
1005                            }
1006
1007                          }
1008                        }
1009
1010
1011                        if ( $(this).closest('.edn-notify-bar').hasClass('edn-position-top_absolute')) {
1012                         if ( barHeightt > 0 ) {
1013
1014                           if($(this).closest('.edn-notify-bar').hasClass('edn-pro-open-panel-active')){
1015
1016                            if($(this).closest('.edn-notify-bar').find('.ednpro-open-panel').hasClass('open_panel')){
1017
1018                              var heightt1 = '335';
1019                              var barHH = parseInt(heightt1) + parseInt(barHeightt);
1020
1021                            }else{
1022                              var barHH = barHeightt;
1023                            }
1024                            /* check if top bar is opened or close: Open class is when bar is closed*/
1025                            if($(this).closest('.edn-notify-bar').hasClass('open')){
1026                             var panel_height = $(this).closest('.edn-notify-bar').find('.apexnb-open-panel-wrapper').actual('height');
1027
1028
1029                             if($(this).closest('.edn-notify-bar').find('.ednpro-open-panel').hasClass('open_panel')){
1030                              var heightt1 = '335';
1031                              var barHH = parseInt(heightt1);
1032                                    $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('top', barHH);
1033                                  }else{
1034                                   $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('top', panel_height);
1035                                   $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('top', barHeightt);
1036
1037                                 }
1038
1039                               }else{
1040                                 $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('top', barHeightt);
1041                                 $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('top', barHH);
1042                               }
1043                             }
1044                           }
1045                         }
1046
1047                         if ( $(this).closest('.edn-notify-bar').hasClass('edn-position-bottom')) {
1048                          if ( barHeight > 0 ) {
1049
1050                           if($(this).closest('.edn-notify-bar').hasClass('edn-pro-open-panel-active')){
1051
1052                            var bB1 = $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').actual('height');
1053
1054                            if($(this).closest('.edn-notify-bar').find('.ednpro-open-panel').hasClass('open_panel')){
1055
1056                              var heightt2 = '390';
1057                              var barHH = parseInt(heightt2) + parseInt(barHeight);
1058
1059                              $(this).closest('.edn-notify-bar').find('.ednpro-open-panel').css('bottom', barHeight);
1060                              $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('bottom', barHH);
1061
1062                            }else{
1063                          // open panel is already open
1064
1065                          $(this).closest('.edn-notify-bar').find('.ednpro-top-panel-open').css('bottom', barHeight);
1066                        }
1067
1068                      }
1069                    }
1070
1071                   }
1072
1073                 });
1074});
1075
1076
1077
1078    });//$(function () end
1079}(jQuery));
1080

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.