PageSourceSearch

https://www.klartext-jesus.de/wp-content/themes/wpuniversity/scripts/scripts.js?ver=7.1.3

js klartext-jesus.de collected 2026-10-10 00:09:53 UTC 4,606 bytes, 147 lines download raw bytes

1/**
2 * 
3 * credits for this plugin go to brandonaaron.net
4 * 	
5 * unfortunately his site is down
6 * 
7 * @param {Object} up
8 * @param {Object} down
9 * @param {Object} preventDefault
10 */
11jQuery.fn.extend({
12	mousewheel: function(up, down, preventDefault) {
13		return this.hover(
14			function() {
15				jQuery.event.mousewheel.giveFocus(this, up, down, preventDefault);
16			},
17			function() {
18				jQuery.event.mousewheel.removeFocus(this);
19			}
20		);
21	},
22	mousewheeldown: function(fn, preventDefault) {
23		return this.mousewheel(function(){}, fn, preventDefault);
24	},
25	mousewheelup: function(fn, preventDefault) {
26		return this.mousewheel(fn, function(){}, preventDefault);
27	},
28	unmousewheel: function() {
29		return this.each(function() {
30			jQuery(this).unmouseover().unmouseout();
31			jQuery.event.mousewheel.removeFocus(this);
32		});
33	},
34	unmousewheeldown: jQuery.fn.unmousewheel,
35	unmousewheelup: jQuery.fn.unmousewheel
36});
37
38
39// Tooltip from CSS Globe written by Alen Grakalic (http://cssglobe.com)
40this.tooltip = function(){xOffset = -10;yOffset = 10;jQuery.noConflict();jQuery(".tooltip").hover(function(e){this.t = this.title;this.title = "";jQuery("body").append("<p class='itooltip'>"+ this.t +"</p>");jQuery(".itooltip").css("top",(e.pageY - xOffset) + "px").css("left",(e.pageX + yOffset) + "px").fadeIn(500);},function(){this.title = this.t; jQuery(".itooltip").remove();});jQuery("a.tooltip").mousemove(function(e){jQuery(".itooltip").css("top",(e.pageY - xOffset) + "px").css("left",(e.pageX + yOffset) + "px");});};
41//END TOOLTIP
42
43
44//MOLITOR SCRIPTS
45this.molitorscripts = function () {
46
47	
48	//DEFINE VARIABLES
49	var notitle = "#dropmenu a",
50	    opacity = ".60",
51		browserName = navigator.appName;	
52		
53	
54	jQuery('#menu-control').click(function(){
55		jQuery('#navigation').toggleClass('open');
56	},function(){
57		jQuery('#navigation').toggleClass('open');
58	});
59
60
61	//REMOVE TITLE ATTRIBUTE
62	jQuery(notitle).removeAttr("title");
63	
64	//DEFINE VARIABLES BASED ON BROWSER BEING USED
65	if (browserName != "Microsoft Internet Explorer"){
66    var arrow = "#dropmenu ul li ul";	
67	}
68	else {
69	var arrow = "#dropmenu ul li ul";
70	}
71	
72	//MENU
73	jQuery("#dropmenu ul").css("display", "none"); // Opera Fix
74	jQuery("#dropmenu li").hover(function(){
75		jQuery(this).find('ul:first').slideDown(200);
76		},function(){
77		jQuery(this).find('ul:first').slideUp(200);
78	});
79	jQuery(arrow).parent().children("a").prepend("<span style='float:right;'>&rsaquo;</span>");
80	
81	jQuery(function() {
82	var zIndexNumber = 1000;
83	jQuery('div').each(function() {
84		jQuery(this).css('zIndex', zIndexNumber);
85		zIndexNumber -= 10;
86	});
87	});
88	
89	//Show Banner
90	jQuery(".main_image .desc").show(); //Show Banner
91	//Click and Hover events for thumbnail list
92	jQuery(".image_thumb ul li:first").addClass('active'); 
93	jQuery(".image_thumb ul li").click(function(){ 
94		//Set Variables
95		var imgAlt = jQuery(this).find('img').attr("alt"); //Get Alt Tag of Image
96		var imgTitle = jQuery(this).find('span img').attr("src"); //Get Main Image URL
97		var imgDesc = jQuery(this).find('.block').html(); 	//Get HTML of block
98		var imgDescHeight = jQuery(".main_image").find('.block').height();	//Calculate height of block	
99		
100		if (jQuery(this).is(".active")) {  //If it's already active, then...
101			return false; // Don't click through
102		} else {
103			//Animate the Teaser				
104			jQuery(".main_image .block").stop(true,true).animate({ opacity: 0, marginBottom: -imgDescHeight }, 250 , function() {
105				jQuery(".main_image .block").html(imgDesc).stop(true,true).animate({ opacity: 1,	marginBottom: "0" }, 250 );
106				jQuery(".main_image img").attr({ src: imgTitle , alt: imgAlt});
107			});
108		}
109		
110		jQuery(".image_thumb ul li").removeClass('active'); //Remove class of 'active' on all lists
111		jQuery(this).addClass('active');  //add class of 'active' on this list only
112		return false;
113		
114	}) .hover(function(){
115		jQuery(this).addClass('hover');
116		}, function() {
117		jQuery(this).removeClass('hover');
118	});	
119	//Toggle Teaser
120	jQuery("a.collapse").click(function(){
121		jQuery(".main_image .block").slideToggle();
122		jQuery(this).toggleClass("show");
123		return false; //NEW
124	});
125	
126	//TABS
127	jQuery(function () {
128    var tabContainers = jQuery('#tabs > div');
129    
130    jQuery('#tabs h2.tabNavigation a').click(function () {
131        tabContainers.hide().filter(this.hash).fadeIn(350);
132        
133        jQuery('#tabs h2.tabNavigation a').removeClass('selected');
134        jQuery(this).addClass('selected');
135        
136        return false;
137    }).filter(':first').click();
138	
139});
140
141	
142	
143}
144
145//END MYSCRIPTS
146
147jQuery.noConflict(); jQuery(document).ready(function(){molitorscripts(); tooltip();  });

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.