<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bettingwiki.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AMobile.js</id>
	<title>MediaWiki:Mobile.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bettingwiki.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AMobile.js"/>
	<link rel="alternate" type="text/html" href="https://bettingwiki.org/index.php?title=MediaWiki:Mobile.js&amp;action=history"/>
	<updated>2026-05-01T09:18:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://bettingwiki.org/index.php?title=MediaWiki:Mobile.js&amp;diff=9108&amp;oldid=prev</id>
		<title>Vincent: Created page with &quot;/* Any JavaScript here will be loaded for users using the mobile site */  /* Fix media negative margin bug for wide galleries */ $(&#039;.gallerybox .mediaContainer&#039;).each(function...&quot;</title>
		<link rel="alternate" type="text/html" href="https://bettingwiki.org/index.php?title=MediaWiki:Mobile.js&amp;diff=9108&amp;oldid=prev"/>
		<updated>2019-09-10T16:30:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Any JavaScript here will be loaded for users using the mobile site: &lt;/span&gt;  &lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Fix media negative margin bug for wide galleries: &lt;/span&gt; $(&amp;#039;.gallerybox .mediaContainer&amp;#039;).each(function...&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Any JavaScript here will be loaded for users using the mobile site */&lt;br /&gt;
&lt;br /&gt;
/* Fix media negative margin bug for wide galleries */&lt;br /&gt;
$(&amp;#039;.gallerybox .mediaContainer&amp;#039;).each(function(i, obj) {&lt;br /&gt;
	if ($(this).parent().css(&amp;#039;margin-top&amp;#039;) &amp;lt; &amp;#039;15px&amp;#039;)&lt;br /&gt;
		$(this).parent().css(&amp;#039;margin&amp;#039;, &amp;#039;15px auto&amp;#039;);&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
/* Adjust margin of thumbs with no caption */&lt;br /&gt;
function thumbFixer() {&lt;br /&gt;
	$(&amp;#039;.thumb&amp;#039;).each(function(i, obj) {&lt;br /&gt;
		if (!$(this).find(&amp;#039;.thumbcaption&amp;#039;).text()) {&lt;br /&gt;
			if (window.matchMedia(&amp;#039;all and (max-width: 719px)&amp;#039;).matches)&lt;br /&gt;
				$(this).css(&amp;#039;margin-bottom&amp;#039;, &amp;#039;0.75em&amp;#039;);&lt;br /&gt;
			else&lt;br /&gt;
				$(this).css(&amp;#039;margin-bottom&amp;#039;, &amp;#039;&amp;#039;);&lt;br /&gt;
		}&lt;br /&gt;
	});&lt;br /&gt;
}&lt;br /&gt;
$(thumbFixer);&lt;br /&gt;
$(window).resize(function() {&lt;br /&gt;
	$(thumbFixer);&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
/* Adjust table of contents to fit with infobox */&lt;br /&gt;
$(function() {&lt;br /&gt;
	var body = $(&amp;#039;#bodyContent&amp;#039;);&lt;br /&gt;
	var infobox = $(&amp;#039;.infobox&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
	if (infobox) {&lt;br /&gt;
	    var maxWidth = Math.round(body.width() - infobox.outerWidth(true) - 10);&lt;br /&gt;
	    $(&amp;#039;head&amp;#039;).append(&amp;#039;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;.toc-mobile { max-width: &amp;#039; + maxWidth + &amp;#039;px; }&amp;lt;/style&amp;gt;&amp;#039;);&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
function tocResizer() {&lt;br /&gt;
	var body = $(&amp;#039;#bodyContent&amp;#039;);&lt;br /&gt;
	var infobox = $(&amp;#039;.infobox&amp;#039;);&lt;br /&gt;
	var toc = $(&amp;#039;.toc-mobile&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
	if (infobox &amp;amp;&amp;amp; toc) {&lt;br /&gt;
	    var maxWidth = Math.round(body.width() - infobox.outerWidth(true) - 10);&lt;br /&gt;
	    toc.css(&amp;#039;max-width&amp;#039;, maxWidth);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
$(window).resize(function() {&lt;br /&gt;
	$(tocResizer);&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
/* MarioWiki: Position top-right icons on wide screens */&lt;br /&gt;
function wideGameIcons() {&lt;br /&gt;
	if (window.matchMedia(&amp;#039;screen and (min-width: 1000px)&amp;#039;).matches) {&lt;br /&gt;
		var goRight = Math.round(($(window).width() - 1000)/2);&lt;br /&gt;
		$(&amp;#039;.top-right&amp;#039;).css(&amp;#039;right&amp;#039;, goRight);&lt;br /&gt;
	} else {&lt;br /&gt;
		$(&amp;#039;.top-right&amp;#039;).css(&amp;#039;right&amp;#039;, &amp;#039;&amp;#039;);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
$(wideGameIcons);&lt;br /&gt;
$(window).resize(function() {&lt;br /&gt;
	$(wideGameIcons);&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>Vincent</name></author>
		
	</entry>
</feed>