1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
- <link rel="shortcut icon" href="<%= BASE_URL %>favicon.ico">
- <title>
- <%= VUE_APP_TITLE %>
- </title>
- <link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.13.2/skins/default/aliplayer-min.css">
- </head>
- <body>
- <noscript>
- <strong>
- 请开启 JavaScript 功能来使用 <%= VUE_APP_TITLE %>。
- </strong>
- </noscript>
- <iframe id='IEIframe' style='display: none;' width="100%" height="100%" src="/static_admin/ie.html"
- frameborder="0"></iframe>
- <div id="app"></div>
- <script src="https://g.alicdn.com/de/prismplayer/2.13.2/aliplayer-min.js"></script>
- </body>
- <script>
-
- window.onload= function() {
- console.log(new Date().getTime() - performance.timing.navigationStart,'首屏加载速度')
- }
- function IEVersion() {
- var userAgent = navigator.userAgent;
- var isIE =
- userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1;
- if (isIE) {
- return true;
- } else {
- return false;
- }
- }
-
- if (IEVersion()) {
- document.querySelector('#IEIframe').style.display = 'block'
- document.querySelector('#app').style.display = 'none'
- }
-
- if (window.HTMLElement) {
- if (Object.getOwnPropertyNames(HTMLElement.prototype).indexOf('dataset') === -1) {
- Object.defineProperty(HTMLElement.prototype, 'dataset', {
- get: function () {
- var attributes = this.attributes
- var name = []
- var value = []
- var obj = {}
- for (var i = 0; i < attributes.length; i++) {
- if (attributes[i].nodeName.slice(0, 5) === 'data-') {
-
- name.push(attributes[i].nodeName.slice(5));
-
- value.push(attributes[i].nodeValue);
- }
- }
- for (var j = 0; j < name.length; j++) {
- obj[name[j]] = value[j];
- }
- return obj
- }
- })
- }
- }
- </script>
- </html>
|