123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta name="renderer" content="webkit" />
- <meta name="viewport"
- content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover" />
- <title></title>
- <!-- <link rel="icon" href="/favicon.ico" /> -->
- <script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
- <script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.1.js"></script>
- <style>
- body {
- -webkit-text-size-adjust: 100% !important;
- }
- </style>
- <script>
- window.process = {};
- (function () {
- if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
- handleFontSize();
- } else {
- if (document.addEventListener) {
- document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
- } else if (document.attachEvent) {
- document.attachEvent("WeixinJSBridgeReady", handleFontSize);
- document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
- }
- }
- function handleFontSize() {
- // 设置网页字体为默认大小
- WeixinJSBridge.invoke('setFontSizeCallback', {
- 'fontSize': 0
- });
- // 重写设置网页字体大小的事件
- WeixinJSBridge.on('menu:setfont', function () {
- WeixinJSBridge.invoke('setFontSizeCallback', {
- 'fontSize': 0
- });
- });
- }
- })();
- </script>
- </head>
- <body>
- <div id="app">
- <style>
- html,
- body,
- #app {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- .loader,
- .loader::before,
- .loader::after {
- width: 2.5em;
- height: 2.5em;
- border-radius: 50%;
- animation: load-animation 1.8s infinite ease-in-out;
- animation-fill-mode: both;
- }
- .loader {
- position: relative;
- top: 0;
- margin: 80px auto;
- font-size: 10px;
- color: #406eeb;
- text-indent: -9999em;
- transform: translateZ(0);
- transform: translate(-50%, 0);
- animation-delay: -0.16s;
- }
- .loader::before,
- .loader::after {
- position: absolute;
- top: 0;
- content: "";
- }
- .loader::before {
- left: -3.5em;
- animation-delay: -0.32s;
- }
- .loader::after {
- left: 3.5em;
- }
- @keyframes load-animation {
- 0%,
- 80%,
- 100% {
- box-shadow: 0 2.5em 0 -1.3em;
- }
- 40% {
- box-shadow: 0 2.5em 0 0;
- }
- }
- </style>
- <div class="loader"></div>
- </div>
- <script type="module" src="/src/main.ts"></script>
- </body>
- </html>
|