PageSourceSearch

https://tickets.nederlandsfotomuseum.nl/custom/nederlandsfotomuseum/js/custom.js?v1.0.1495

js nederlandsfotomuseum.nl collected 2026-10-02 05:20:06 UTC 1,461 bytes, 49 lines download raw bytes

1/************************************************
2 Nederlands Fotomuseum
3 ************************************************/
4$(function () {
5    /************************************************
6     Dynamic prices
7     ************************************************/
8    if (
9        parseFloat(ticketsTotalPrice) <= 0 ||
10        typeof dynamicPriceDates == 'undefined' ||
11        dynamicPriceDates.length === 0
12    ) {
13        $('#calendar-section').removeClass('has-titles');
14    } else {
15        $('#calendar-section').addClass('has-titles');
16
17        var dates = [];
18
19        $.each(dynamicPriceDates, function (date, settings) {
20            var totalDif = 0;
21            let hasDif = false;
22
23            $.each(ticketNumbers, function (ticketId, number) {
24                var price = parseFloat(settings.day[ticketId].price),
25                    base = parseFloat(settings.day[ticketId].base);
26
27                if (price !== base) {
28                    totalDif += (price - base) * number;
29                    hasDif = true;
30                }
31            });
32
33            dates.push({
34                date: date,
35                title: totalDif !== 0 ? ((totalDif > 0 ? '+' : '') + convertPrice(totalDif)) : '',
36            });
37        });
38
39        datesTitle = {
40            default: {
41                title: '',
42                classAttr: '',
43            },
44            dates: dates,
45        };
46
47        $('.calendar').datepicker('refresh');
48    }
49});

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.