Changes

Jump to navigation Jump to search

MediaWiki:Common.js

230 bytes added, 20:04, 7 April 2013
change to user-agent string detection again
/* Any JavaScript here will be loaded for all users on every page load. */
if(document.URL.search("mobile") == -1)
{
var ua = navigator.userAgent;
if(screenua.width <= 800match(/Android/i))
{
alertif("Hi!"ua.match(/Mobile/i)); //{ window.location.replace(document.URL + "&mobileaction?useformat=toggle_view_mobilemobile"); }
}
else if((/webos|iphone|ipod|blackberry|windows phone|bada/i).test(ua))
{
window.location.replace(document.URL + "?useformat=mobile");
}
}

Navigation menu