feat: 初始化
This commit is contained in:
85
index.html
Normal file
85
index.html
Normal file
@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<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, maximum-scale=1, user-scalable=no">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<title>HTFX</title>
|
||||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.chromeframe {
|
||||
margin: 0.2em 0;
|
||||
background: #ccc;
|
||||
color: #000;
|
||||
padding: 0.2em 0;
|
||||
}
|
||||
|
||||
.no-js #loader-wrapper {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.no-js h1 {
|
||||
color: #222222;
|
||||
}
|
||||
|
||||
#chat-widget-container {
|
||||
right: 30px !important;
|
||||
bottom: 40px !important;
|
||||
}
|
||||
|
||||
#chat-widget-minimized {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#service-btn {
|
||||
display: none;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 60px;
|
||||
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
|
||||
position: fixed;
|
||||
right: calc(0.5em + 30px);
|
||||
bottom: calc(1em + 40px);
|
||||
background-color: #fff;
|
||||
background-image: url('/service.png');
|
||||
z-index: 10009
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<div id="service-btn"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
<script>
|
||||
let si = setInterval(() => {
|
||||
const e = document.getElementById("chat-widget-container")
|
||||
if (e) {
|
||||
document.getElementById("service-btn").style.display = 'block'
|
||||
clearInterval(si)
|
||||
}
|
||||
}, 200)
|
||||
</script>
|
||||
<!-- Start of LiveChat (https://www.livechat.com) code -->
|
||||
<script>
|
||||
window.__lc = window.__lc || {};
|
||||
window.__lc.license = 15504243;
|
||||
;(function(n,t,c){function i(n){return e._h?e._h.apply(null,n):e._q.push(n)}var e={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)])},once:function(){i(["once",c.call(arguments)])},off:function(){i(["off",c.call(arguments)])},get:function(){if(!e._h)throw new Error("[LiveChatWidget] You can't use getters before load.");return i(["get",c.call(arguments)])},call:function(){i(["call",c.call(arguments)])},init:function(){var n=t.createElement("script");n.async=!0,n.type="text/javascript",n.src="https://cdn.livechatinc.com/tracking.js",t.head.appendChild(n)}};!n.__lc.asyncInit&&e.init(),n.LiveChatWidget=n.LiveChatWidget||e}(window,document,[].slice))
|
||||
</script>
|
||||
<noscript><a href="https://www.livechat.com/chat-with/15504243/" rel="nofollow">Chat with us</a>, powered by <a href="https://www.livechat.com/?welcome" rel="noopener nofollow" target="_blank">LiveChat</a></noscript>
|
||||
<!-- End of LiveChat code -->
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user