cf-platform/Public/Mobile/js/xg_mobile.js

3 lines
166 B
JavaScript

var deviceWidth = document.documentElement.clientWidth;
if(deviceWidth >= 640) deviceWidth = 640;
document.documentElement.style.fontSize = deviceWidth / 10.8 + 'px';