PageSourceSearch

https://www.palazzosalis.ch/templates/theme3595/js/script.js

js palazzosalis.ch collected 2026-10-07 20:16:14 UTC 7,827 bytes, 259 lines download raw bytes

1function setCookie(name,value,days) {
2    var expires = "";
3    if (days) {
4        var date = new Date();
5        date.setTime(date.getTime() + (days*24*60*60*1000));
6        expires = "; expires=" + date.toUTCString();
7    }
8    document.cookie = name + "=" + (value || "")  + expires + "; path=/";
9}
10function getCookie(name) {
11    var nameEQ = name + "=";
12    var ca = document.cookie.split(';');
13    for(var i=0;i < ca.length;i++) {
14        var c = ca[i];
15        while (c.charAt(0)==' ') c = c.substring(1,c.length);
16        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
17    }
18    return null;
19}
20function getFileExtension(filename) {
21	return (/[.]/.exec(filename)) ? /[^.]+$/.exec(filename) : undefined;
22}
23
24jQuery(document).ready(function($){
25	
26	var current = new Date();
27	$('input#anreise_input').val($.datepicker.formatDate('dd.mm.yy', current));
28	$('input#abreise_input').val($.datepicker.formatDate('dd.mm.yy', new Date(current.getTime() + 86400000)));
29	$('.datepicker').datepicker({
30       prevText: '&#x3c;zurück', prevStatus: '',
31        prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: '',
32        nextText: 'Vor&#x3e;', nextStatus: '',
33        nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: '',
34        currentText: 'heute', currentStatus: '',
35        todayText: 'heute', todayStatus: '',
36        clearText: '-', clearStatus: '',
37        closeText: 'schließen', closeStatus: '',
38        monthNames: ['Januar','Februar','März','April','Mai','Juni',
39        'Juli','August','September','Oktober','November','Dezember'],
40        monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
41        'Jul','Aug','Sep','Okt','Nov','Dez'],
42        dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
43        dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
44        dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
45      showMonthAfterYear: false,
46      showOn: 'both',
47      buttonImage: '/images/icons/calendar-80.png',
48      buttonImageOnly: true,
49      dateFormat:'dd.mm.yy'
50    } 
51  );
52	
53	var o=$('input[type=checkbox]');
54	if(o.length&&!$('body').hasClass('.com_config')){
55		o.each(function(count){
56			if($(this).parent().not('span.checkbox')){
57				if(!$(this).attr("id")){
58					$(this).attr({id:'checkbox'+count}).wrap('<span class="checkbox"/>').after('<label class="checkbox_inner" for="checkbox'+count+'"/>')
59				}else{
60					$(this).wrap('<span class="checkbox"/>').after('<label class="checkbox_inner" for="'+$(this).attr("id")+'"/>')
61				}
62			}
63		})
64	}
65	var o=$('input[type=radio]');
66	if(o.length&&!$('body').hasClass('.com_config')){
67		o.each(function(i){
68			if($(this).parent().not('span.radio')){
69				if(!$(this).attr("id")){
70					$(this).attr({id:'radio'+i}).wrap('<span class="radio"/>').after('<label class="radio_inner" for="radio'+i+'"/>')
71				}else{
72					$(this).wrap('<span class="radio"/>').after('<label class="radio_inner" for="'+$(this).attr("id")+'"/>')
73				}
74			}
75		})
76	}
77});
78
79;(function($){
80
81	function bottomFooter(){
82		var footerHeight = $("#t3-footer").height();
83		$(".t3-wrapper").css(
84			{
85				"min-height" : "100%",
86				"padding-bottom" : footerHeight
87			}
88		);
89	}
90
91	$(window).load(function(){
92		if(!$('body').hasClass('mobile') || $(window).width() > 767){
93			bottomFooter();
94		}
95		
96		$(".accordion-toggle").on("click",function(){
97			$(this).closest('.accordion-group').toggleClass("selected");
98			$(this).toggleClass("selected");
99		});	
100		if($('body').hasClass('mobile')){
101			$('.btn-player').css('display','none');
102		}
103	});
104
105	$(window).on("resize", function(){
106		bottomFooter();
107	});
108	
109})(jQuery);
110
111;(function ($) {
112    function isIE() {
113        var ua = window.navigator.userAgent;
114
115        var msie = ua.indexOf('MSIE ');
116        if (msie > 0) {
117            // IE 10 or older => return version number
118            return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
119        }
120
121        var trident = ua.indexOf('Trident/');
122        if (trident > 0) {
123            // IE 11 => return version number
124            var rv = ua.indexOf('rv:');
125            return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
126        }
127
128        var edge = ua.indexOf('Edge/');
129        if (edge > 0) {
130           // Edge (IE 12+) => return version number
131           return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);
132        }
133
134        // other browser
135        return false;
136    }
137
138    $(document).ready(function(){
139        var o=$("#back-top");
140
141        $(window).scroll(function(){
142            if($(this).scrollTop()>100){
143                o.fadeIn()
144            }else{
145                o.fadeOut()
146            }
147        });
148	    var $scrollEl=($.browser.mozilla||$.browser.msie)?$("html"):$("body,html");
149	    o.find("a").click(function(){
150	    	$('html,body').animate({ scrollTop: 0 }, 'slow');
151	    	$(this).blur();
152        	return false;
153	    })
154    });
155})(jQuery);
156
157;( function( $, window, document, undefined )
158{
159	var s = document.body || document.documentElement, s = s.style, prefixTransition = '';
160
161	if( s.WebkitTransition == '' )	prefixTransition = '-webkit-';
162	if( s.MozTransition == '' )		prefixTransition = '-moz-';
163	if( s.OTransition == '' )		prefixTransition = '-o-';
164
165	$.fn.extend(
166	{
167		onCSSTransitionEnd: function(callback)
168		{
169			var $this = $( this ).eq( 0 );
170			$this.one( 'webkitTransitionEnd mozTransitionEnd oTransitionEnd otransitionend transitionend', callback );
171			if( ( prefixTransition == '' && !( 'transition' in s ) ) || $this.css( prefixTransition + 'transition-duration' ) == '0s' ) {
172				callback();
173			}else{
174				arr_1 = $this.css( prefixTransition + 'transition-duration' ).split(', ');
175				arr_2 = $this.css( prefixTransition + 'transition-delay' ).split(', ');
176				length = 0;
177				for (var i = 0; i < arr_1.length; i++) {
178					length = parseFloat(arr_1[i]) + parseFloat(arr_2[i]) > length ? parseFloat(arr_1[i]) + parseFloat(arr_2[i]) : length;
179				};
180				var d = new Date();
181				var l = d.getTime();
182				if((l - n) > length*1000) {
183					callback();
184				}
185			}
186			return this;
187		}
188	});
189})( jQuery, window, document );
190
191;
192(function ($) {
193    var o = $('body');
194	scrollCheck = 0;
195	if (!o.hasClass('mobile') && $(window).width() > 767 && !o.hasClass('ready')) {
196		$(window).on('load', function(){
197			container = $('.stuck-container').parent();
198		    fixed=$('.stuck-container');
199
200		    height=container.offset().top + fixed.innerHeight();
201		    posHeight = container.outerHeight();
202		    container.css("height", posHeight);
203
204			function checkStuck(){
205				var st=$(window).scrollTop();
206				if(st<height && $(document).width()>767){
207					fixed.removeClass('scroll-to-fixed-fixed').css('top','auto').css('position','static').css('width', '100%');
208				}else{
209					if(!$('body').hasClass('desktop_mode') && $(document).width()>767 && st>height){
210						fixed.addClass('scroll-to-fixed-fixed').css('position','fixed').css('top','0');
211					}
212				}
213			}
214
215			checkStuck();
216
217			$(window).on('load scroll', function(){
218				checkStuck();
219
220				$('html').onCSSTransitionEnd(function(){
221					timerId = setInterval(function(){
222						if($('body').hasClass('ready')){
223							posHeight = $('.stuck-container').outerHeight();
224							container.css("height", posHeight);
225						}
226					}, 500);
227
228					setTimeout(function() {
229					  clearInterval(timerId);
230					}, 7000);
231				})
232			});
233
234		});
235	}
236
237    $(document).mouseup(function(e) 
238	{
239	    var scontainer = $(".modal-dialog");
240	    	container2 = $("#modal");
241	    
242	    if (!scontainer.is(e.target) && scontainer.has(e.target).length === 0) 
243	    {
244	    	if(container2.hasClass('in')){
245				container2.toggleClass('in');
246	    	}
247	    }
248	});
249
250    $(window).on("load", function(){
251    	if($(".page-loader").length){
252    		$('body').onCSSTransitionEnd(function(){
253    			$(".page-loader").addClass("loaded");
254    		});
255    	}
256    });
257
258
259})(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.