beelink/public/index.html

146 lines
5.8 KiB
HTML
Raw Normal View History

2020-09-24 10:26:22 +08:00
<!DOCTYPE html>
2020-12-02 11:31:34 +08:00
<html lang="zh_CN">
2020-10-28 15:23:28 +08:00
<head>
2020-09-24 10:26:22 +08:00
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
2020-11-13 17:36:33 +08:00
<link href="https://imgcache.qq.com/open/qcloud/video/tcplayer/tcplayer.css" rel="stylesheet">
2020-11-25 14:04:45 +08:00
<script data-ad-client="ca-pub-7145171713084445" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
2020-11-25 09:57:36 +08:00
<!-- 如需在IE8、9浏览器中初始化播放器浏览器需支持Flash并在页面中引入 -->
<!--[if lt IE 9]>
<script src="//imgcache.qq.com/open/qcloud/video/tcplayer/ie8/videojs-ie8.js"></script>
<![endif]-->
<!-- 如果需要在 Chrome Firefox 等现代浏览器中通过H5播放hls需要引入 hls.js -->
<script src="https://imgcache.qq.com/open/qcloud/video/tcplayer/lib/hls.min.0.8.8.js"></script>
<!-- 引入播放器 js 文件 -->
<script src="https://imgcache.qq.com/open/qcloud/video/tcplayer/tcplayer.min.js"></script>
2020-09-27 10:37:36 +08:00
<script>
2020-10-28 15:23:28 +08:00
//designWidth:设计稿的实际宽度值,需要根据实际设置
//maxWidth:制作稿的最大宽度值,需要根据实际设置
//这段js的最后面有两个参数记得要设置一个为设计稿实际宽度一个为制作稿最大宽度例如设计稿为750最大宽度为750则为(750,750)
(function (designWidth, maxWidth) {
var doc = document,
win = window,
docEl = doc.documentElement,
remStyle = document.createElement("style"),
tid;
2020-09-27 10:37:36 +08:00
2020-10-28 15:23:28 +08:00
function refreshRem() {
2020-09-27 10:37:36 +08:00
2020-10-28 15:23:28 +08:00
var width = docEl.getBoundingClientRect().width;
// maxWidth = maxWidth || 540; //不需要判断最大宽度
// width > maxWidth && (width = maxWidth);
var rem = width * 100 / designWidth;
console.log(rem)
2020-09-27 10:37:36 +08:00
2020-10-28 15:23:28 +08:00
remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
}
2020-09-27 10:37:36 +08:00
2020-10-28 15:23:28 +08:00
if (docEl.firstElementChild) {
docEl.firstElementChild.appendChild(remStyle);
} else {
var wrap = doc.createElement("div");
wrap.appendChild(remStyle);
doc.write(wrap.innerHTML);
wrap = null;
}
//要等 wiewport 设置好后才能执行 refreshRem不然 refreshRem 会执行2次
refreshRem();
2020-09-27 10:37:36 +08:00
2020-10-28 15:23:28 +08:00
win.addEventListener("resize", function () {
clearTimeout(tid); //防止执行两次
tid = setTimeout(refreshRem, 300);
}, false);
2020-09-27 10:37:36 +08:00
2020-10-28 15:23:28 +08:00
win.addEventListener("pageshow", function (e) {
if (e.persisted) { // 浏览器后退的时候重新计算
clearTimeout(tid);
tid = setTimeout(refreshRem, 300);
}
}, false);
2020-09-27 10:37:36 +08:00
2020-10-28 15:23:28 +08:00
if (doc.readyState === "complete") {
doc.body.style.fontSize = "16px";
} else {
doc.addEventListener("DOMContentLoaded", function (e) {
doc.body.style.fontSize = "16px";
}, false);
}
})(1366, 1024);
2020-09-27 10:37:36 +08:00
</script>
2020-11-22 18:24:02 +08:00
<link href="/css/cropper.min.css" rel="stylesheet">
2020-11-02 16:11:45 +08:00
<style>
#make{
background-color: #000;
opacity: 0.5;
width: 100%;
height: 100vh;
position: fixed;
top: 0;
left: 0;
2020-11-18 11:02:27 +08:00
z-index: 1001;
2020-11-02 16:11:45 +08:00
display: none;
}
</style>
2020-12-02 17:21:05 +08:00
<meta property="og:type" content="website" />
2020-12-02 17:42:38 +08:00
<meta property="og:title" content="分享测试测试">
2020-12-02 17:21:05 +08:00
<meta property="og:description" content="分享描述">
<meta property="og:image" content="http://1303872925.vod2.myqcloud.com/7db674eavodcq1303872925/a5d03b0c5285890810149245655/vrLgNu2JaBkA.png">
<meta property="og:url" content="https://beelink.theluyuan.com/">
2020-11-25 10:26:28 +08:00
2020-10-28 15:23:28 +08:00
</head>
<body>
2020-09-24 10:26:22 +08:00
<noscript>
2020-10-28 15:23:28 +08:00
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong>
2020-09-24 10:26:22 +08:00
</noscript>
<div id="app"></div>
2020-11-02 16:11:45 +08:00
<div id="make"></div>
2020-09-24 10:26:22 +08:00
<!-- built files will be auto injected -->
2020-10-28 15:23:28 +08:00
<script>
window.fbAsyncInit = function () {
FB.init({
appId: '277826133389999',
autoLogAppEvents: true,
xfbml: true,
version: 'v8.0'
});
};
</script>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>
2020-11-22 18:24:02 +08:00
<script src="/js/cropper.min.js"></script>
2020-12-02 17:55:05 +08:00
<script src="/js/jquery-3.2.1.min.js"></script>
2020-12-03 17:37:20 +08:00
<div id="xiangqingdivadsensedisplaynone" style="display:none;">
<!-- put here all adsense code -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 详情页面 -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-7145171713084445"
data-ad-slot="9189068072"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div id="guanlidivadsensedisplaynone" style="display:none;">
<!-- put here all adsense code -->
<!-- 直播管理和视频管理列表页面 -->
<ins class="adsbygoogle"
style="display:inline-block;width:450px;height:380px"
data-ad-client="ca-pub-7145171713084445"
data-ad-slot="4213570423"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
2020-12-02 17:29:03 +08:00
<script>
2020-12-02 17:58:23 +08:00
$("meta[property='og:title']")[0].content = "测试动态"
2020-12-02 17:29:03 +08:00
</script>
2020-10-28 15:23:28 +08:00
</body>
2020-12-02 16:33:04 +08:00
</html>