Commit 566d038b by zhangheng

j

parent cfc16217
......@@ -12,35 +12,35 @@
<meta content="email=no" name="format-detection"/>
<script type="text/javascript" src="__CDN__/js/jquery-2.1.3.min.js"></script>
<script type="text/javascript">
// if (/Android (\d+\.\d+)/.test(navigator.userAgent)) {
// var version = parseFloat(RegExp.$1);
// if (version > 2.3) {
// var phoneScale = parseInt(window.screen.width) / 640;
// document.write('<meta name="viewport" content="width=640, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi">');
// } else {
// document.write('<meta name="viewport" content="width=640, target-densitydpi=device-dpi">');
// }
// } else {
// document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
// }
(function (doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
if(clientWidth>=640){
docEl.style.fontSize = '100px';
}else{
docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
}
};
if (/Android (\d+\.\d+)/.test(navigator.userAgent)) {
var version = parseFloat(RegExp.$1);
if (version > 2.3) {
var phoneScale = parseInt(window.screen.width) / 640;
document.write('<meta name="viewport" content="width=640, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi">');
} else {
document.write('<meta name="viewport" content="width=640, target-densitydpi=device-dpi">');
}
} else {
document.write('<meta name="viewport" content="width=640, user-scalable=no, target-densitydpi=device-dpi">');
}
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);
// (function (doc, win) {
// var docEl = doc.documentElement,
// resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
// recalc = function () {
// var clientWidth = docEl.clientWidth;
// if (!clientWidth) return;
// if(clientWidth>=640){
// docEl.style.fontSize = '100px';
// }else{
// docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
// }
// };
//
// if (!doc.addEventListener) return;
// win.addEventListener(resizeEvt, recalc, false);
// doc.addEventListener('DOMContentLoaded', recalc, false);
// })(document, window);
</script>
<title>谁是桃源幸运锦鲤</title>
<link href="__CDN__/css/main.css?t=1.94" rel="stylesheet">
......
......@@ -174,21 +174,20 @@ ul, li {
#container {
position: relative;
background: url("../images/bj.jpg") no-repeat center;
background-size: 100% 100%;
width: 6.4rem;
height: 12.38rem;
width: 640px;
height: 1238px;
}
#container .btn-prize {
justify-content: center;
width: 2rem;
height: 2rem;
width: 200px;
height: 200px;
font-size: 27px;
border: 1px solid red;
}
#container .prize-type {
position: absolute;
width: 3rem;
height: 3rem;
width: 300px;
height: 300px;
opacity: 0;
}
#container .word {
......
......@@ -51,7 +51,7 @@ $ea-prefix-for-spec: false !global;
// height:torem($h);
//}
@function torem($px) {
@return $px / 100px * 1rem;
@return $px;
}
@mixin bounds_by_pos($x, $y, $w, $h) {
......@@ -196,7 +196,6 @@ ul, li {
#container {
position: relative;
background: url("../images/bj.jpg") no-repeat center;
background-size: 100% 100%;
width: torem(640px);
height: torem(1238px);
.btn-prize {
......
......@@ -13,9 +13,6 @@ $(document).ready(function () {
window.Origami.fastclick(document.body);
} catch (e) {
}
document.addEventListener("touchmove", function (e) {
e.preventDefault();
}, false);
var clickEvent = $.isFunction($.fn.tap) ? 'tap' : 'click';
window['max_zindex'] = 100;
$.fn.show_dialog = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment