打包
This commit is contained in:
124
dist/zhibo.html
vendored
124
dist/zhibo.html
vendored
@@ -8,20 +8,71 @@
|
||||
<link rel="stylesheet" href="./css/bootstrap-material-design.min.css">
|
||||
<link rel="stylesheet" href="./css/index.css">
|
||||
<link rel="stylesheet" href="./css/room.css">
|
||||
<script>
|
||||
(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 / 100 + '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>
|
||||
<style>
|
||||
#member-list > div{
|
||||
padding: 32px;
|
||||
border-bottom: 1px solid #EEEEEE;
|
||||
padding: 13rem;
|
||||
border-bottom: 1rem solid #EEEEEE;
|
||||
}
|
||||
.liaotian{
|
||||
grid-area: 3/1/4/4;
|
||||
margin-top: 28px;
|
||||
margin-top: 28rem;
|
||||
height: 90%;
|
||||
margin-left: 10px;
|
||||
margin-left: 10rem;
|
||||
width: 98%;
|
||||
background-color: #fff;
|
||||
border-radius: 17px;
|
||||
padding: 24px 28px 14px 28px !important;
|
||||
border-radius: 17rem;
|
||||
padding: 24rem 28rem 14rem 28rem !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -35,42 +86,43 @@
|
||||
}
|
||||
.wenzi > div{
|
||||
width: 100%;
|
||||
font-size: 11px;
|
||||
font-size: 11rem;
|
||||
}
|
||||
.wenzi > div >p:first-child {
|
||||
margin-right: 33px;
|
||||
margin-right: 33rem;
|
||||
}
|
||||
.wenzi > div >p span{
|
||||
color: #08AE98;
|
||||
}
|
||||
.fasongkuang{
|
||||
width: 100%;
|
||||
height: 47px;
|
||||
height: 29rem;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
flex-shrink: 0;
|
||||
border-top: 1px solid #DCDFE0;
|
||||
border-top: 1rem solid #DCDFE0;
|
||||
}
|
||||
.fasongkuang input{
|
||||
font-size: 11px;
|
||||
font-size: 11rem;
|
||||
color: #333;
|
||||
width: 600px;
|
||||
width: 430rem;
|
||||
border: none;
|
||||
|
||||
}
|
||||
.fasonganniu{
|
||||
display: flex;
|
||||
font-size: 11px;
|
||||
font-size: 11rem;
|
||||
color: #08AE98;
|
||||
align-items: center;
|
||||
}
|
||||
.fasonganniu img{
|
||||
width: 15px;
|
||||
height: 12px;
|
||||
width: 15rem;
|
||||
height: 12rem;
|
||||
margin-left: 7rem;
|
||||
}
|
||||
.fasongkuang input::placeholder{
|
||||
font-size: 11px;
|
||||
font-size: 11rem;
|
||||
}
|
||||
.fasongkuang input:focus{ border: none; background: #fff; outline: none;}
|
||||
</style>
|
||||
@@ -315,37 +367,37 @@
|
||||
<!-- 聊天室页面 -->
|
||||
<div id="room-root" class="col-div">
|
||||
<!-- header -->
|
||||
<div class="row-div card" style="width: 100%; height: 65px; justify-content: space-between;border-radius: 17px;">
|
||||
<div class="row-div card" style="width: 100%; height: 65rem; justify-content: space-between;border-radius: 17rem;">
|
||||
<!-- 腾讯云logo -->
|
||||
<div class="row-div" style="height: 100%; width: 230px; justify-content: center">
|
||||
<div class="row-div" style="height: 100%; width: 230rem; justify-content: center">
|
||||
|
||||
<div style="width: 86px; height: 23px; font-size: 18px; color: #333333">直播页面</div>
|
||||
<div style="width: 86rem; height: 23rem; font-size: 18rem; color: #333333">直播页面</div>
|
||||
</div>
|
||||
<!-- 分享屏幕 退出 按钮 -->
|
||||
<div class="row-div" style="height: 100%; width: auto;margin-right: 28px;">
|
||||
<img id="screen-btn" style="width: 45px; height: 45px" src="./img/screen-off.png" alt="">
|
||||
<div style="width: 20px"></div>
|
||||
<img id="logout-btn" style="width: 45px; height: 45px" src="./img/logout.png" alt="">
|
||||
<div class="row-div" style="height: 100%; width: auto;margin-right: 28rem;">
|
||||
<img id="screen-btn" style="width: 45rem; height: 45rem" src="./img/screen-off.png" alt="">
|
||||
<div style="width: 20rem"></div>
|
||||
<img id="logout-btn" style="width: 45rem; height: 45rem" src="./img/logout.png" alt="">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- content -->
|
||||
<div class="row-div" style="height: 100%; width: 100%; padding: 10px">
|
||||
<div class="col-div" style="width: 340px; height: 100%; padding: 10px">
|
||||
<div class="col-div card" style="width: 100%; height: 100%; padding: 23px;border-radius: 17px;">
|
||||
<div class="row-div" style="height: 100%; width: 100%; padding: 10rem">
|
||||
<div class="col-div" style="width: 340rem; height: 100%; padding: 10rem">
|
||||
<div class="col-div card" style="width: 100%; height: 100%; padding: 23rem;border-radius: 17rem;font-size: 14rem;">
|
||||
<!-- 成员列表 -->
|
||||
<div style="width: 100%;padding-bottom: 11px;border-bottom: 1px solid #EEEEEE;">上课人员</div>
|
||||
<div style="width: 100%;padding-bottom: 11rem;border-bottom: 1rem solid #EEEEEE;">上课人员</div>
|
||||
<div id="member-list" class="col-div" style="width: 100%; justify-content: flex-start; flex: 1">
|
||||
<!-- member -->
|
||||
<div id="member-me" style="width: 100%; padding-left: 20px;">
|
||||
<div id="member-me" style="width: 100%; padding-left: 20rem;">
|
||||
<div class="row-div member"
|
||||
style="width: 100%; height: 50px; justify-content: space-between">
|
||||
style="width: 100%; height: 50rem; justify-content: space-between">
|
||||
<div class="member-id">(我)</div>
|
||||
<div class="row-div" style="width:100px; height: 27px; justify-content: center">
|
||||
<div class="row-div" style="width:100rem; height: 20rem; justify-content: center">
|
||||
<img id="video-btn" class="member-video-btn" style="height: 100%" src="./img/camera-on.png"
|
||||
alt="">
|
||||
<div style="width: 18px"></div>
|
||||
<div style="width: 18rem"></div>
|
||||
<img id="mic-btn" class="member-audio-btn" style="height: 100%" src="./img/mic-on.png"
|
||||
alt="">
|
||||
</div>
|
||||
@@ -361,17 +413,17 @@
|
||||
<div id="main-video" class="video-box col-div" style="justify-content: flex-end">
|
||||
<!-- 主视频控制按钮 -->
|
||||
<!-- <div id="main-video-btns" class="row-div"
|
||||
style="width: 156px; position: absolute; z-index: 10; justify-content: center; align-self: flex-end">
|
||||
<img id="video-btn" style="width: 68px; height: 68px" onClick="event.cancelBubble = true"
|
||||
style="width: 156rem; position: absolute; z-index: 10; justify-content: center; align-self: flex-end">
|
||||
<img id="video-btn" style="width: 68rem; height: 68rem" onClick="event.cancelBubble = true"
|
||||
src="./img/big-camera-on.png" alt="" title="关闭摄像头">
|
||||
<img id="mic-btn" style="width: 68px; height: 68px" onClick="event.cancelBubble = true"
|
||||
<img id="mic-btn" style="width: 68rem; height: 68rem" onClick="event.cancelBubble = true"
|
||||
src="./img/big-mic-on.png" alt="" title="关闭麦克风">
|
||||
</div> -->
|
||||
<div id="mask_main" class="mask col-div">
|
||||
<!-- “摄像头未开启”遮罩 -->
|
||||
<div style="height: 100%; width: 100%; position: absolute; background-color: #D8D8D8"></div>
|
||||
<img style="width: 63px; height: 69px; z-index: 10;" src="./img/camera-max.png" alt="">
|
||||
<div style="height: 10px"></div>
|
||||
<img style="width: 63rem; height: 69rem; z-index: 10;" src="./img/camera-max.png" alt="">
|
||||
<div style="height: 10rem"></div>
|
||||
<div style="z-index: 10">摄像头未打开</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user