PageSourceSearch

https://wuselstunde.de/wp-content/themes/digitax/assets/js/script.js

js wuselstunde.de collected 2026-10-04 15:50:03 UTC 3,280 bytes, 114 lines download raw bytes

1(function($){
2	"use strict";
3	$(document).ready(function(){
4
5		/* Scroll to top */
6		digitax_scrollUp();
7		function digitax_scrollUp(options) {
8		           
9		    var defaults = {
10		        scrollName: 'scrollUp', 
11		        topDistance: 600, 
12		        topSpeed: 800, 
13		        animation: 'fade', 
14		        animationInSpeed: 200, 
15		        animationOutSpeed: 200, 
16		        scrollText: '<i class="fas fa-angle-up"></i>', 
17		        scrollImg: false, 
18		        activeOverlay: false 
19		    };
20
21		    var o = $.extend({}, defaults, options),
22		            scrollId = '#' + o.scrollName;
23
24
25		    $('<a/>', {
26		        id: o.scrollName,
27		        href: '#top',
28		        title: o.scrollText
29		    }).appendTo('body');
30
31
32		    if (!o.scrollImg) {
33
34		        $(scrollId).html(o.scrollText);
35		    }
36
37
38		    $(scrollId).css({'display': 'none', 'position': 'fixed', 'z-index': '2147483647'});
39
40
41		    if (o.activeOverlay) {
42		        $("body").append("<div id='" + o.scrollName + "-active'></div>");
43		        $(scrollId + "-active").css({'position': 'absolute', 'top': o.topDistance + 'px', 'width': '100%', 'border-top': '1px dotted ' + o.activeOverlay, 'z-index': '2147483647'});
44		    }
45
46
47		    $(window).scroll(function () {
48		        switch (o.animation) {
49		            case "fade":
50		                $(($(window).scrollTop() > o.topDistance) ? $(scrollId).fadeIn(o.animationInSpeed) : $(scrollId).fadeOut(o.animationOutSpeed));
51		                break;
52		            case "slide":
53		                $(($(window).scrollTop() > o.topDistance) ? $(scrollId).slideDown(o.animationInSpeed) : $(scrollId).slideUp(o.animationOutSpeed));
54		                break;
55		            default:
56		                $(($(window).scrollTop() > o.topDistance) ? $(scrollId).show(0) : $(scrollId).hide(0));
57		        }
58		    });
59
60		    
61		    $(scrollId).on( "click", function (event) {
62		        $('html, body').animate({scrollTop: 0}, o.topSpeed);
63		        event.preventDefault();
64		    });
65
66		}
67
68		/* Fix empty menu in test_uni_data */
69		if( $( '.widget_nav_menu ul li' ).length > 0 ){
70			$( '.widget_nav_menu ul li a:empty' ).parent().css('display','none');
71		}
72
73		/* Select 2 */
74		$('select').select2({ 
75			width: '100%'
76		});
77
78
79		/* Stick Menu When Scroll Page */
80		function digitax_scroll(){
81			if( $('.ovamenu_shrink').length > 0 ){
82				
83				var header = $('.ovamenu_shrink');
84				var scroll = $(window).scrollTop();
85
86				if (scroll >= 250) {
87		             header.addClass('active_fixed');
88		        } else{
89		            header.removeClass('active_fixed');
90		        }
91
92			}
93		}
94		$(window).scroll(function () { digitax_scroll(); });
95
96		/* Popup Image - PrettyPhoto */
97		if( $("a[data-gal^='prettyPhoto']").length > 0 ){
98		 	$("a[data-gal^='prettyPhoto']").prettyPhoto({hook: 'data-gal', theme: 'facebook',slideshow:5000, autoplay_slideshow:true});
99	    }
100	    
101
102	    $( '.ovatheme_header_default li.menu-item button.dropdown-toggle').off('click').on( 'click', function() {
103		    $(this).parent().toggleClass('active_sub');
104		});
105
106		$(".comment-reply-link").siblings('.flaticon-retweet-arrows-couple-symbol').css('display', 'inline-block');
107
108		//delete character special of counter number
109		$(".digitax-counter .elementor-counter-number").attr('data-delimiter','');
110
111
112	});	
113
114})(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.