PageSourceSearch

https://www.clubdam.com/js/jquery.switch_tabs.js

js clubdam.com collected 2026-09-24 17:40:39 UTC 1,703 bytes, 61 lines download raw bytes

1(function($) {
2$(function(){
3
4if($('.switch_tabs').length) {
5	$('#damtomo_login .switch_tabs').each(function() {
6		var defaultTab = $(this).find('a[rel!="link"]').parent().eq(0).index();
7
8		$('li:eq(' + defaultTab + ')', this).addClass('current').end()
9		.next().children('div:eq(0)').show();
10
11//		$('li:eq(' + defaultTab + ') img', this).attr('src',
12//			$('li:eq(' + defaultTab + ') img', this).attr('src').replace('.gif', '_on.gif')
13//		);
14	});
15
16	$('#damtomo_login .switch_tabs li:not(:has(a[rel="link"]))').click(function() {
17		if(!$(this).parents('.no_switch').length) {
18			if($(this).attr('class')!='current') {
19				$(this).parent().children('li').each(function() {
20					$(this).removeClass();
21//					$('img', this).attr('src',
22//						$('img', this).attr('src').replace('_on.gif', '.gif')
23//					);
24				})
25
26				$(this).addClass('current');
27//				$('img', this).attr('src',
28//					$('img', this).attr('src').replace('.gif', '_on.gif')
29//				);
30
31				if($('a', this).attr('rel') && $('a', this).attr('rel')=='sp') {
32					return false;
33				} else {
34					var targetNum;
35
36					if($('a', this).attr('rel')) {
37						if($('a', this).attr('rel').match('specify')) {
38							var val = String($('a', this).attr('rel').match(/specify:\d{1,}/));
39							targetNum = eval(val.replace('specify:', '')) - 1;
40						};
41					} else {
42						targetNum = $('.switch_tabs li:not(:has(a[rel="link"]))').index(this);
43					};
44
45					$(this).parent().next().children('div').hide().end()
46					.children('div:eq(' + targetNum + ')').fadeIn();
47				};
48			};
49			if($('a', this).attr('rel')) {
50				if(!$('a', this).attr('rel').match('js')) {
51					return false;
52				};
53			} else {
54				return false;
55			};
56		};
57	});
58};
59
60});
61})(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.