PageSourceSearch

https://secure.keylife.org/scripts/kln.js

js keylife.org collected 2026-10-04 00:26:23 UTC 4,252 bytes, 122 lines download raw bytes

1jQuery(document).ready(function () {
2	
3    //<!-- SIDEBAR MENU JAVASCRIPT -->
4    jQuery('#soSideBarMenu li.soMenuItem').click(function () {
5		if($(this).hasClass('opened')){
6			$(this).next('.opened').removeClass('opened').children('.opened').removeClass('opened');
7			$(this).removeClass('opened');
8		} else {
9			$(this).siblings('.soMenuItem').removeClass('opened');
10			$(this).parents('.soMenuItem').addClass('opened');
11			$(this).addClass('opened').parents('.soMenuItems').addClass('opened');
12		};
13	});
14	
15	// open menu when url matches a menu item link
16    var url = window.location.href;
17    jQuery('div#soSideBarMenu ul li a').each(function () {
18        if (this.href.toLowerCase().replace(/\/$/, '') == url.toLowerCase()) {
19            jQuery(this).parents('.soMenuItems').addClass('opened').show("fast").prev('.soMenuItem.withSubs').addClass('opened').show("fast");
20            jQuery(this).parent().addClass('current');
21        }
22    });
23	
24
25	//Header menu dropdown
26	jQuery('.has-dropdown').click(function(){
27		if(jQuery(this).hasClass('opened')){
28			jQuery(this).removeClass('opened');
29		} else{
30			jQuery(this).siblings('.has-dropdown').removeClass('opened');
31			jQuery(this).addClass('opened');
32		}
33	});
34
35
36
37	//copyright year - current year
38	//var y = new Date().getFullYear();
39 	//document.getElementById("copyrightDate").innerHTML = y;
40	
41	// Mobile Menu Icon
42	$(".mobileNavIcon").click(function(){
43		if($(".navbar-toggle").hasClass("collapsed")) {
44			$(".navbar-toggle").removeClass("collapsed");
45			$(".mobileNav").animate({width:"80%",visibility:"visible",opacity:"1",overflow:"visible"}).addClass("opened");
46			
47			$("#soPageWrapper").animate({marginLeft:"-80%", paddingRight:"80%"});
48			
49		//	$("#soPageContent").animate({marginLeft:"-80%"});
50		//	$(".adSpaceContainer").animate({marginLeft:"-80%"});
51		//	$(".soFooterContainer").animate({marginLeft:"-80%"});
52		} else {
53			$(".navbar-toggle").addClass("collapsed");
54			$(".mobileNav").animate({width:"0",visibility:"hidden",opacity:"0",overflow:"none"}, function(){
55				$(this).removeClass("opened");
56			});
57			
58			$("#soPageWrapper").animate({marginLeft:"0", paddingRight:"0"});
59			
60		//	$("#soPageContent").animate({marginLeft:"0"});
61		//	$(".adSpaceContainer").animate({marginLeft:"0"});
62		//	$(".soFooterContainer").animate({marginLeft:"0"});
63		}
64	});
65
66
67
68	
69		// Change project amount radio buttons to large buttons
70		$('.dsProjectDonationDetails li').click(function(){
71			$(this).addClass('amountSelected');
72			$(this).siblings('.dsProjectDonationDetails li').removeClass('amountSelected');
73		//	$(this).siblings('input[type="radio"]').removeProp("checked");
74			$(this).children('input:radio').prop("checked", true);
75			
76			// input focus and amount clearing for projects
77			var amount = new Number($("input[name='donationAmount']:checked").val());
78			if (amount == 0) {
79				$('#txtDonationAmount[type="text"]').prop('disabled', false);
80				$('#txtDonationAmount[type="text"]').focus();
81				/*$('#txtDonationAmount').click(function() {
82					var focusValue = new Number($('#txtDonationAmount').attr('value',''));
83					if(focusValue == 0){
84						$('#txtDonationAmount').attr('value','');
85					};
86					
87				});*/
88			}
89			else {
90				$('#txtDonationAmount[type="text"]').prop('disabled', true);
91				$('#txtDonationAmount[type="text"]').val('0.00');
92			}
93			
94			// input focus and amount clearing for pledges
95			var amount = new Number($("input[name='pledgeAmount']:checked").val());
96			if (amount == 0) {
97				$('#otherPledgeAmount[type="text"]').prop('disabled', false);
98				$('#otherPledgeAmount[type="text"]').focus();
99				/*$('#otherPledgeAmount').click(function() {
100					var focusValue = new Number($('#otherPledgeAmount').attr('value',''));
101					if(focusValue == 0){
102						$('#otherPledgeAmount').attr('value','');
103					};
104					
105				});*/
106			}
107			else {
108				$('#otherPledgeAmount[type="text"]').prop('disabled', true);
109				$('#otherPledgeAmount[type="text"]').val('0.00');
110			}
111			
112			
113		});	
114		
115		
116		$("input#otherPledgeAmount").closest("li").addClass("otherAmtField");
117
118		$('.dsProjectLabel:contains(Other)').parent('li').addClass('otherField');
119		
120	
121
122});

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.