Showing
3 changed files
with
16 additions
and
10 deletions
apps/guang/views/action/index.hbs
0 → 100644
1 | +<p>I am body</p> |
doc/fake-data/h5/layout.md
0 → 100644
@@ -15,16 +15,7 @@ | @@ -15,16 +15,7 @@ | ||
15 | <link rel="dns-prefetch" href="//img12.static.yhbimg.com"> | 15 | <link rel="dns-prefetch" href="//img12.static.yhbimg.com"> |
16 | <link rel="dns-prefetch" href="//img13.static.yhbimg.com"> | 16 | <link rel="dns-prefetch" href="//img13.static.yhbimg.com"> |
17 | <script type="text/javascript"> | 17 | <script type="text/javascript"> |
18 | - (function(doc, win) { | ||
19 | - var docEl = doc.documentElement; | ||
20 | - (function() { | ||
21 | - var clientWidth = docEl.clientWidth; | ||
22 | - if (!clientWidth) { | ||
23 | - return; | ||
24 | - } | ||
25 | - docEl.style.fontSize = 20 * (clientWidth / 320) + 'px'; | ||
26 | - }()); | ||
27 | - })(document, window); | 18 | + (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window); |
28 | </script> | 19 | </script> |
29 | {{#if devEnv}} | 20 | {{#if devEnv}} |
30 | <link rel="stylesheet" href="//localhost:5000/css/index.css"> | 21 | <link rel="stylesheet" href="//localhost:5000/css/index.css"> |
-
Please register or login to post a comment