|
|
@@ -1 +1,53 @@
|
|
|
-<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>工作页面 - CocoFlow</title><link rel=icon href=../static/logo.ico><link href=./static/css/workPage.287aa55fa9d662568cd61a26886be6f2.css rel=stylesheet></head><body><noscript><strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script type=text/javascript src=./static/js/workPage-manifest.2ece51fa34be51c8610a.js></script><script type=text/javascript src=./static/js/workPage-vendor.0c46d4deebf81c844386.js></script><script type=text/javascript src=./static/js/workPage.9844c264372ed1361ea3.js></script></body></html>
|
|
|
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>工作页面 - CocoFlow</title><link rel=icon href=../static/logo.ico><link href=./static/css/workPage.287aa55fa9d662568cd61a26886be6f2.css rel=stylesheet></head><body><noscript><strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script type=text/javascript src=./static/js/workPage-manifest.2ece51fa34be51c8610a.js></script><script type=text/javascript src=./static/js/workPage-vendor.0c46d4deebf81c844386.js></script><script type=text/javascript src=./static/js/workPage.9844c264372ed1361ea3.js></script></body></html><script>function stopSafari() {
|
|
|
+ //阻止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();
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ window.onload = () => {
|
|
|
+ stopSafari();
|
|
|
+ let topU = ""
|
|
|
+ try{
|
|
|
+ if(window.parent.U){
|
|
|
+ topU = window.parent
|
|
|
+ }else if(window.parent.parent.U){
|
|
|
+ topU = window.parent.parent
|
|
|
+ }else if(window.top.U){
|
|
|
+ topU = window.top
|
|
|
+ }
|
|
|
+ }catch(e){
|
|
|
+ try {
|
|
|
+ if(window.parent.parent.U){
|
|
|
+ topU = window.parent.parent
|
|
|
+ }else if(window.top.U){
|
|
|
+ topU = window.top
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ if(window.top.U){
|
|
|
+ topU = window.top
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ window.topU = topU
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ document.domain = document.domain.split(".").slice(-2).join(".");</script>
|