Revision 7f7227affd9fde51c07ff3963d8399aa490bb01b authored by Romain Reuillon on 10 March 2013, 14:03:17 UTC, committed by Romain Reuillon on 10 March 2013, 14:03:17 UTC
1 parent d32a308
scale.fix.js
var metas = document.getElementsByTagName('meta');
var i;
if (navigator.userAgent.match(/iPhone/i)) {
for (i=0; i<metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
}
}
document.addEventListener("gesturestart", gestureStart, false);
}
function gestureStart() {
for (i=0; i<metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6";
}
}
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...