MediaWiki:Wikiminiatlas.js: Difference between revisions
(make domain a variable (for labs switchover)) |
(fix typo) |
||
Line 5: | Line 5: | ||
// Revision 16.9 | // Revision 16.9 | ||
jQuery(function ($) { | jQuery(function ($) { | ||
// send a fraction of traffic to labs | |||
var useLabs = false; //Math.random()<0.01; | |||
var config = { | var config = { | ||
width : 600, | width : 600, | ||
Line 14: | Line 17: | ||
flowTextTooltips: (location.host === "en.wikipedia.org"), | flowTextTooltips: (location.host === "en.wikipedia.org"), | ||
alwaysTooltips: false, | alwaysTooltips: false, | ||
iframeurl : '//toolserver.org/~dschwen/wma/iframe.html', | iframeurl : useLabs ? '//wma.wmflabs.org/iframe.html' : '//toolserver.org/~dschwen/wma/iframe.html', | ||
imgbase : '//toolserver.org/~dschwen/wma/tiles/', | imgbase : useLabs ? '//wma.wmflabs.org/tiles/' : '//toolserver.org/~dschwen/wma/tiles/', | ||
buttonImage: '//upload.wikimedia.org/wikipedia/commons/thumb/5/55/WMA_button2b.png/17px-WMA_button2b.png' | buttonImage: '//upload.wikimedia.org/wikipedia/commons/thumb/5/55/WMA_button2b.png/17px-WMA_button2b.png' | ||
}, | }, | ||
Line 213: | Line 216: | ||
}, | }, | ||
// domain of the WMA | // domain of the WMA | ||
wma_domain = '//toolserver.org' | wma_domain = useLabs ? '//wma.wmflabs.org' : '//toolserver.org', | ||
// Get a specific, localized string | // Get a specific, localized string |