128 lines
5.0 KiB
HTML
128 lines
5.0 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh_CN">
|
||
|
||
<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">
|
||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||
<link href="https://imgcache.qq.com/open/qcloud/video/tcplayer/tcplayer.css" rel="stylesheet">
|
||
<script data-ad-client="ca-pub-7145171713084445" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||
<!-- 如需在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>
|
||
<script>
|
||
//designWidth:设计稿的实际宽度值,需要根据实际设置
|
||
//maxWidth:制作稿的最大宽度值,需要根据实际设置
|
||
//这段js的最后面有两个参数记得要设置,一个为设计稿实际宽度,一个为制作稿最大宽度,例如设计稿为750,最大宽度为750,则为(750,750)
|
||
(function (designWidth, maxWidth) {
|
||
var doc = document,
|
||
win = window,
|
||
docEl = doc.documentElement,
|
||
remStyle = document.createElement("style"),
|
||
tid;
|
||
|
||
function refreshRem() {
|
||
|
||
var width = docEl.getBoundingClientRect().width;
|
||
// maxWidth = maxWidth || 540; //不需要判断最大宽度
|
||
// width > maxWidth && (width = maxWidth);
|
||
var rem = width * 100 / designWidth;
|
||
console.log(rem)
|
||
|
||
remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
|
||
}
|
||
|
||
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();
|
||
|
||
win.addEventListener("resize", function () {
|
||
clearTimeout(tid); //防止执行两次
|
||
tid = setTimeout(refreshRem, 300);
|
||
}, false);
|
||
|
||
win.addEventListener("pageshow", function (e) {
|
||
if (e.persisted) { // 浏览器后退的时候重新计算
|
||
clearTimeout(tid);
|
||
tid = setTimeout(refreshRem, 300);
|
||
}
|
||
}, false);
|
||
|
||
if (doc.readyState === "complete") {
|
||
doc.body.style.fontSize = "16px";
|
||
} else {
|
||
doc.addEventListener("DOMContentLoaded", function (e) {
|
||
doc.body.style.fontSize = "16px";
|
||
}, false);
|
||
}
|
||
})(1366, 1024);
|
||
</script>
|
||
<link href="/css/cropper.min.css" rel="stylesheet">
|
||
<style>
|
||
#make{
|
||
background-color: #000;
|
||
opacity: 0.5;
|
||
width: 100%;
|
||
height: 100vh;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
z-index: 1001;
|
||
display: none;
|
||
}
|
||
</style>
|
||
<meta property="og:type" content="website" />
|
||
<!-- <meta property="og:title" content="分享测试测试"> -->
|
||
<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/">
|
||
|
||
</head>
|
||
|
||
<body>
|
||
<noscript>
|
||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
|
||
Please enable it to continue.</strong>
|
||
</noscript>
|
||
<div id="app"></div>
|
||
<div id="make"></div>
|
||
<!-- built files will be auto injected -->
|
||
<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>
|
||
<script src="/js/cropper.min.js"></script>
|
||
<script>
|
||
function addMeta(){//手动添加mate标签
|
||
let meta = document.createElement('meta');
|
||
meta.content="动态插入";
|
||
meta.property="og:title"
|
||
document.getElementsByTagName('head')[0].appendChild(meta);
|
||
}
|
||
addMeta()
|
||
</script>
|
||
</body>
|
||
|
||
</html>
|