PageSourceSearch

https://www.alzheimer-forschung.de/typo3temp/assets/compressed/Fro…3abc49dbb85a7e541fc7b52f6be26.js?1748252657

js alzheimer-forschung.de collected 2026-10-02 05:51:32 UTC 6,043 bytes, 203 lines download raw bytes

1$('.tx-infothek .product .more').on('click', function(e) {
2    var animationSpeed = 500;
3    var description = $(this).closest('.description');
4    var short = description.find('.short');
5    var shortDots = short.find('.dots');
6    var full = description.find('.full');
7    var showLess = description.find('.controls .less');
8
9    if(!full.length) {
10        return false;
11    }
12
13    description.addClass("expanded");
14    $(this).fadeOut().queue(function() {
15        full.show();
16        var fullHeight = full.height();
17        full.hide();
18
19        short.animate({
20            height: fullHeight + "px"
21        }, animationSpeed);
22        shortDots.animate({
23            opacity : 0
24        }, animationSpeed);
25        full.delay(animationSpeed / 2).fadeIn(animationSpeed);
26
27        showLess.fadeIn();
28        $(this).dequeue();
29    });
30    return false;
31});
32
33$('.tx-infothek .product .less').on('click', function(e) {
34    var animationSpeed = 500;
35    var description = $(this).closest('.description');
36    var short = description.find('.short');
37    var shortDots = short.find('.dots');
38    var full = description.find('.full');
39    var showMore = description.find('.controls .more');
40
41    if(!full.length) {
42        return false;
43    }
44
45    description.removeClass("expanded");
46    $(this).fadeOut().queue(function() {
47        var currentHeight = short.height();
48        short.css("height", "");
49        var shortHeight = short.height();
50        short.css("height", currentHeight + "px");
51
52        full.fadeOut(animationSpeed);
53        short.delay(animationSpeed / 2).animate({
54            height: shortHeight + "px"
55        }, animationSpeed).queue(function() {
56            $(this).css("height", "");
57            $(this).dequeue();
58        });
59        shortDots.delay(animationSpeed / 2).animate({
60            opacity : 1
61        }, animationSpeed);
62
63        showMore.fadeIn();
64        $(this).dequeue();
65    });
66    return false;
67});
68
69// Automatisches Abschicken bei Suche wenn nur Select
70$('.tx-infothek .search select').change(function() {
71    var form = $(this).closest('form');
72    if(form.find('input:visible').length) {
73        console.log("Es gibt noch Element!");
74        return;
75    }
76    form.trigger("submit");
77});
78
79
80$('.tx-infothek .infothek_cart .amountInput').keyup(function() {
81    infothek_checkItem($(this));
82}).change(function() {
83    infothek_checkItem($(this));
84});
85
86function infothek_checkItem(item) {
87    var maxOrderNumber = Number(item.attr("data-max-order-number"));
88    var val = item.val();
89    if(val !== "") {
90        infothek_checkCart();
91    }
92
93    var container = item.closest('.amountContainer');
94    if(maxOrderNumber && Number(val) > maxOrderNumber) {
95        container.addClass("error");
96    } else {
97        container.removeClass("error");
98        var reloadButtonItem = container.find('.reload');
99        if(reloadButtonItem.hasClass("d-none")) {
100            container.find('.reload').removeClass("d-none").hide().fadeIn();
101        }
102    }
103
104}
105
106function infothek_checkCart() {
107    $('.tx-infothek .infothek_cart').each(function() {
108        var error = false;
109
110        var maxItems = Number($(this).attr("data-max-items"));
111        var itemSum = 0;
112
113        var btnPrev = $(this).find('.btn-prev');
114        var btnNext = $(this).find('.btn-next');
115        var btnReload = $(this).find('.btn-reload');
116
117        console.log(btnReload);
118
119        $(this).find('.amountContainer').each(function() {
120            itemSum += Number($(this).find('input').val());
121            if($(this).hasClass("error")) {
122                error = true;
123            }
124        });
125
126        if(maxItems && itemSum === maxItems) {
127            $(this).find('.enoughItems').slideDown();
128            $(this).find('.tooMuchItems').slideUp();
129            btnPrev.fadeOut();
130            btnReload.fadeOut().queue(function() {
131                btnNext.fadeIn();
132                $(this).dequeue();
133            });
134        } else if(maxItems && itemSum > maxItems) {
135            $(this).find('.tooMuchItems').slideDown();
136            $(this).find('.enoughItems').slideUp();
137            btnPrev.fadeOut();
138            btnReload.fadeOut().queue(function() {
139                btnNext.fadeIn();
140                $(this).dequeue();
141            });
142            error = true;
143        } else {
144            $(this).find('.tooMuchItems').slideUp();
145            $(this).find('.enoughItems').slideUp();
146            btnReload.fadeIn().queue(function() {
147                btnPrev.fadeIn();
148                btnNext.fadeIn();
149                btnReload.dequeue();
150            });
151        }
152
153        console.log(error);
154        console.log(btnNext);
155        btnNext.find('button').prop("disabled", error);
156    });
157}
158
159// Tooltips initialisieren
160$(function () {
161    $('[data-toggle="tooltip"]').tooltip();
162
163    // Warenkorb Button ausblenden
164
165    $('.tx-infothek .infothek_cart').each(function() {
166        var btnReload = $(this).find('.btn-reload');
167        btnReload.hide();
168    });
169});
170
171// Adresseingabe
172changeAddressType();
173function changeAddressType() {
174    var container =  $('#billingAddressContainer');
175    var checkbox = $('#billingAddress');
176    var checked = checkbox.is(':checked');
177    var label = $('#bothLabel');
178
179    if(!checked) {
180        container.find('input, textfield').prop("disabled", true);
181        container.hide();
182        label.find('.delivery').addClass("d-none");
183        label.find('.both').removeClass("d-none");
184    }
185}
186
187$('#billingAddress').change(function() {
188    var container =  $('#billingAddressContainer');
189    var label = $('#bothLabel');
190    var checked = $(this).is(':checked');
191
192    if(checked) {
193        container.find('input, textfield').prop("disabled", false);
194        container.slideDown();
195        label.find('.both').addClass("d-none");
196        label.find('.delivery').removeClass("d-none");
197    } else {
198        container.slideUp();
199        container.find('input, textfield').prop("disabled", true);
200        label.find('.delivery').addClass("d-none");
201        label.find('.both').removeClass("d-none");
202    }
203});

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.