71 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
| <!DOCTYPE html>
 | ||
| <html lang="en">
 | ||
|   <head>
 | ||
|     <meta charset="UTF-8" />
 | ||
|     <script>
 | ||
|       var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
 | ||
|         CSS.supports('top: constant(a)'))
 | ||
|       document.write(
 | ||
|         '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
 | ||
|         (coverSupport ? ', viewport-fit=cover' : '') + '" />')
 | ||
|     </script>
 | ||
|     <title></title>
 | ||
|     <!--preload-links-->
 | ||
|     <!--app-context-->
 | ||
|   </head>
 | ||
|   <body>
 | ||
|     <div id="app"><!--app-html--></div>
 | ||
|     <!-- 邮储奶茶项目客户端sdk插件 -->
 | ||
|     <script src="/static/ycnc/YT_Client_api.js"></script>
 | ||
|     <script type="module" src="/src/main.js"></script>
 | ||
|     <script>
 | ||
|       document.addEventListener('touchmove', function(e) {
 | ||
|         e.preventDefault();
 | ||
|       }, {passive: false})
 | ||
|     </script>
 | ||
|     <!-- <script src="https://fastly.jsdelivr.net/npm/eruda"></script>
 | ||
|     <script>
 | ||
|       eruda.init()
 | ||
|     </script> -->
 | ||
|     <script>
 | ||
|       var clickCount = 0
 | ||
|       var timer = null
 | ||
|       var isShow = false
 | ||
|       function insertScript() {
 | ||
|         isShow = true
 | ||
|         // 创建一个新的script元素
 | ||
|         var src = 'https://fastly.jsdelivr.net/npm/eruda'
 | ||
|         var script = document.createElement('script')
 | ||
|         script.type = 'text/javascript'
 | ||
|         script.src = src
 | ||
|         // 插入到head中
 | ||
|         document.head.appendChild(script)
 | ||
|         script.onload = function () {
 | ||
|           eruda.init()
 | ||
|         }
 | ||
|       }
 | ||
|       document.addEventListener('click', function () {
 | ||
|         if (isShow) return false
 | ||
|         if (clickCount < 6) {
 | ||
|           clickCount++
 | ||
|           console.log(`Clicked ${clickCount} times`)
 | ||
| 
 | ||
|           // 如果是第一次点击,则开始计时
 | ||
|           if (clickCount === 1) {
 | ||
|             timer = setTimeout(() => {
 | ||
|               clickCount = 0 // 重置点击计数
 | ||
|             }, 2000)
 | ||
|           }
 | ||
| 
 | ||
|           // 如果点击次数达到6次,则清除计时器并重置状态
 | ||
|           if (clickCount >= 6) {
 | ||
|             clearTimeout(timer)
 | ||
|             insertScript()
 | ||
|             clickCount = 0 // 重置点击计数
 | ||
|           }
 | ||
|         }
 | ||
|       })
 | ||
|     </script>
 | ||
|   </body>
 | ||
| </html>
 |