|
@@ -1,26 +1,55 @@
|
|
|
<!DOCTYPE html>
|
|
|
<html lang="">
|
|
|
- <head>
|
|
|
- <meta charset="utf-8">
|
|
|
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
|
- <meta name="format-detection" content="telephone=yes"/>
|
|
|
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
|
- <script src="./jquery-2.1.1.min.js"></script>
|
|
|
- <script src="./masonry.pkgd.min.js"></script>
|
|
|
- <title>一房一册</title>
|
|
|
- </head>
|
|
|
- <body>
|
|
|
- <!-- <script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script> -->
|
|
|
|
|
|
- <noscript>
|
|
|
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
|
- </noscript>
|
|
|
- <div id="app"></div>
|
|
|
- <!-- built files will be auto injected -->
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
|
+ <meta name="format-detection" content="telephone=yes" />
|
|
|
+ <script>
|
|
|
+ //阻止safari浏览器双击放大功能
|
|
|
+ let lastTouchEnd = 0 //更新手指弹起的时间
|
|
|
+ document.documentElement.addEventListener("touchstart", function (event) {
|
|
|
+ //多根手指同时按下屏幕,禁止默认行为
|
|
|
+ if (event.touches.length > 1) {
|
|
|
+ event.preventDefault();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ document.documentElement.addEventListener("touchend", function (event) {
|
|
|
+ let now = (new Date()).getTime();
|
|
|
+ if (now - lastTouchEnd <= 300) {
|
|
|
+ //当两次手指弹起的时间小于300毫秒,认为双击屏幕行为
|
|
|
+ event.preventDefault();
|
|
|
+ } else { // 否则重新手指弹起的时间
|
|
|
+ lastTouchEnd = now;
|
|
|
+ }
|
|
|
+ }, false);
|
|
|
+ //阻止双指放大页面
|
|
|
+ document.documentElement.addEventListener("gesturestart", function (event) {
|
|
|
+ event.preventDefault();
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+ <!-- 安卓机禁止缩放 -->
|
|
|
+ <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
|
|
|
+
|
|
|
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
|
+ <script src="./jquery-2.1.1.min.js"></script>
|
|
|
+ <script src="./masonry.pkgd.min.js"></script>
|
|
|
+ <!-- <script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script> -->
|
|
|
+ <title>一房一册</title>
|
|
|
+</head>
|
|
|
+
|
|
|
+<body>
|
|
|
+ <noscript>
|
|
|
+ <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
|
|
|
+ Please enable it to continue.</strong>
|
|
|
+ </noscript>
|
|
|
+ <div id="app"></div>
|
|
|
+ <!-- built files will be auto injected -->
|
|
|
+
|
|
|
+ <!-- <script>
|
|
|
+ new VConsole()
|
|
|
+ </script> -->
|
|
|
+</body>
|
|
|
|
|
|
- <!-- <script>
|
|
|
- new VConsole()
|
|
|
- </script> -->
|
|
|
- </body>
|
|
|
</html>
|