PageSourceSearch

https://apologetics315.com/wp-content/plugins/multi-column-tag-map/mctagmap.js?ver=17.0.24

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

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.