eafc30c0d66915e8e19a342e6bdfbff1.json 3.3 KB

1
  1. {"remainingRequest":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\utils\\rem.js","dependencies":[{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\utils\\rem.js","mtime":1663828782935},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\babel.config.js","mtime":1663828782900},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000}],"contextDependencies":[],"result":["(function (doc, win) {\n var docEI = doc.documentElement,\n design_width = /(iPhone|iPad|iPod|iOS|Android|webOS|BlackBerry)/i.test(navigator.userAgent) ? 750 : 1920,\n resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',\n recalc = function recalc() {\n var clientWidth = docEI.clientWidth;\n if (!clientWidth) return; //1920下的根元素大小为假设100px,然后根据下面计算公式算出等比下当前页面的根元素大小。\n\n docEI.style.fontSize = 100 * (clientWidth / design_width) + 'px';\n };\n\n if (!doc.addEventListener) return;\n win.addEventListener(resizeEvt, recalc, false);\n doc.addEventListener('DOMContentLoaded', recalc, false);\n})(document, window);",{"version":3,"sources":["C:/Users/100zone/Desktop/baizong/community/SmartCommunity/videoSurveillance/src/utils/rem.js"],"names":["doc","win","docEI","documentElement","design_width","test","navigator","userAgent","resizeEvt","window","recalc","clientWidth","style","fontSize","addEventListener","document"],"mappings":"AAAA,CAAC,UAAUA,GAAV,EAAeC,GAAf,EAAoB;AACnB,MAAIC,KAAK,GAAGF,GAAG,CAACG,eAAhB;AAAA,MACEC,YAAY,GAAI,mDAAmDC,IAAnD,CAAwDC,SAAS,CAACC,SAAlE,CAAD,GAAiF,GAAjF,GAAuF,IADxG;AAAA,MAEEC,SAAS,GAAG,uBAAuBC,MAAvB,GAAgC,oBAAhC,GAAuD,QAFrE;AAAA,MAGEC,MAAM,GAAG,SAATA,MAAS,GAAY;AACnB,QAAIC,WAAW,GAAGT,KAAK,CAACS,WAAxB;AACA,QAAI,CAACA,WAAL,EAAkB,OAFC,CAGnB;;AACAT,IAAAA,KAAK,CAACU,KAAN,CAAYC,QAAZ,GAAuB,OAAOF,WAAW,GAAGP,YAArB,IAAqC,IAA5D;AACD,GARH;;AAUA,MAAI,CAACJ,GAAG,CAACc,gBAAT,EAA2B;AAC3Bb,EAAAA,GAAG,CAACa,gBAAJ,CAAqBN,SAArB,EAAgCE,MAAhC,EAAwC,KAAxC;AACAV,EAAAA,GAAG,CAACc,gBAAJ,CAAqB,kBAArB,EAAyCJ,MAAzC,EAAiD,KAAjD;AACD,CAdD,EAcGK,QAdH,EAcaN,MAdb","sourcesContent":["(function (doc, win) {\r\n var docEI = doc.documentElement,\r\n design_width = (/(iPhone|iPad|iPod|iOS|Android|webOS|BlackBerry)/i.test(navigator.userAgent)) ? 750 : 1920,\r\n resizeEvt = 'orientationchange' in window ? 'orientataionchange' : 'resize',\r\n recalc = function () {\r\n var clientWidth = docEI.clientWidth\r\n if (!clientWidth) return\r\n //1920下的根元素大小为假设100px,然后根据下面计算公式算出等比下当前页面的根元素大小。\r\n docEI.style.fontSize = 100 * (clientWidth / design_width) + 'px'\r\n }\r\n\r\n if (!doc.addEventListener) return\r\n win.addEventListener(resizeEvt, recalc, false)\r\n doc.addEventListener('DOMContentLoaded', recalc, false)\r\n})(document, window)\r\n"]}]}