MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 71: Line 71:
       }
       }


       var widthMiles = (widthPixels / 1000) * 50;
       var widthMiles = (widthPixels / 1000) * 100;
       var heightMiles = (heightPixels / 1000) * 50;
       var heightMiles = (heightPixels / 1000) * 100;
       var squareMiles = widthMiles * heightMiles;
       var squareMiles = widthMiles * heightMiles;


Line 140: Line 140:
       }
       }


       var miles = (pixels / 1000) * 50;
       var miles = (pixels / 1000) * 100;


       output.textContent = Math.round(miles) + ' mi';
       output.textContent = Math.round(miles) + ' mi';