83 lines
2.8 KiB
HTML
Executable File
83 lines
2.8 KiB
HTML
Executable File
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
|
|
/>
|
|
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no" />
|
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
|
<meta http-equiv="Pragma" content="no-cache" />
|
|
<meta http-equiv="Expires" content="0" />
|
|
<script src="//res2.wx.qq.com/open/js/jweixin-1.6.0.js" type="text/javascript"></script>
|
|
<!-- <script src="wechatH5Video.min.js" type="text/javascript"></script> -->
|
|
<title>上海环球金融中心</title>
|
|
</head>
|
|
<body>
|
|
<div id="videoWrapper"></div>
|
|
<div id="app"> </div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
<script>
|
|
window.onload = function () {
|
|
// if ( window.sessionStorage.getItem('isFirst') !== 'false') {
|
|
// var source = '//huanqiuzhongxin.oss-cn-shanghai.aliyuncs.com/shipin/second.mp4';
|
|
// var video = new wechatH5Video(source, {
|
|
// context: 'videoWrapper',
|
|
// mask: false,
|
|
// poster:
|
|
// 'https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1541401188&di=41264a717eb6a592709efc04a66e216d&src=http://i8.download.fd.pchome.net/t_600x1024/g1/M00/07/04/oYYBAFMioPmIClVuAALr2NPIYaIAABZ9QKPJJUAAuvw540.jpg',
|
|
// playBtn: true,
|
|
// jumpBtn: false,
|
|
// autoClose: true,
|
|
// canvas: false,
|
|
// isRotate: true,
|
|
// onPlay() {
|
|
// },
|
|
// onPause() {
|
|
// },
|
|
// onEnd() {
|
|
// window.sessionStorage.setItem('isFirst', 'false');
|
|
// // console.log('end');
|
|
// },
|
|
// });
|
|
// video.load();
|
|
// setTimeout(() => {
|
|
// video.play();
|
|
// }, 50);
|
|
// }
|
|
|
|
document.addEventListener('touchstart', function (event) {
|
|
if (event.touches.length > 1) {
|
|
event.preventDefault();
|
|
}
|
|
});
|
|
|
|
var lastTouchEnd = 0;
|
|
|
|
document.addEventListener(
|
|
'touchend',
|
|
function (event) {
|
|
var now = new Date().getTime();
|
|
if (now - lastTouchEnd <= 300) {
|
|
event.preventDefault();
|
|
}
|
|
|
|
lastTouchEnd = now;
|
|
},
|
|
false,
|
|
);
|
|
|
|
document.addEventListener('gesturestart', function (event) {
|
|
event.preventDefault();
|
|
});
|
|
};
|
|
</script>
|
|
<!-- <script src="https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js"></script>
|
|
<script>
|
|
eruda.init();
|
|
</script> -->
|
|
</body>
|
|
</html>
|