PageSourceSearch

https://maleviziotis.gr/wp-content/plugins/jnews-push-notification/assets/js/v3/plugin.js?ver=11.0.1

js maleviziotis.gr collected 2026-10-02 12:27:32 UTC 3,034 bytes, 1 lines download raw bytes

1!function(i){"use strict";window.jnews.push_notification=window.jnews.push_notification||{};var e=!!("object"==typeof jnews&&"object"==typeof jnews.library)&&jnews.library,s=window.userName;window.jnews.push_notification={init:function(s){var t=this;t.element=void 0===s?i("body"):s;var n=t.doSubscribe.bind(t);e&&e.requestAnimationFrame.call(e.win,(function(){e.winLoad(n)}))},doSubscribe:function(){var e=this;e.element.find(".jeg_push_notification").length&&e.element.find(".jeg_push_notification").each((function(){e.container=i(this),e.doSubscribeToggle(e.container,"register"),setTimeout((function(){e.doSubscribeAction(e.container),e.doSubscribeSubmit(e.container)}),3e3)}))},doSubscribeAction:function(i){var e=this;OneSignalDeferred.push((async function(s){var t=!1;const n=s.User.getTags();if(Object.keys(n).length>0&&s.User.PushSubscription.optedIn)if(Object.hasOwn(n,"all")&&0!==n.all.length)t=!0;else if("category"===i.find(".button").attr("data-type"))for(var o=i.find('input[name="post-category"]').val().split(","),a=0;a<o.length;a++)Object.hasOwn(n,o[a])&&0!==n[o[a]].length&&(t=!0);e.doSubscribeToggle(i,t?"unsubscribe":"subscribe")}))},doSubscribeSubmit:function(e){var t=this;e.find(".button").on("click",(function(n){n.preventDefault(),e.addClass("processing");var o=i(this),a=o.attr("data-type"),r=o.attr("data-action");OneSignalDeferred.push((async function(i){if("general"===a)if("subscribe"===r)void 0===i.User.PushSubscription.id&&await i.login(s),i.User.PushSubscription.optIn(),i.User.addTag("all","all"),t.doSubscribeToggle(e,"unsubscribe");else if("unsubscribe"===r){i.User.PushSubscription.optOut();const s=i.User.getTags();var n=[];for(var o in s)n.push(o);i.User.removeTags(n),t.doSubscribeToggle(e,"subscribe")}if("category"===a){for(var u=e.find('input[name="post-category"]').val().split(","),c={},b=0;b<u.length;b++)c[u[b]]=u[b];"subscribe"===r?(void 0===i.User.PushSubscription.id&&await i.login(userId),i.User.PushSubscription.optedIn||i.User.PushSubscription.optIn(),i.User.removeTags(["all"]),i.User.addTags(c),t.doSubscribeToggle(e,"unsubscribe")):"unsubscribe"===r&&(u.push("all"),i.User.removeTags(u),t.doSubscribeToggle(e,"subscribe"))}})),setTimeout((function(){e.removeClass("processing")}),600)}))},doSubscribeToggle:function(i,e){var s=i.find(".button"),t=i.find('input[name="button-processing"]').val(),n=i.find('input[name="button-subscribe"]').val(),o=i.find('input[name="button-unsubscribe"]').val();"subscribe"===e?(s.html('<i class="fa fa-refresh fa-spin"></i>'+t),setTimeout((function(){s.attr("data-action","subscribe"),s.html('<i class="fa fa-bell-o"></i>'+n)}),500)):"register"===e?(s.html('<i class="fa fa-refresh fa-spin"></i>'+t),setTimeout((function(){s.attr("data-action","register"),s.html('<i class="fa fa-bell-o"></i>'+n)}),3500)):(s.html('<i class="fa fa-refresh fa-spin"></i>'+t),setTimeout((function(){s.attr("data-action","unsubscribe"),s.html('<i class="fa fa-bell-slash-o"></i>'+o)}),500))}},e&&e.docReady((function(){jnews.push_notification.init()}))}(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.