123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta charset="utf-8" />
- <meta content="yes" name="apple-mobile-web-app-capable" />
- <meta content="yes" name="apple-touch-fullscreen" />
- <meta content="telephone=no,email=no" name="format-detection" />
- <meta content="maximum-dpr=2" name="flexible" />
-
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
- <title>心理胜任能力评估系统</title>
- <link rel="icon" href="<%= BASE_URL %>favicon.png">
- <script src="/static/global.js"></script>
- <script>
- let prod = false;
- let baseUrl = prod ? env.prod : env.dev;
- let photoUrl = prod ? env.photoUrl : env.photoUrl;
- let scoketUrl = env.scoketUrl;
- let systemUrl = env.systemUrl;
-
-
-
-
-
-
-
-
- var os = function () {
- var ua = navigator.userAgent,
- isWindowsPhone = /(?:Windows Phone)/.test(ua),
- isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone,
- isAndroid = /(?:Android)/.test(ua),
- isFireFox = /(?:Firefox)/.test(ua),
- isChrome = /(?:Chrome|CriOS)/.test(ua),
- isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox && /(?:Tablet)/.test(ua)),
- isPhone = /(?:iPhone)/.test(ua) && !isTablet,
- isPc = !isPhone && !isAndroid && !isSymbian;
- return {
- isTablet: isTablet,
- isPhone: isPhone,
- isAndroid: isAndroid,
- isPc: isPc
- };
- }();
- var getQueryVariable = function (variable) {
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i = 0; i < vars.length; i++) {
- var pair = vars[i].split("=");
- if (pair[0] == variable) { return pair[1]; }
- }
- return (false);
- }
- if ((os.isAndroid || os.isPhone) && (getQueryVariable('userType') != 2 && getQueryVariable('userType') != 3)) {
- let url = window.location.href;
- window.location.href = url + 'h5/index.html'
- }
-
- 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) {
-
- event.preventDefault();
- }else{
- lastTouchEnd = now;
- }
- }, false);
-
- document.documentElement.addEventListener("gesturestart", function (event) {
- event.preventDefault();
- });
- </script>
- </head>
- <body>
- <div id="app"></div>
-
- </body>
- </html>
|