Przeglądaj źródła

505_1提交

master
suizhijia 5 lat temu
rodzic
commit
a294b83767
14 zmienionych plików z 103 dodań i 0 usunięć
  1. +16
    -0
      505_1/css/index.css
  2. BIN
      505_1/img/1.jpg
  3. BIN
      505_1/img/10.png
  4. BIN
      505_1/img/2.png
  5. BIN
      505_1/img/3.png
  6. BIN
      505_1/img/4.png
  7. BIN
      505_1/img/5.png
  8. BIN
      505_1/img/6.png
  9. BIN
      505_1/img/7.png
  10. BIN
      505_1/img/8.png
  11. BIN
      505_1/img/9.png
  12. BIN
      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 Wyświetl plik

@@ -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
505_1/img/1.jpg Wyświetl plik

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

BIN
505_1/img/10.png Wyświetl plik

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

BIN
505_1/img/2.png Wyświetl plik

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

BIN
505_1/img/3.png Wyświetl plik

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

BIN
505_1/img/4.png Wyświetl plik

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

BIN
505_1/img/5.png Wyświetl plik

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

BIN
505_1/img/6.png Wyświetl plik

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

BIN
505_1/img/7.png Wyświetl plik

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

BIN
505_1/img/8.png Wyświetl plik

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

BIN
505_1/img/9.png Wyświetl plik

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

BIN
505_1/img/img1.jpg Wyświetl plik

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

+ 33
- 0
505_1/index.html Wyświetl plik

@@ -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 Wyświetl plik

@@ -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();
// }
})
});
});

Ładowanie…
Anuluj
Zapisz