PageSourceSearch

https://tygodnikdzierzoniowski.pl/wp-content/plugins/features-of-local-websites/includes/js/article-creator.js

js tygodnikdzierzoniowski.pl collected 2026-10-02 23:32:57 UTC 961 bytes, 26 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2    var fullCssUrl = null;
3
4    // 1. URL passed from PHP (survives JS combine/minify)
5    if (typeof folwArticleCreator !== 'undefined' && folwArticleCreator.cssUrl) {
6        fullCssUrl = folwArticleCreator.cssUrl;
7    }
8
9    // 2. Fallback: resolve from this script's own tag
10    if (!fullCssUrl) {
11        var scriptTag = document.querySelector('script[src*="article-creator.js"]');
12        if (scriptTag) {
13            fullCssUrl = scriptTag.src.replace(/includes\/js\/article-creator\.js.*$/, 'css/article-creator.css');
14        }
15    }
16
17    // 3. Last resort: standard plugin path from the site root
18    if (!fullCssUrl) {
19        fullCssUrl = window.location.origin + '/wp-content/plugins/features-of-local-websites/css/article-creator.css';
20    }
21
22    var link = document.createElement('link');
23    link.rel = 'stylesheet';
24    link.href = fullCssUrl;
25    document.head.appendChild(link);
26});

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.