UNPKG

insight-plugin-verifier

Version:

Insight-verifier

67 lines (63 loc) 2.29 kB
<!doctype html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <meta name="robots" content="all"/> <meta name="author" content="RZccccccc"/> <meta name="Copyright" content="Insight"/> <meta name="format-detection" content="telephone=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1 user-scalable=no" /> <title>公用弹窗插件</title> <link href="css/dialog.css" rel="stylesheet"/> <style> </style> <!-- 页面设计:cp | 页面制作:cp | 创建:2018-12-13 --> <script> var defaultFontSize = 0; (function(){ var d = window.document.createElement('div'); d.style.width = '1rem'; d.style.display = "none"; var head = window.document.getElementsByTagName('head')[0]; head.appendChild(d); defaultFontSize = parseFloat(window.getComputedStyle(d, null).getPropertyValue('width')); d.remove(); var _cWidth = innerWidth; var _cHeight = innerHeight; var delayAdapterTimer; var adapterLinstener = setInterval(function(){ if(_cWidth == innerWidth || _cHeight == innerHeight ){ return; }else{ _cWidth = innerWidth; _cHeight = innerHeight; } clearTimeout(delayAdapterTimer); delayAdapterTimer = setTimeout(function(){ resize(); }, 80); },80); resize(true); function resize(bol) { var html = document.documentElement; var designWidth = 750; var rem2px = 100; document.documentElement.style.fontSize = window.innerWidth / designWidth * rem2px / defaultFontSize * 100 + '%'; if(typeof adapterChatroom == "function") adapterChatroom(); } })(); </script> </head> <body> <img src="http://h5.intech.gdinsight.com/gq_car/a20181122biyadi/share/img/p1_bg.jpg" style="width: 100%;height: 100%;"> <div id="mydia"> </div> <div class="part1"></div> <div class="part2"></div> </body> <script src="js/zepto.js"></script> <script src="js/index.js"></script> <script src="js/dialog.js"></script> <script> </script> </html>