first commit
This commit is contained in:
11
芳林公司项目/zyhelp/static/pc.js
Normal file
11
芳林公司项目/zyhelp/static/pc.js
Normal file
@@ -0,0 +1,11 @@
|
||||
;(function (){
|
||||
var u = navigator.userAgent,
|
||||
w = window.innerWidth;
|
||||
if (!u.match(/AppleWebKit.*Mobile.*/)) {
|
||||
var sw = w*576/1920;
|
||||
window.innerWidth = sw<375?375:sw;
|
||||
window.onload = function() {
|
||||
window.innerWidth = w;
|
||||
}
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user