We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f79c31d commit e279ce5Copy full SHA for e279ce5
template.h5.html
@@ -7,8 +7,10 @@
7
<title>
8
<%= htmlWebpackPlugin.options.title %>
9
</title>
10
- <!-- 正式发布的时候使用,开发期间不启用。 -->
11
- <!-- <script>
+ <!-- 正式发布的时候使用,开发期间不启用。↓ -->
+ <!-- <script src="./touch-emulator.js"></script>
12
+ <script>
13
+ TouchEmulator();
14
if (document.documentElement.clientWidth > 1024) {
15
window.location.href = '/h5/pcguide.html#'+location.pathname;
16
}
@@ -18,6 +20,7 @@
18
20
display: none;
19
21
22
</style> -->
23
+ <!-- 正式发布的时候使用,开发期间不启用。↑ -->
24
<script>
25
document.addEventListener('DOMContentLoaded', function() {
26
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
0 commit comments