TEXT   37
function e n function t var e i clientWidth
Guest on 26th December 2024 04:48:48 AM


  1. function(e, n) {
  2.     function t() {
  3.         var e = i.clientWidth;
  4.         750 < e / a && (e = 750 * a), i.style.fontSize = e / 375 * 100 + "px"
  5.     }
  6.     var i = e.documentElement,
  7.         a = navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) ? Math.min(n.devicePixelRatio, 3) : 1,
  8.         o = (a = window.top === window.self ? a : 1, a = 1, "orientationchange" in window ? "orientationchange" : "resize"),
  9.         d = (i.dataset.dpr = a, e.createElement("meta"));
  10.     d.name = "viewport", d.content = "initial-scale=1,maximum-scale=1, minimum-scale=1", i.firstElementChild.appendChild(d);
  11.     t(), e.addEventListener && n.addEventListener(o, t, !1)
  12. }(document, window)

Raw Paste

Login or Register to edit or fork this paste. It's free.