Skip to content

Commit

Permalink
emmm
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Jul 11, 2024
1 parent 3b88164 commit 432744d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 52 deletions.
63 changes: 17 additions & 46 deletions docs/eplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class Eplayer extends HTMLElement {
bottom:0;
background:linear-gradient(transparent,rgba(0,0,0,.5));
transition: .3s ease-out;
opacity:0.6;
opacity:0.4;
z-index:1;
}
.controls:hover{
Expand Down Expand Up @@ -281,32 +281,7 @@ class Eplayer extends HTMLElement {
.time{
display:${this.live ? 'none' : 'inline-block'};
position:relative;
font-size:16px;
}
.lines{
padding:0 10px;
display:flex;
align-items: center;
}
.line{
padding:0 2px;
cursor:pointer
}
.line i{
width:4px;
border-radius:4px;
display: inline-block;
background: var(--icons,rgba(255,255,255,0.6));
height: 12px;
transform:scaleX(0.7);
transition: .3s;
}
.line:hover i{
height:14px;
background:var(--theme,#946ce6);
}
.active i{
background:var(--theme,#946ce6);
font-size:15px;
}
.left{
flex:1;
Expand All @@ -321,7 +296,7 @@ class Eplayer extends HTMLElement {
}
.bg,.current,.buffer{
left:0;
height:3px;
height:2px;
position:absolute;
top:0;
transition: .3s ease-out;
Expand All @@ -341,23 +316,11 @@ class Eplayer extends HTMLElement {
position:absolute;
border-radius: 50%;
background:#fff;
height: 9px;
width:9px;
right:-5px;
top:-3px;
cursor:pointer;
z-index:1;
}
.cycle{
display:none;
position:absolute;
border-radius: 50%;
background:#fff;
opacity:0.3;
height: 15px;
width:15px;
right:-8px;
top:-6px;
height: 12px;
width:12px;
top:-50%;
right:0px;
transform: translate(50%,0);
cursor:pointer;
z-index:1;
}
Expand Down Expand Up @@ -430,6 +393,14 @@ class Eplayer extends HTMLElement {
margin-right:5px;
cursor:pointer;
}
em{
font-size: 16px;
font-weight:bold;
font-style:normal;
color:#fff;
margin-right:8px;
}
</style>
Expand All @@ -443,7 +414,6 @@ class Eplayer extends HTMLElement {
<b class="buffer"></b>
<div class="current" style="width:0">
<div class="dot"></div>
<div class="cycle"></div>
</div>
</div>
<div class="options">
Expand All @@ -454,6 +424,7 @@ class Eplayer extends HTMLElement {
</span>
</div>
<div class="right">
<em>倍速</em>
<iconpark-icon icon-id="volume-ok" size="2rem" class="is-volume"></iconpark-icon>
<iconpark-icon icon-id="web-fullscreen" size="2rem"></iconpark-icon>
<iconpark-icon icon-id="fullscreen" size="2rem" class="fullscreen"></iconpark-icon>
Expand Down
9 changes: 3 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<body>
<style>
body {
background: url(https://catbox.moe/bgs/texture3.png);
background: url(https://fontawesome.com/images/icons-gray-bg.svg);
}

.wrapper {
Expand All @@ -23,6 +23,8 @@
left: 50%;
top: 50%;
height: 450px;
border-radius: 8px;
overflow: hidden;
}

@media screen and (max-width: 500px) {
Expand Down Expand Up @@ -58,14 +60,9 @@
</style>

<div class="wrapper">
<div class="container"></div>
<e-player id="ep"
src="https://a1.alibabausercontent.com/prod/feupload/user/edos8/2f0e7af0-29f1-11ef-b3cd-818e64ac843d.mp4">
</e-player>

<a href="https://github.com/132yse/eplayer">github</a>
<a href="https://github.com/132yse/eplayer/blob/master/README.md">README</a>
<a href="https://www.clicli.cc">clicli.cc</a>
</div>
<script src="https://unpkg.com/@webcomponents/webcomponentsjs"></script>
<script src="https://unpkg.com/hls.js"></script>
Expand Down

0 comments on commit 432744d

Please sign in to comment.