cloggier
↑
/wp-content/plugins/wpforo/wpf-assets
marsupiataab
hypermuffing
cloggier
hypermuffing
marsupiataab
ajax.js
50,126 B
cloggier
marsupiataab
frontend.js
43,720 B
cloggier
marsupiataab
index.html
0 B
cloggier
marsupiataab
snfb.js
1,882 B
cloggier
marsupiataab
tinymce-code.js
2,055 B
cloggier
marsupiataab
tinymce-emoji.js
16,473 B
cloggier
marsupiataab
tinymce-link.js
10,184 B
cloggier
marsupiataab
tinymce-pre.js
1,851 B
cloggier
marsupiataab
tinymce-spoiler.js
1,648 B
cloggier
marsupiataab
widgets.js
5,286 B
cloggier
marsupiataab
jQuery(document).ready(function ($) { if( parseInt(wpforo_widgets.is_live_notifications_on) && typeof wpforo_check_notifications === 'function'){ setTimeout(wpforo_check_notifications, parseInt(wpforo_widgets.live_notifications_start), parseInt(wpforo_widgets.live_notifications_interval)); } $(document).on("keydown", function (e) { if( e.code === 'Escape' ) $('.wpf-notifications').slideUp(250, 'linear'); }); $(document).on('click', '.wpf-alerts:not(.wpf-processing)', function () { var notifications = $('.wpforo-subtop').find('.wpf-notifications'); $('.wpf-notifications').not(notifications).slideUp(250, 'linear'); if( notifications.is(':visible') ){ notifications.slideUp(250, 'linear'); }else{ wpforo_load_notifications( $(this) ); notifications.slideDown(250, 'linear'); } }); $(document).on('click', '.wpf-widget-alerts:not(.wpf-processing)', function () { var notifications = $('.wpf-widget-alerts').parents('.wpf-prof-wrap').find('.wpf-notifications'); $('.wpf-notifications').not(notifications).slideUp(250, 'linear'); if( notifications.is(':visible') ){ notifications.slideUp(250, 'linear'); }else{ wpforo_load_notifications( $(this) ); notifications.slideDown(250, 'linear'); } }); $(document).on('click', '.wpf-action.wpf-notification-action-clear-all', function(){ var foro_n = $(this).data('foro_n'); if( foro_n ){ $('.wpf-notifications').slideUp(250, 'linear'); $.ajax({ type: 'POST', url: wpforo_widgets.ajax_url, data:{ foro_n: foro_n, action: 'wpforo_clear_all_notifications' } }).done(function(r){ if(r){ $('.wpf-notifications .wpf-notification-actions').hide(); $('.wpf-notifications .wpf-notification-content').html(r); wpforo_bell(0); } }); } }); }); function wpforo_bell( wpf_alerts ){ wpf_alerts = parseInt(wpf_alerts); if( wpf_alerts > 0 ){ var wpforo_bell = ''; var wpf_tooltip = ''; if ( typeof window.wpforo_phrase === "function" ) { var wpforo_notification_phrase = wpforo_phrase('You have a new notification'); if( wpf_alerts > 1 ) wpforo_notification_phrase = wpforo_phrase('You have new notifications'); wpf_tooltip = 'wpf-tooltip="' + wpforo_notification_phrase + '" wpf-tooltip-size="middle"'; } wpforo_bell = '<div class="wpf-bell" ' + wpf_tooltip + '><i class="fas fa-bell"></i> <span class="wpf-alerts-count">' + wpf_alerts + '</span></div>'; jQuery('.wpf-alerts').addClass('wpf-new'); jQuery('.wpf-widget-alerts').addClass('wpf-new'); } else { wpforo_bell = '<div class="wpf-bell"><i class="far fa-bell"></i></div>'; jQuery('.wpf-alerts').removeClass('wpf-new'); jQuery('.wpf-widget-alerts').removeClass('wpf-new'); } jQuery('.wpf-alerts').html(wpforo_bell); jQuery('.wpf-widget-alerts').html(wpforo_bell); } var wpforo_check_notifications_timeout; function wpforo_check_notifications( wpforo_check_interval ) { wpforo_check_interval = parseInt(wpforo_check_interval); if( isNaN(wpforo_check_interval) ) wpforo_check_interval = 60000; var getdata = jQuery('.wpf-notifications').is(':visible'); jQuery.ajax({ type: 'POST', url: wpforo_widgets.ajax_url, data:{ getdata: getdata, action: 'wpforo_notifications' }, success: wpforo_notifications_ui_update, complete: function() { wpforo_check_notifications_timeout = setTimeout(wpforo_check_notifications, wpforo_check_interval, wpforo_check_interval); }, error: function () { clearTimeout(wpforo_check_notifications_timeout); } }); } function wpforo_load_notifications($this){ $this.addClass('wpf-processing'); jQuery('.wpf-notifications .wpf-notification-content').html('<div class="wpf-nspin"><i class="fas fa-spinner fa-spin"></i></div>'); jQuery.ajax({ type: 'POST', url: wpforo_widgets.ajax_url, data:{ getdata: 1, action: 'wpforo_notifications' }, success: wpforo_notifications_ui_update, error: function () { clearTimeout(wpforo_check_notifications_timeout); } }).always(function(){ $this.removeClass('wpf-processing'); }); } function wpforo_notifications_ui_update(response){ var wpf_alerts = parseInt(response.data.alerts); if( wpf_alerts > 0 ){ jQuery('.wpf-notifications .wpf-notification-actions').show(); } else { jQuery('.wpf-notifications .wpf-notification-actions').hide(); } if( response.data.notifications ) jQuery('.wpf-notifications .wpf-notification-content').html( response.data.notifications ); wpforo_bell( wpf_alerts ); }
cloggier