PageSourceSearch

https://augenschein-filmproduktion.de/files/cto_layout/scripts/scripts.js

js augenschein-filmproduktion.de collected 2026-10-02 10:37:28 UTC 3,009 bytes, 116 lines download raw bytes

1/**
2 * offcanvas open subnav
3 */
4
5jQuery(document).ready(function()
6{
7
8	jQuery('#off_canvas li.submenu').append('<span class="open_subnav">&nbsp;</span>');
9	
10	jQuery('#off_canvas li.submenu .open_subnav').on('click', function(){
11		var element = jQuery(this).parent('li');
12		if (element.hasClass('open')) {
13			element.removeClass('open');
14			element.find('li').removeClass('open');
15			element.find('ul').slideUp();
16		}
17		else {
18			element.addClass('open');
19			element.children('ul').slideDown();
20			element.siblings('li').children('ul').slideUp();
21			element.siblings('li').removeClass('open');
22			element.siblings('li').find('li').removeClass('open');
23			element.siblings('li').find('ul').slideUp();
24		}
25	});
26});
27
28/**
29 * Initialize various scripts
30 */
31 
32jQuery(document).ready(function()
33{
34	
35	// doubleTapToGo
36	if(jQuery('body').hasClass('android')  || jQuery('body').hasClass('win')) {
37		jQuery('nav.mainmenu li.submenu:not(.level_2 li, .level_3 li, .level_4 li, .level_5 li)').doubleTapToGo();
38	}
39
40	jQuery('.backside').doubleTapToGo();
41
42	// ce_hyperlink smooth scroll to anchor
43	jQuery(".ce_hyperlink a").click(function(){
44    	jQuery("html, body").animate({
45        	scrollTop: jQuery( jQuery.attr(this, "href") ).offset().top
46		}, 500);
47		return false;
48	});
49
50	// tooltips
51	/*
52	jQuery("abbr[title]").tooltip({effect: 'slide', fadeOutSpeed: 100});
53	jQuery(".tooltip_enable img[title]").tooltip({effect: 'slide', fadeOutSpeed: 100});
54	*/
55
56	// to top link
57	jQuery(window).scroll(function(){
58		if (jQuery(this).scrollTop() < 300) {
59			jQuery('#linktotop').fadeOut('slow');
60		} else {
61			jQuery('#linktotop').fadeIn('slow');
62		}
63	}); 
64
65	jQuery('#linktotop').click(function(){
66		windowHeight = jQuery(window).height();
67		jQuery('html,body').animate({scrollTop: jQuery('body').offset().top},'slow')
68		return false;
69	});
70
71	// onepagenavi | remove double id
72	jQuery('body.onepage #header .mod_article').removeAttr('id');
73	jQuery('#off_canvas .onepagenavigation').removeClass('mainmenu');
74	jQuery('#header .onepagenavigation, #stickyheader .onepagenavigation').unwrap();	
75});
76
77/**
78 * Show stickyheader on scroll
79 */
80
81jQuery(window).scroll(function(){
82	
83	var header = jQuery("#header").css("display");
84	var hasHeaderoffset = jQuery("#headeroffset").height();
85	var headerHeight = 150;
86	if (header == "none" || hasHeaderoffset =="0") {
87		headerHeight = 150;
88	} else {
89		headerHeight = jQuery("#headeroffset").height();
90	}
91	
92	if (jQuery(this).scrollTop() < headerHeight) {
93		jQuery('#stickyheader').removeClass('stickyheader_on');
94	} else {
95		jQuery('#stickyheader').addClass('stickyheader_on');
96	}
97});
98
99/**
100 * Jump to formular error
101 */
102jQuery(document).ready(function()
103{
104	var elem = jQuery('.formbody input.error').first();
105	if(elem.length < 1 || elem == undefined)
106	{
107		return;
108	}
109	
110	var offset = 100; // a litte offset in px for the scroll amount
111	var duration = 300; // the animation duration in ms
112	jQuery("html, body").animate(
113	{
114        scrollTop: elem.offset().top - elem.height() - offset
115	}, duration);
116});

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.