PageSourceSearch

https://www.booksummary.net/wp-content/plugins/multi-column-tag-map/mctagmap.js?ver=17.0.39

js booksummary.net collected 2026-10-02 23:23:17 UTC 3,869 bytes, 130 lines download raw bytes

1/* ===== 
2
3You are free to modify this file but you should really create a folder in your
4themes directory called (exactly) multi-column-tag-map and then copy this file 
5to that folder. Make your edits to the copy. If you make your edits to the 
6file in the plugins folder, all your edits will be overwritten if you update.
7
8===== */ 
9
10/* =====  version 17.0.39 ===== */ 
11
12		/* multi_page_ajax */
13		function mctmGetGroup(letter){
14			alert(letter);
15			
16		}
17
18/* ===== equalize ===== */
19
20bp1 = 0;
21bp2 = 0;
22bp3 = 0;
23bp4 = 0;
24bp5 = 0;
25max = 1;
26
27(function (jQuery) {
28	jQuery.fn.mctagmapEqualHeights = function() {
29		var max_height = 0;
30		var currentHeight = 0;
31		this.each(function() {
32			currentHeight = jQuery(this).height();
33			if(currentHeight > max_height) {
34				max_height = currentHeight;
35			}
36		});
37		this.each(function() {
38			jQuery(this).delay(0).animate({'min-height' : max_height}, 0);
39		});
40	};
41})(jQuery);
42
43jQuery(document).ready(function(){
44								
45/* ==== toggle ==== */
46  jQuery('a.less').hide();
47  jQuery('ul.links li.hideli').hide();
48  jQuery('ul.links li.morelink').show();
49  jQuery(' a.more').click(function() {
50	jQuery(this).parent().siblings('li.hideli').slideToggle('fast');
51	 jQuery(this).parent('li.morelink').children('a.less').show();
52	 jQuery(this).hide();
53  });
54    jQuery('a.less').click(function() {
55	jQuery(this).parent().siblings('li.hideli').slideToggle('fast');
56	 jQuery(this).parent('li.morelink').children('a.more').show();
57	 jQuery(this).hide();
58  });
59
60/* ===== equalize ===== */
61	var numberOfHoldLeftChildren = 0;
62	var numberOfTagIndex = jQuery('.mcEqualize .holdleft').eq(0).children('.tagindex').length;
63	while(numberOfHoldLeftChildren <= numberOfTagIndex){
64		jQuery('.mcEqualize .holdleft').children('.tagindex:nth-child('+numberOfHoldLeftChildren+')').mctagmapEqualHeights();
65	    numberOfHoldLeftChildren++;
66	}
67
68
69	
70/* ==== test purposes 
71jQuery('.tagindex').css({'background-color' : '#D9CBDB', 'margin-bottom' : '10px'});
72==== */
73 
74		/* === responsive === */
75		/* the width of the first item */
76		if(typeof tagindexwidth != 'undefined'){
77			tagindexwidth = parseInt(tagindexwidth, 10);
78		} else {
79			tagindexwidth = 0;
80			maxColumns = 2;
81		}
82		jQuery('.tagindex').css({'min-width':tagindexwidth,'width':''});
83		/* the maximum number of columns you want at fullscreen desktop */
84		maxColumns = maxColumns;
85		if(maxColumns > 5){
86			maxColumns = 5;
87		}
88		if(maxColumns <= 0){
89			maxColumns = 2;
90		}
91		max = 5 - maxColumns;
92		/* make the breakpoints */
93		bp5 = tagindexwidth * 5;
94		bp4 = tagindexwidth * 4;
95		bp3 = tagindexwidth * 3;
96		bp2 = tagindexwidth * 2;
97		bp1 = tagindexwidth * 1;
98});
99
100	/* === responsive === */
101	jQuery(window).on('load',mctm_columns_tug98);
102	jQuery(window).on('resize',mctm_columns_tug98);
103	function mctm_columns_tug98() {
104		setTimeout(function(){
105			/* the width of the column container */
106			hlw = jQuery('#mcTagMap div.responsive').innerWidth();
107			/* "media queries" */
108			if(hlw > bp4){
109				jQuery('#mcTagMap div.responsive').css({'column-count':5 - max});
110			}
111			if(hlw <= bp5 && hlw > bp4){
112				jQuery('#mcTagMap div.responsive').css({'column-count':4 - max});
113			}
114			if(hlw <= bp4 && hlw > bp3){
115				jQuery('#mcTagMap div.responsive').css({'column-count':3 - max});
116			}
117			if(hlw <= bp3 && hlw > bp2){
118				jQuery('#mcTagMap div.responsive').css({'column-count':2 - max});
119			}
120			if(hlw <= bp2){
121				jQuery('#mcTagMap div.responsive').css({'column-count':1});
122				jQuery('.tagindex').css({'min-width':0});
123			}
124			if (window.location.href.indexOf("tugadmin") > -1) {
125				//console.log('hlw: '+hlw);
126				//console.log('tiw: '+tagindexwidth);
127				//console.log('5: ' + bp5 + ' - 4: ' +  bp4  + ' - 3: ' +  bp3  + ' - 2: ' +   bp2  + ' - 1: ' +  bp1);
128			}
129		}, 500);
130	}

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.