PageSourceSearch

https://forumue.de/wp-content/themes/forumUE/js/forum.js?ver=7.1.2

js forumue.de collected 2026-10-02 04:04:21 UTC 4,681 bytes, 196 lines download raw bytes

1jQuery.noConflict();
2(function($) {
3
4	$(document).ready(function(){
5		
6		
7	var touch = false;
8	var mob = false;
9	// detect touch 
10	if ("ontouchstart" in document.documentElement) {
11		touch = true;
12	} 
13	// detect mobile 
14	if ($(".burger").is(":visible")) {
15		mob = true;
16	}
17	
18
19var wh = window.innerHeight;
20var ww = window.innerWidth;
21
22if(mob) { 
23	$( ".main-menu" ).append($('.search'));
24	
25	$( ".search" ).show();
26
27	$( ".entry-content" ).append($('.thema .elemente '));
28
29}
30
31	$( ".burger").on( "click", function() {
32		$( ".main-menu" ).fadeToggle( "200", "linear" );
33		$( ".menuoverlay" ).fadeToggle( "200", "linear" );
34		$('.burger').toggleClass("change");  
35	});
36	
37	$( ".rundbrief .rbhead" ).append($('.service '));
38
39	$( ".rundbriefsub").on( "click", function() {
40		$( this ).next().fadeToggle( "200", "linear" );
41	});
42	
43	$( ".subhead").on( "click", function() {
44		$( this ).next().fadeToggle( "200", "linear" );
45	});
46	
47		
48		//console.log('mob '+mob);
49
50		// remove img attirbutes
51		$('img[width]').each(function() { $(this).removeAttr('width'); });
52		$('img[height]').each(function() { $(this).removeAttr('height'); });
53		
54		//remove empty p
55		$(".content p").each(function() { 
56		   var $el = $(this);
57		   if($.trim($el.html()) == " ") {
58			 $el.remove();
59		   }
60		 });
61
62
63
64	function calculateLineCount(element) {
65	  var lineHeightBefore = element.css("line-height"),
66		  boxSizing        = element.css("box-sizing"),
67		  height,
68		  lineCount;
69	
70	  // Force the line height to a known value
71	  element.css("line-height", "1px");
72	
73	  // Take a snapshot of the height
74	  height = parseFloat(element.css("height"));
75	
76	  // Reset the line height
77	  element.css("line-height", lineHeightBefore);
78	
79	  if (boxSizing == "border-box") {
80		// With "border-box", padding cuts into the content, so we have to subtract
81		// it out
82		var paddingTop    = parseFloat(element.css("padding-top")),
83			paddingBottom = parseFloat(element.css("padding-bottom"));
84			
85		height -= (paddingTop + paddingBottom);
86	  }
87	
88	  // The height is the line count
89	  lineCount = height;
90	
91	  return lineCount;
92	}
93	
94
95
96
97		// newsletter etc	
98
99		$('.trigger').on('click', function (e) {
100			e.preventDefault();
101			console.log($(this).attr("href"));
102			//alert($(this).attr("href"));
103			$('#modal').iziModal('open', e); // Use "event" to get URL href
104			//$('#modal').show();
105		});
106
107
108		$("#modal").iziModal({
109			iframe: true,
110			iframeHeight: 700,
111			width: 660,
112			zindex: 999,
113			history: false,
114			closeButton: true,
115			appendTo: 'body'
116		});
117
118
119
120	$(".item .txtwrap ").each(function() {
121		var lc = calculateLineCount($(this).find('.hy'))
122		//console.log('count '+lc);
123		if(lc == 1) {
124			//console.log('count '+lc);
125			//$(this).find('.text_here').hide();
126			var the_obj = $(this).find('.text_here').ThreeDots({ max_rows: 6 });
127			//threedots_object.update();
128		} else if(lc == 2) {
129			//console.log('count '+lc);
130			//$(this).find('.text_here').hide();
131			var the_obj = $(this).find('.text_here').ThreeDots({ max_rows: 5 });
132			//threedots_object.update();
133		} else if(lc == 3) {
134			//console.log('count '+lc);
135			//$(this).find('.text_here').hide();
136			var the_obj = $(this).find('.text_here').ThreeDots({ max_rows: 3 });
137			//threedots_object.update();
138		} else if(lc == 4) {
139			//console.log('count '+lc);
140			//$(this).find('.text_here').hide();
141			var the_obj = $(this).find('.text_here').ThreeDots({ max_rows: 2	 });
142			//threedots_object.update();
143		} else if(lc > 4) {
144			//console.log('count '+lc);
145			//var the_obj = $(this).find('.text_here').ThreeDots({ max_rows: 0	 });
146			$(this).find('.ellipsis_text').hide();
147			//threedots_object.update();
148		} 
149		$(this).animate({ opacity: 1 });
150	});
151
152
153// back_to_top Button wird mit JavaScriptvor dem Ende des body eingebunden.
154	var back_to_top_button = ['<a href="#top" class="back-to-top">▲</a>'].join("");
155	$("body").append(back_to_top_button)
156
157	// Der Button wird ausgeblendet
158	$(".back-to-top").hide();
159
160	// Funktion für das Scroll-Verhalten
161	$(function () {
162		$(window).scroll(function () {
163			if ($(this).scrollTop() > 200) { // Wenn 200 Pixel gescrolled wurde
164				$('.back-to-top').fadeIn();
165			} else {
166				$('.back-to-top').fadeOut();
167			}
168		});
169
170
171		$('.back-to-top').click(function () { // Klick auf den Button
172			$('body,html').animate({
173				scrollTop: 0
174			}, 800);
175			return false;
176		});
177	});		
178	
179	
180    $('.entry-content iframe').removeAttr('width');
181    $('.entry-content iframe').removeAttr('height');
182
183	$( ".entry-content iframe" ).wrap( "<div class='wrapit'></div>" );
184
185	$(window).scroll(function() {
186	//	$('#header').css('top', $(this).scrollTop() + "px");
187	});	
188
189	}); //end ready
190	
191	
192	$( window ).load(function() {	
193
194	
195	});
196})(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.