PageSourceSearch

https://www.waldhotel-kurfuerst.de/files/themes/kurfuerst2021/js/init.js?v=e1bcd561

js waldhotel-kurfuerst.de collected 2026-10-08 10:53:40 UTC 3,542 bytes, 122 lines download raw bytes

1$(document).ready(function () {
2    $(".room").accordeonRoom(".ce_text:first-child em");
3
4    $("#pageimages .mod_pageimages").hitSlider();
5
6    $(".acc").accordeon(".ce_headline:first-child");
7
8    $('.room-slider').hslider({
9        autoPlay: false,
10        btnPrev: '',
11        btnNext: '',
12        breakPoints: {
13            1: 680
14        }
15    });
16    $(".privacy_block").each(function () {
17        $(">li", this).wrapAll("<ul></ul>");
18    });
19    $(".ce_form").formRequirecheck();
20
21    $('#hpm_menu').hitPlusMenu('#hpm_button');
22});
23
24var windowHeight = $(window).height();
25
26$(window).on("resize", function () {
27    var currentHeight = $(window).height();
28    // console.log(currentHeight);
29    if ($(window).width() > 1024 && currentHeight > windowHeight) {
30
31        var h = $(window).height() - $('#header').height();
32        $('.home #pageimages').height(h);
33        $('.home .hit_slider').height(h - 100);
34
35    } else {
36        $('.home #pageimages').height("auto");
37        $('.home .hit_slider').height("auto");
38    }
39});
40
41
42
43$(window).on("load", function () {
44    $('body').addClass('document-loaded');
45    if ($('body').hasClass("startpage")) {
46        var h = $(window).height() - $('#header').height();
47        // $('#pageimages').height(h);
48        // $('.hit_slider').height("calc(" + h + "px)");
49    }
50    d21rendered($('#d21-quickbook'));
51});
52
53function d21rendered(element) {
54    setTimeout(function () {
55        if (element.hasClass('d21-rendered')) {
56            setTimeout(function () {
57                element.addClass('show');
58            }, 10);
59        } else {
60            d21rendered($('#d21-quickbook'));
61        }
62    }, 200);
63}
64
65(function ($) {
66    $.fn.formRequirecheck = function (opts = {}) {
67        let options = Object.assign({
68            headerFixed: true
69        }, opts);
70
71        function isInputValid(i) {
72            let i_valid = true;
73
74            if (i.attr("type") == "checkbox") {
75                i_valid = i.prop("checked");
76            } else {
77                i_valid = !!i.val().length;
78            }
79
80            return i_valid;
81        }
82
83        $(this).each(function () {
84            var f = $("form", this);
85
86            $(".widget.mandatory").each(function () {
87                let w = $(this);
88                $(">input,>select,>textarea", this).attr("required", false).on("change", function () {
89                    if (w.hasClass("error") && isInputValid($(this))) {
90                        w.removeClass("error");
91                    }
92                });
93            });
94
95            f.submit(function (e) {
96                let valid = true;
97                let first = null;
98
99                $(".widget.mandatory").removeClass("error").each(function () {
100                    let i = $(">input,>select,>textarea", this);
101                    if (!isInputValid(i)) {
102                        valid = false;
103                        $(this).addClass("error");
104                        if (first == null) first = $(this);
105                    }
106                });
107
108                if (!valid) {
109                    e.preventDefault();
110
111                    let scr = first.offset().top;
112                    if (options.headerFixed) scr -= $("#header").height();
113
114                    $("body, html").animate({
115                        scrollTop: scr
116                    }, 500);
117                }
118            });
119        });
120        return $(this);
121    };
122}(jQuery));

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.