Commit 566d038b by zhangheng

j

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