PageSourceSearch

https://dike.gr/plugins/system/webkulpwa/assets/js/webkulpwa.js

js dike.gr collected 2026-10-09 22:40:21 UTC 1,169 bytes, 36 lines download raw bytes

1
2jQuery.noConflict();
3
4jQuery(window).load(function() {
5    if ('serviceWorker' in navigator) {
6        navigator.serviceWorker.register(wkSiteUrl+'wkpwa_sw.js', {
7            scope: wkSiteUrl
8        }).then(function(registration) {
9            console.log('ServiceWorker registration successful with scope: ', registration.scope);
10        }).catch(function(err) {
11            console.error('ServiceWorker registration failed: '+err);
12        });
13    }
14
15});
16function onNetworkChangeStatus(offline) {
17    var status = jQuery("#webkulpwa_offline_bar");
18    var condition = navigator.onLine ? status.hide() : status.show();
19}
20
21window.addEventListener('load', function() {
22    window.addEventListener("offline", onNetworkChangeStatus);
23    window.addEventListener("online", onNetworkChangeStatus);
24    onNetworkChangeStatus(false);
25});
26
27jQuery(function () {
28    // page is loaded, it is safe to hide loading animation
29
30    jQuery(window).on('beforeunload', function () {
31        // user has triggered a navigation, show the loading animation
32        if (jQuery("#wkpwa-loader-overlay").length>0) {
33            jQuery("#wkpwa-loader-overlay").show();
34        }
35    });
36});

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.