Skip to content

Commit e279ce5

Browse files
author
wangyaqi
committed
update: 添加模拟触控
1 parent f79c31d commit e279ce5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

template.h5.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
<title>
88
<%= htmlWebpackPlugin.options.title %>
99
</title>
10-
<!-- 正式发布的时候使用,开发期间不启用。 -->
11-
<!-- <script>
10+
<!-- 正式发布的时候使用,开发期间不启用。↓ -->
11+
<!-- <script src="./touch-emulator.js"></script>
12+
<script>
13+
TouchEmulator();
1214
if (document.documentElement.clientWidth > 1024) {
1315
window.location.href = '/h5/pcguide.html#'+location.pathname;
1416
}
@@ -18,6 +20,7 @@
1820
display: none;
1921
}
2022
</style> -->
23+
<!-- 正式发布的时候使用,开发期间不启用。↑ -->
2124
<script>
2225
document.addEventListener('DOMContentLoaded', function() {
2326
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'

0 commit comments

Comments
 (0)