Bläddra i källkod

505_1提交

master
suizhijia 5 år sedan
förälder
incheckning
a294b83767
14 ändrade filer med 103 tillägg och 0 borttagningar
  1. +16
    -0
      505_1/css/index.css
  2. Binär
      505_1/img/1.jpg
  3. Binär
      505_1/img/10.png
  4. Binär
      505_1/img/2.png
  5. Binär
      505_1/img/3.png
  6. Binär
      505_1/img/4.png
  7. Binär
      505_1/img/5.png
  8. Binär
      505_1/img/6.png
  9. Binär
      505_1/img/7.png
  10. Binär
      505_1/img/8.png
  11. Binär
      505_1/img/9.png
  12. Binär
      505_1/img/img1.jpg
  13. +33
    -0
      505_1/index.html
  14. +54
    -0
      505_1/js/main.js

+ 16
- 0
505_1/css/index.css Visa fil

@@ -0,0 +1,16 @@
*{
padding: 0;
margin: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-overflow-scrolling: touch;
}
img{
display: block;
width: 100%;
}
html,body{
height: 100%;
}
#all{
width: 7.5rem;
}

Binär
505_1/img/1.jpg Visa fil

Before After
Width: 790  |  Height: 1229  |  Size: 183KB

Binär
505_1/img/10.png Visa fil

Before After
Width: 790  |  Height: 1229  |  Size: 627KB

Binär
505_1/img/2.png Visa fil

Before After
Width: 790  |  Height: 1230  |  Size: 794KB

Binär
505_1/img/3.png Visa fil

Before After
Width: 790  |  Height: 1229  |  Size: 798KB

Binär
505_1/img/4.png Visa fil

Before After
Width: 790  |  Height: 1230  |  Size: 634KB

Binär
505_1/img/5.png Visa fil

Before After
Width: 790  |  Height: 1229  |  Size: 580KB

Binär
505_1/img/6.png Visa fil

Before After
Width: 790  |  Height: 1229  |  Size: 447KB

Binär
505_1/img/7.png Visa fil

Before After
Width: 790  |  Height: 1230  |  Size: 646KB

Binär
505_1/img/8.png Visa fil

Before After
Width: 790  |  Height: 1229  |  Size: 903KB

Binär
505_1/img/9.png Visa fil

Before After
Width: 790  |  Height: 1230  |  Size: 529KB

Binär
505_1/img/img1.jpg Visa fil

Before After
Width: 790  |  Height: 12294  |  Size: 4.4MB

+ 33
- 0
505_1/index.html Visa fil

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>惠贝加</title>
<link rel="stylesheet" type="text/css" href="css/index.css"/>
</head>
<body>
<div id="all">
<!-- <img src="img/img1.jpg" > -->
<img src="img/1.jpg" >
<img src="img/2.png" >
<img src="img/3.png" >
<img src="img/4.png" >
<img src="img/5.png" >
<img src="img/6.png" >
<img src="img/7.png" >
<img src="img/8.png" >
<img src="img/9.png" >
<img src="img/10.png" >
<script src="js/main.js" type="text/javascript" charset="utf-8"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?bc6906e0bc102d5fc7493ba29e303e14";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</div>
</body>
</html>

+ 54
- 0
505_1/js/main.js Visa fil

@@ -0,0 +1,54 @@
(function (doc, win) {
if (!doc.addEventListener) return;
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
docEl.style.fontSize = clientWidth / 750 * 100+ 'px';
};
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);
//重写alert
(function(){
window.alert = function(name){
var iframe = document.createElement("IFRAME");
iframe.style.display="none";
iframe.setAttribute("src", 'data:text/plain');
document.documentElement.appendChild(iframe);
window.frames[0].window.alert(name);
iframe.parentNode.removeChild(iframe);
}
})();
document.addEventListener('touchstart', function(event) {
// 判断默认行为是否可以被禁用
var touchElementName = event.currentTarget.activeElement.localName;
if(touchElementName == "input"){
return;
}
// return;
// if (event.cancelable) {
// // 判断默认行为是否已经被禁用
// if (!event.defaultPrevented) {
// event.preventDefault();
// }
// }
}, false);
document.addEventListener('plusready', function() {
plus.key.addEventListener('backbutton', function() {
var webview = plus.webview.currentWebview();
console.log("backCurrentId=" + webview.id);
console.log("topWebViewId=" + plus.webview.getTopWebview().id);
webview.canBack(function(e) {
// if(e.canBack) {
// webview.back();
// } else {
// webview.close(); //hide,quit
// //plus.runtime.quit();
// }
})
});
});

Laddar…
Avbryt
Spara