207 lines
8.8 KiB
HTML
207 lines
8.8 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<meta name="theme-color" content="#000000" />
|
||
<meta
|
||
name="description"
|
||
content="Web site created using create-react-app"
|
||
/>
|
||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||
<!--
|
||
manifest.json provides metadata used when your web app is installed on a
|
||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||
-->
|
||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||
<link
|
||
rel="stylesheet"
|
||
href="//g.alicdn.com/de/prismplayer/2.11.0/skins/default/aliplayer-min.css"
|
||
/>
|
||
<script
|
||
charset="utf-8"
|
||
type="text/javascript"
|
||
src="//g.alicdn.com/de/prismplayer/2.11.0/aliplayer-h5-min.js"
|
||
></script>
|
||
<script src="//cdn.staticfile.org/react/18.2.0/umd/react.production.min.js"></script>
|
||
<script>
|
||
window.React || document.write('<script src="//cdn.bootcdn.net/ajax/libs/react/18.2.0/umd/react.production.min.js"><\/script>')
|
||
</script>
|
||
<script>
|
||
window.React || document.write('<script src="//unpkg.com/react@18.2.0/umd/react.production.min.js"><\/script>')
|
||
</script>
|
||
<script src="//cdn.staticfile.org/react-dom/18.2.0/umd/react-dom.production.min.js"></script>
|
||
<script>
|
||
window.ReactDOM || document.write('<script src="//cdn.bootcdn.net/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js"><\/script>')
|
||
</script>
|
||
<script>
|
||
window.ReactDOM || document.write('<script src="//unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js"><\/script>')
|
||
</script>
|
||
<script src="//cdn.staticfile.org/echarts/5.4.3/echarts.min.js"></script>
|
||
<script>
|
||
window.echarts || document.write('<script src="//unpkg.com/echarts@5.4.0/dist/echarts.min.js"><\/script>')
|
||
</script>
|
||
<script src="//cdn.staticfile.org/lodash.js/4.17.21/lodash.min.js"></script>
|
||
<script>
|
||
window._ || document.write('<script src="//cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.min.js"><\/script>')
|
||
</script>
|
||
<script>
|
||
window._ || document.write('<script src="//unpkg.com/lodash@4.17.21/lodash.js"><\/script>')
|
||
</script>
|
||
<!-- <script src="//unpkg.com/@wangeditor/basic-modules@1.1.6/dist/index.js"></script> -->
|
||
<!-- <link href="//unpkg.com/@wangeditor/editor@latest/dist/css/style.css" rel="stylesheet">
|
||
<script src="//unpkg.com/@wangeditor/editor@latest/dist/index.js"></script> -->
|
||
<link href="//cdn.staticfile.org/wangeditor5/5.1.22/css/style.min.css" rel="stylesheet" />
|
||
<script src="//cdn.staticfile.org/wangeditor5/5.1.22/index.js"></script>
|
||
<script>
|
||
window.wangEditor || document.write('<script src="//cdn.bootcdn.net/ajax/libs/wangeditor5/5.1.22/index.min.js"><\/script>')
|
||
</script>
|
||
<script src="//qiniu.gecomebox.com/static/cdn/fp.min.js"></script>
|
||
<script>
|
||
window.FingerprintJS || document.write('<script src="//cdn.jsdelivr.net/npm/@fingerprintjs/fingerprintjs@3.3.6/dist/fp.min.js"><\/script>')
|
||
</script>
|
||
<script>
|
||
window.FingerprintJS || document.write('<script src="//unpkg.com/@fingerprintjs/fingerprintjs@3.3.6/dist/fp.min.js"><\/script>')
|
||
</script>
|
||
|
||
<script src="//qiniu.gecomebox.com/static/cdn/bn.min.js"></script>
|
||
<script>
|
||
window.BN || document.write('<script src="//cdn.jsdelivr.net/npm/bn.js@5.2.1/lib/bn.min.js"><\/script>')
|
||
</script>
|
||
<script>
|
||
window.BN || document.write('<script src="//unpkg.com/bn.js@5.2.1/lib/bn.js"><\/script>')
|
||
</script>
|
||
<!--
|
||
Notice the use of %PUBLIC_URL% in the tags above.
|
||
It will be replaced with the URL of the `public` folder during the build.
|
||
Only files inside the `public` folder can be referenced from the HTML.
|
||
|
||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
||
work correctly both with client-side routing and a non-root public URL.
|
||
Learn how to configure a non-root public URL by running `npm run build`.
|
||
-->
|
||
<title>New Demo</title>
|
||
</head>
|
||
|
||
<body>
|
||
<div id="root"></div>
|
||
<!--
|
||
This HTML file is a template.
|
||
If you open it directly in the browser, you will see an empty page.
|
||
|
||
You can add webfonts, meta tags, or analytics to this file.
|
||
The build step will place the bundled scripts into the <body> tag.
|
||
|
||
To begin the development, run `npm start` or `yarn start`.
|
||
To create a production bundle, use `npm run build` or `yarn build`.
|
||
--></body>
|
||
|
||
<script>
|
||
function getBrowserVersion() {
|
||
var sys = {};
|
||
var ua = navigator.userAgent.toLowerCase();
|
||
var s;
|
||
(s = ua.match(/firefox\/([\d.]+)/))
|
||
? (sys.firefox = s[1])
|
||
: (s = ua.match(/chrome\/([\d.]+)/))
|
||
? (sys.chrome = s[1])
|
||
: (s = ua.match(/opera.([\d.]+)/))
|
||
? (sys.opera = s[1])
|
||
: (s = ua.match(/rv:([\d.]+)/))
|
||
? (sys.ie = s[1])
|
||
: (s = ua.match(/msie ([\d.]+)/))
|
||
? (sys.ie = s[1])
|
||
: (s = ua.match(/version\/([\d.]+).*safari/))
|
||
? (sys.safari = s[1])
|
||
: 0;
|
||
var browser = 'Unknown';
|
||
var tip = document.createElement('div');
|
||
var closeBtn = document.createElement('img');
|
||
var contentHTML =
|
||
'您当前使用的浏览器可能会出现界面显示异常或功能无法正常使用等问题,建议下载使用最新的 360 极速浏览器并切换到极速模式。';
|
||
var handleClickClose = function (event) {
|
||
document.body.removeChild(tip);
|
||
};
|
||
var startAppend = function () {
|
||
document.body.appendChild(tip);
|
||
tip.appendChild(closeBtn);
|
||
};
|
||
|
||
closeBtn.style.position = 'absolute';
|
||
closeBtn.style.right = '20px';
|
||
closeBtn.style.bottom = '7px';
|
||
closeBtn.style.cursor = 'pointer';
|
||
closeBtn.style.width = '15px';
|
||
closeBtn.style.height = '15px';
|
||
closeBtn.src = '../assets/images/icon-close.png';
|
||
closeBtn.alt = '关闭';
|
||
|
||
if (closeBtn.addEventListener) {
|
||
closeBtn.addEventListener('click', handleClickClose);
|
||
} else {
|
||
// IE8 及以下
|
||
closeBtn.attachEvent('onclick', handleClickClose);
|
||
}
|
||
|
||
tip.style.position = 'relative';
|
||
tip.style.backgroundColor = 'yellow';
|
||
tip.style.color = 'red';
|
||
tip.style.position = 'fixed';
|
||
tip.style.top = 0;
|
||
tip.style.right = 0;
|
||
tip.style.left = 0;
|
||
tip.style.padding = '5px 20px';
|
||
tip.style.fontSize = '14px';
|
||
|
||
if (sys.ie) {
|
||
browser = 'IE';
|
||
tip.innerHTML = contentHTML;
|
||
startAppend();
|
||
}
|
||
if (sys.firefox) {
|
||
browser = 'Firefox';
|
||
tip.innerHTML = contentHTML;
|
||
startAppend();
|
||
}
|
||
if (sys.chrome) {
|
||
browser = 'Chrome';
|
||
|
||
var getChromeVersion = function () {
|
||
var arr = navigator.userAgent.split(' ');
|
||
var chromeVersion = '';
|
||
for (var i = 0; i < arr.length; i++) {
|
||
if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
|
||
}
|
||
if (chromeVersion) {
|
||
return Number(
|
||
chromeVersion.split('/')[1].split('.')[0]
|
||
);
|
||
} else {
|
||
return false;
|
||
}
|
||
};
|
||
|
||
if (getChromeVersion()) {
|
||
var version = getChromeVersion();
|
||
// 如果 360 极速浏览器并切换到极速模式低于86版本
|
||
if (version < 87) {
|
||
tip.innerHTML =
|
||
'您当前使用的浏览器版本过低,使用可能会出现界面显示异常或功能无法正常使用等问题,建议下载使用谷歌,火狐,edge等新版本浏览器。';
|
||
startAppend();
|
||
}
|
||
}
|
||
}
|
||
if (sys.opera) {
|
||
browser = 'Opera';
|
||
tip.innerHTML = contentHTML;
|
||
startAppend();
|
||
}
|
||
if (sys.safari) {
|
||
browser = 'Safari';
|
||
}
|
||
}
|
||
getBrowserVersion();
|
||
</script>
|
||
</html>
|