PageSourceSearch

https://theatermuseum.at/fileadmin/templates/shared/js/main.js

js theatermuseum.at collected 2026-10-02 06:28:20 UTC 2,161 bytes, 75 lines download raw bytes

1$(function() {
2
3	//Fix bug in TYPO3: It cannot link to external url if the page itself doesn't have a valid Domain
4	$('.imprint A[href="http://10.40.40.51/"]').attr("href", "https://booking.khm.at").attr("target", "_blank");
5	$('.imprint A[href="http://10.40.40.51/en/"]').attr("href", "https://booking.khm.at/en/").attr("target", "_blank");
6	
7	if($.browser.mobile || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i)) {
8		$('html').addClass('mobile-browser');
9		//alert('mobile');
10	}
11		
12	/* lightbox accordion */
13	$('.lightbox .title').click(function(){
14		$('.lightbox .description').slideToggle(function() {
15			$('.lightbox .content').toggleClass('active-content');
16			$('.lightbox .title').toggleClass('active');
17		});
18	});
19	
20	/* dummy container / exhibition preview image overlay: trigger click event */
21	$('.dummy-container').click(function() {
22		var link = $(this).find('a.more');
23		var target = link.attr('target');
24		var href = link.attr('href');
25		if (target == '_blank') {
26			window.open(href);
27		} else if(href.indexOf('http') >= 0) {
28			document.location = href;
29		} else if(href.substring(0, 1) == '/') {
30			document.location = href;
31		} else {
32			document.location = '/' + href;
33		}
34		return false;
35	});
36	$('.exhibition-preview .image-overlay, .research-list .image-overlay').click(function() {
37		if($(this).prev('a')[0]) {
38			var link = $(this).prev('a');
39			var target = link.attr('target');
40			var href = link.attr('href');
41			if (target == '_blank') {
42				window.open(href);
43			} else if(href.indexOf('http') >= 0) {
44				document.location = href;
45			} else if(href.substring(0, 1) == '/') {
46				document.location = href;
47			} else {
48				document.location = '/' + href;
49			}
50		}
51		return false;
52	});
53	$('.exhibition-preview .image-overlay').hover(function() {
54		if($(this).prev('a')[0]) {
55			$(this).css({'cursor': 'pointer'});
56		}
57	});	
58	
59	/* scroll to top */
60	$(window).scroll(function () {
61		if ($(this).scrollTop() > 100) {
62			$('.to-top').fadeIn();
63		} else {
64			$('.to-top').fadeOut();
65		}
66	});
67	$('.to-top').click(function () {
68		$('body,html').animate({
69			scrollTop: 0
70		}, 800);
71		return false;
72	});
73		
74	
75});

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.