pc.js 278 B

123456789101112
  1. ;
  2. (function() {
  3. var u = navigator.userAgent,
  4. w = window.innerWidth;
  5. if (!u.match(/AppleWebKit.*Mobile.*/) || u.indexOf('iPad') > -1) {
  6. var sw = w * 576 / 1920;
  7. window.innerWidth = sw < 375 ? 375 : sw;
  8. window.onload = function() {
  9. window.innerWidth = w;
  10. }
  11. }
  12. })();