|
@@ -48,19 +48,6 @@ window.onload = function () {
|
|
// })
|
|
// })
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-var initViewport = function (height, width) {
|
|
|
|
- var metaEl = document.querySelector("#viewportMeta");
|
|
|
|
- var content = "height=" + height + ",width=" + width + ",initial-scale=1.0,user-scalable=no";
|
|
|
|
- metaEl.setAttribute('name', 'viewport');
|
|
|
|
- metaEl.setAttribute('content', content);
|
|
|
|
-}
|
|
|
|
-var realHeight = window.innerHeight > window.innerWidth ? window.innerWidth : window.innerHeight
|
|
|
|
-var realWidth = window.innerHeight > window.innerWidth ? window.innerHeight : window.innerWidth
|
|
|
|
-initViewport(realHeight, realWidth);
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
US.Config = {
|
|
US.Config = {
|
|
server: '//beta.api.cocorobo.cn/api/',
|
|
server: '//beta.api.cocorobo.cn/api/',
|
|
api: '//beta.api.cocorobo.cn/',
|
|
api: '//beta.api.cocorobo.cn/',
|