pc.js 287 B

12345678910111213
  1. // #ifdef H5
  2. (function () {
  3. var u = navigator.userAgent,
  4. w = window.innerWidth;
  5. if (!u.match(/AppleWebKit.*Mobile.*/) || u.indexOf("iPad") > -1) {
  6. window.innerWidth = 750 * (w / 1920);
  7. window.onload = function () {
  8. window.innerWidth = w;
  9. };
  10. }
  11. })();
  12. // #endif