PageSourceSearch

https://pizza-laperla.at/main/views/themes/kellner4you-modern/js/common.js?ver=2.1.1

js pizza-laperla.at collected 2026-10-02 01:16:13 UTC 4,812 bytes, 175 lines download raw bytes

1$.fn.tabs = function() {
2	var selector = this;
3
4	this.each(function() {
5		var obj = $(this);
6
7		$(obj.attr('rel')).hide();
8
9		$(obj).click(function() {
10			$(selector).removeClass('active');
11
12			$(selector).each(function(i, element) {
13				$($(element).attr('rel')).hide();
14			});
15
16			$(this).addClass('active');
17
18			$($(this).attr('rel')).show();
19
20			return false;
21		});
22	});
23
24	$(this).show();
25
26	$(this).first().click();
27};
28
29$(function() {
30    var alertMsgs = $('.alert-collapsible .alert-hide');
31    var dropdownButton = $('.btn-dropdown');
32    alertMsgs.hide();
33
34    //Click dropdown
35    dropdownButton.click(function() {
36        //get data-for attribute
37        //var dataFor = $(this).attr('data-for');
38        //var idFor = $(dataFor);
39
40        //current button
41        var currentButton = $(this);
42        alertMsgs.slideToggle(function() {
43            //Completed slidetoggle
44            if(alertMsgs.is(':visible')) {
45                currentButton.html('<i class="fa fa-chevron-up text-muted"></i>');
46            } else {
47                currentButton.html('<i class="fa fa-chevron-down text-muted"></i>');
48            }
49        })
50    });
51});
52
53$(function () {
54
55    $(document).on('change', '.btn-group-toggle input[type="radio"], .btn-group input[type="radio"]', function() {
56        var btn = $(this).parent();
57        var parent = btn.parent();
58        var activeClass = (btn.attr('data-btn')) ? btn.attr('data-btn'): 'btn-default';
59
60        parent.find('.btn').each(function() {
61            removeClass = ($(this).attr('data-btn')) ? $(this).attr('data-btn') : activeClass;
62            $(this).removeClass(removeClass);
63        });
64
65        btn.addClass(activeClass);
66    });
67
68    $('.button-checkbox').each(function () {
69
70        // Settings
71        var $widget = $(this),
72            $button = $widget.find('button'),
73            $checkbox = $widget.find('input:checkbox'),
74            color = $button.data('color'),
75            settings = {
76                on: {
77                    icon: 'fa fa-check-square-o'
78                },
79                off: {
80                    icon: 'fa fa-square-o'
81                }
82            };
83
84        // Event Handlers
85        $button.on('click', function () {
86            $checkbox.prop('checked', !$checkbox.is(':checked'));
87            $checkbox.triggerHandler('change');
88            updateDisplay();
89        });
90        $checkbox.on('change', function () {
91            updateDisplay();
92        });
93
94        // Actions
95        function updateDisplay() {
96            var isChecked = $checkbox.is(':checked');
97
98            // Set the button's state
99            $button.data('state', (isChecked) ? "on" : "off");
100
101            // Set the button's icon
102            $button.find('.state-icon')
103                .removeClass()
104                .addClass('state-icon ' + settings[$button.data('state')].icon);
105
106            // Update the button's color
107            if (isChecked) {
108                $button
109                    .removeClass('btn-default')
110                    .addClass('btn-' + color + ' active');
111            }
112            else {
113                $button
114                    .removeClass('btn-' + color + ' active')
115                    .addClass('btn-default');
116            }
117        }
118
119        // Initialization
120        function init() {
121
122            updateDisplay();
123
124            // Inject the icon if applicable
125            if ($button.find('.state-icon').length == 0) {
126                $button.prepend('<i class="state-icon ' + settings[$button.data('state')].icon + '"></i>');
127            }
128        }
129        init();
130    });
131});
132
133function displayRatings(ratings) {
134    $('.rating-star').raty({
135        score: function () {
136            return $(this).attr('data-score');
137        },
138        scoreName: function () {
139            return $(this).attr('data-score-name');
140        },
141        readOnly: function () {
142            return $(this).attr('data-readonly') == 'true';
143        },
144        hints: ratings,
145        starOff: 'fa fa-star-o',
146        starOn: 'fa fa-star',
147        starHalf: 'fa fa-star-half-o',
148        cancel: false, half: false, starType: 'i'
149    });
150
151    $('.rating-star i[title]').tooltip({placement: 'bottom'});
152}
153
154$(function () {
155    $(window).bind("load resize", function() {
156        $('.affix-module').each(function() {
157            $(this).find('[data-spy="affix"]:first-child').css('width', $(this).width());
158        });
159    });
160});
161
162//open_login_link
163
164$(document).ready(function() {
165    $('#open_login_link').click(function(){
166        $("#btn-navbar").attr("aria-expanded","false");
167        $("#main-header-menu-collapse").attr("aria-expanded","false");
168        $("#main-header-menu-collapse").removeClass("in");
169        $('#loginModal').modal('show');
170    });
171});
172
173$(function () {
174    $('[data-toggle="tooltip"]').tooltip()
175})

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.