PageSourceSearch

https://www.inp-greifswald.de/typo3temp/assets/compressed/merged-0…8478d91f3ecdabe710958382759aa.js?1787829404

js inp-greifswald.de collected 2026-10-02 05:48:14 UTC 1,498 bytes, 48 lines download raw bytes

1
2/**
3 * Author: Thomas Deuling <[email protected]>
4 */
5var Forum = {
6    initialize: function () {
7        this.initializeConfirms();
8        this.initializeTags();
9    },
10
11    //
12    // Handle confirmations
13    initializeConfirms: function () {
14        document.querySelectorAll('[data-confirm="1"]').forEach(element => {
15            element.addEventListener('click', event => {
16                const message = element.getAttribute('data-confirm-text') || 'Sicher?';
17                if (!window.confirm(message)) {
18                    event.preventDefault();
19                }
20            });
21        });
22    },
23
24    //
25    // Append tag title on click in tags-input
26    initializeTags: function () {
27        document.querySelectorAll('[data-forum-tag]').forEach(element => {
28            element.addEventListener('click', event => {
29                const title = element.getAttribute('title').trim();
30                const input = document.getElementById('forum-question-tags');
31                const tags = (input.value).trim().split(/\s+/).filter(Boolean);
32                const idx = tags.indexOf(title);
33                if (idx >= 0) {
34                    tags.splice(idx, 1);
35                } else {
36                    tags.push(title);
37                }
38                input.value = tags.join(' ');
39                event.preventDefault();
40                return false;
41            });
42        });
43    },
44};
45
46document.addEventListener('DOMContentLoaded', () => {
47    Forum.initialize();
48});

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.