<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.mechlivinglegends.net/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
		<title>MediaWiki:Common.js - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.mechlivinglegends.net/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
		<link rel="alternate" type="text/html" href="https://wiki.mechlivinglegends.net/index.php?title=MediaWiki:Common.js&amp;action=history"/>
		<updated>2026-04-29T04:02:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://wiki.mechlivinglegends.net/index.php?title=MediaWiki:Common.js&amp;diff=10415&amp;oldid=prev</id>
		<title>DragonGod004 at 00:02, 25 June 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.mechlivinglegends.net/index.php?title=MediaWiki:Common.js&amp;diff=10415&amp;oldid=prev"/>
				<updated>2020-06-25T00:02:51Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 00:02, 25 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot; &gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;					if (l&amp;lt;t) l=t;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;					if (l&amp;lt;t) l=t;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				$(this).css(&amp;quot;position&amp;quot;,&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;relative&lt;/del&gt;&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				$(this).css(&amp;quot;position&amp;quot;,&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sticky&lt;/ins&gt;&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				$(this).html('&amp;lt;a href=&amp;quot;javascript:void(0)&amp;quot; class=&amp;quot;showFilterMenu&amp;quot;&amp;gt;'+$(this).html()+'▼&amp;lt;/a&amp;gt;');&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				$(this).html('&amp;lt;a href=&amp;quot;javascript:void(0)&amp;quot; class=&amp;quot;showFilterMenu&amp;quot;&amp;gt;'+$(this).html()+'▼&amp;lt;/a&amp;gt;');&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				$(this).append($('&amp;lt;div class=&amp;quot;filterMenu&amp;quot; style=&amp;quot;position:absolute;top:'+$(this).height()+'px;left:0;width:'+(22+l*7)+'px;text-align:left;padding:5px;border:1px #000 solid;background:#ddd;z-index:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;1&lt;/del&gt;;display:none&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;'));&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				$(this).append($('&amp;lt;div class=&amp;quot;filterMenu&amp;quot; style=&amp;quot;position:absolute;top:'+$(this).height()+'px;left:0;width:'+(22+l*7)+'px;text-align:left;padding:5px;border:1px #000 solid;background:#ddd;z-index:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;99999&lt;/ins&gt;;display:none&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;'));&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				for (j=0; j&amp;lt;cols.length; j++){&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				for (j=0; j&amp;lt;cols.length; j++){&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;					$(this).find(&amp;quot;.filterMenu&amp;quot;).append('&amp;lt;div&amp;gt;&amp;lt;input type=&amp;quot;checkbox&amp;quot; value=&amp;quot;'+cols[j]+'&amp;quot; col=&amp;quot;'+(i+1)+'&amp;quot; class=&amp;quot;filterOption&amp;quot; checked&amp;gt;'+cols[j]+'&amp;lt;/div&amp;gt;')&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;					$(this).find(&amp;quot;.filterMenu&amp;quot;).append('&amp;lt;div&amp;gt;&amp;lt;input type=&amp;quot;checkbox&amp;quot; value=&amp;quot;'+cols[j]+'&amp;quot; col=&amp;quot;'+(i+1)+'&amp;quot; class=&amp;quot;filterOption&amp;quot; checked&amp;gt;'+cols[j]+'&amp;lt;/div&amp;gt;')&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DragonGod004</name></author>	</entry>

	<entry>
		<id>https://wiki.mechlivinglegends.net/index.php?title=MediaWiki:Common.js&amp;diff=10414&amp;oldid=prev</id>
		<title>DragonGod004: Created page with &quot;function filterTable(){ 	$(&quot;table.filterable&quot;).each(function(){ 		var i=0; 		var cols; 		$(this).find(&quot;tr:first-child th, tr:first-child td&quot;).each(function(){ 			if (!$(this)....&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.mechlivinglegends.net/index.php?title=MediaWiki:Common.js&amp;diff=10414&amp;oldid=prev"/>
				<updated>2020-06-24T22:38:21Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;function filterTable(){ 	$(&amp;quot;table.filterable&amp;quot;).each(function(){ 		var i=0; 		var cols; 		$(this).find(&amp;quot;tr:first-child th, tr:first-child td&amp;quot;).each(function(){ 			if (!$(this)....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;function filterTable(){&lt;br /&gt;
	$(&amp;quot;table.filterable&amp;quot;).each(function(){&lt;br /&gt;
		var i=0;&lt;br /&gt;
		var cols;&lt;br /&gt;
		$(this).find(&amp;quot;tr:first-child th, tr:first-child td&amp;quot;).each(function(){&lt;br /&gt;
			if (!$(this).hasClass(&amp;quot;unfilterable&amp;quot;)){&lt;br /&gt;
				cols=[];&lt;br /&gt;
				$(this).closest(&amp;quot;table&amp;quot;).find(&amp;quot;tr td:nth-child(&amp;quot;+(i+1)+&amp;quot;)&amp;quot;).each(function(){&lt;br /&gt;
					cols.push($(this).text());&lt;br /&gt;
				});&lt;br /&gt;
				cols = arrayUnique(cols);&lt;br /&gt;
				l=0;&lt;br /&gt;
				for (j=0; j&amp;lt;cols.length; j++){&lt;br /&gt;
					t=charLength(cols[j]);&lt;br /&gt;
					if (l&amp;lt;t) l=t;&lt;br /&gt;
				}&lt;br /&gt;
				$(this).css(&amp;quot;position&amp;quot;,&amp;quot;relative&amp;quot;);&lt;br /&gt;
				$(this).html('&amp;lt;a href=&amp;quot;javascript:void(0)&amp;quot; class=&amp;quot;showFilterMenu&amp;quot;&amp;gt;'+$(this).html()+'▼&amp;lt;/a&amp;gt;');&lt;br /&gt;
				$(this).append($('&amp;lt;div class=&amp;quot;filterMenu&amp;quot; style=&amp;quot;position:absolute;top:'+$(this).height()+'px;left:0;width:'+(22+l*7)+'px;text-align:left;padding:5px;border:1px #000 solid;background:#ddd;z-index:1;display:none&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;'));&lt;br /&gt;
				for (j=0; j&amp;lt;cols.length; j++){&lt;br /&gt;
					$(this).find(&amp;quot;.filterMenu&amp;quot;).append('&amp;lt;div&amp;gt;&amp;lt;input type=&amp;quot;checkbox&amp;quot; value=&amp;quot;'+cols[j]+'&amp;quot; col=&amp;quot;'+(i+1)+'&amp;quot; class=&amp;quot;filterOption&amp;quot; checked&amp;gt;'+cols[j]+'&amp;lt;/div&amp;gt;')&lt;br /&gt;
				}&lt;br /&gt;
			}&lt;br /&gt;
			i++;&lt;br /&gt;
		});&lt;br /&gt;
		$(this).find(&amp;quot;tr:nth-child(n+1)&amp;quot;).attr(&amp;quot;condition&amp;quot;, 0);&lt;br /&gt;
	});&lt;br /&gt;
	$(&amp;quot;.showFilterMenu&amp;quot;).click(function(){&lt;br /&gt;
		if ($(this).parent().find(&amp;quot;.filterMenu:visible&amp;quot;).length){&lt;br /&gt;
			$(&amp;quot;.filterMenu&amp;quot;).slideUp(150);&lt;br /&gt;
		}else{&lt;br /&gt;
			$(&amp;quot;.filterMenu&amp;quot;).slideUp(150);&lt;br /&gt;
			$(this).parent().find(&amp;quot;.filterMenu&amp;quot;).slideDown(150);&lt;br /&gt;
		}&lt;br /&gt;
	});&lt;br /&gt;
	$(document).mouseup(function(e){&lt;br /&gt;
		var container = $(&amp;quot;.filterMenu&amp;quot;);&lt;br /&gt;
	    if (!container.is(e.target) &amp;amp;&amp;amp; container.has(e.target).length === 0){&lt;br /&gt;
	        container.slideUp(150);&lt;br /&gt;
	    }&lt;br /&gt;
	});&lt;br /&gt;
	$(&amp;quot;.filterOption&amp;quot;).click(function(){&lt;br /&gt;
		col=$(this).attr(&amp;quot;col&amp;quot;);&lt;br /&gt;
		val=$(this).val();&lt;br /&gt;
		if ($(this).is(&amp;quot;:checked&amp;quot;)) chg=1; else chg=-1;&lt;br /&gt;
		$(this).closest(&amp;quot;table&amp;quot;).find(&amp;quot;tr:nth-child(n+1)&amp;quot;).each(function(){&lt;br /&gt;
			if ($(this).find(&amp;quot;td:nth-child(&amp;quot;+col+&amp;quot;)&amp;quot;).text()==val){&lt;br /&gt;
				var cond=$(this).attr(&amp;quot;condition&amp;quot;);&lt;br /&gt;
				cond=Number(cond)+chg;&lt;br /&gt;
				$(this).attr(&amp;quot;condition&amp;quot;, cond);&lt;br /&gt;
				if (cond==0) $(this).show();&lt;br /&gt;
				else $(this).hide();&lt;br /&gt;
			}&lt;br /&gt;
		});&lt;br /&gt;
	});&lt;br /&gt;
}&lt;br /&gt;
function arrayUnique(a) {&lt;br /&gt;
    return a.reduce(function(p, c) {&lt;br /&gt;
        if (p.indexOf(c) &amp;lt; 0) p.push(c);&lt;br /&gt;
        return p;&lt;br /&gt;
    }, []);&lt;br /&gt;
};&lt;br /&gt;
function charLength(s){&lt;br /&gt;
	return s.length+(encodeURI(s).split(/%..|./).length-1-s.length)/2;&lt;br /&gt;
}&lt;br /&gt;
filterTable();&lt;/div&gt;</summary>
		<author><name>DragonGod004</name></author>	</entry>

	</feed>