1 2jQuery(document).ready(function ($) { 3 4 let lk_notification_button=$('#lk_notification_button'); 5 let lk_notification_button2=$('#lk_notification_button2'); 6 if (lk_notification_button.hasClass('active')){ 7 let key='ntf_last_close'; 8 let close_ntf_timestamp=client_loadSettings(key); 9 if (typeof (close_ntf_timestamp)!=='undefined' && user_data.timestamp < close_ntf_timestamp){ 10 jQuery('#lk_notification_button2').toggleClass('active'); 11 jQuery('#lk_notification_button').toggleClass('active'); 12 } 13 } 14 lk_notification_button.on('click',function(){ 15 $('div.lk_notifications>div.scroll').html('<div class=\'throb\'></div>');lk_notification_toggle(true);return false; 16 }); 17 lk_notification_button2.on('click',function() { 18 lk_notification_toggle(true);return false; 19 }); 20 21 Drupal.behaviors.ntf_func = { 22 attach: function (context, settings) { 23 $('.lk_switch_block').off('change.first').on('change.first',function(){ 24 $('#lk_switch_sb_'+(this.checked?'on':'off')).trigger('click'); 25 }); 26 $('.lk_notifications a.close').off('click.first').on('click.first',function(){ 27 lk_notification_toggle(true); 28 let key='ntf_last_close'; 29 let value=Math.floor(new Date().valueOf()/1000); 30 client_saveSettings(key, value); 31 32 }); 33 $(".lk_filters_menu .close_tab").click(function(){ 34 $(".lk_filters_menu, .lk_overlay").removeClass("active"); 35 }); 36 } 37 }; 38 39 Drupal.behaviors.ntf_func.attach(); 40 Drupal.ajax.prototype.commands.notification_ntf_feed_more = function (ajax, response, status) { 41 $('#lk_timeline').append(response.data); 42 }; 43 Drupal.ajax.prototype.commands.notification_ntf_disable = function (ajax, response, status) { 44 $('#lk_notification_button.active').removeClass('active'); 45 }; 46 Drupal.ajax.prototype.commands.notification_feed_update_feed_mode = function (ajax, response, status) { 47 $('#lk_main_filter').html(response.html); 48 $('.lk_overlay').removeClass('active'); 49 50 fav_list_filters($); 51 }; 52}); 53
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.