PageSourceSearch

https://www.innovationsprogramm.de/_assets/5ae95f9e41d41ed63365bedb3b3a911b/JavaScript/main.js?1751465580

js innovationsprogramm.de collected 2026-10-09 23:42:54 UTC 1,783 bytes, 56 lines download raw bytes

1var cookieBlock = '{settings.cookieBlock}';
2
3$(document).ready(function() {
4
5    // this is the ajax override for the vote button
6    $('.simplePollVoteButton').on('click', function(e) {
7
8        var pollid = $(this).attr('data-uid');
9        var pollerrorpanel = $('#pollerror-' + pollid);
10        var form = $('#simplePollForm-' + pollid);
11        var wrapper = $('#simplePollWrap-' + pollid);
12
13        if (cookieBlock == '1' || cookieBlock == 'true') {
14            if ( ! navigator.cookieEnabled) {
15                alert('Cookies need to be activated.');
16                return false;
17            }
18        }
19
20        // if no radio button is active, don't do anything
21        if ($('input[class~=simplePollRadioClass]:checked').length === 0) {
22            //console.log('no radio active');
23
24            pollerrorpanel.removeAttr("style");
25            setTimeout(function() {
26                pollerrorpanel.hide();
27            }, 5000);
28
29            return false;
30        }
31
32        $.post(form.data('ajax-url'), form.serialize(), function(response) {
33            // replace the contents of the simple poll with the view returned from PHP
34            wrapper.replaceWith($(response).find('.simplePollWrap'));
35        });
36
37        return false;
38    });
39
40    // this is the ajax override for the see votes link
41    $('.simplePollSeeVotesButton').on('click', function(e) {
42
43        e.preventDefault();
44
45        var seepollid = $(this).attr('data-uid');
46        var seewrapper = $('#simplePollWrap-' + seepollid);
47
48        $.post($(this).data('ajax-url'), function(response) {
49            // replace the contents of the simple poll with the view returned from PHP
50            seewrapper.replaceWith($(response).find('.simplePollWrap'));
51        });
52
53        return false;
54    });
55
56});

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.