mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
优化演示
This commit is contained in:
1 parent
7d766ac1d5
commit
2a933206dc
3 files changed
+25
-4
No files matched your search
+11
-3
@@ -31,12 +31,16 @@ html, body {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.part-left .controls .logo {
|
.part-left .controls .left {
|
||||||
height: 30px;
|
display: flex;
|
||||||
line-height: 30px;
|
align-items: center;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.part-left .controls .left .logo {
|
||||||
|
padding-right: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.part-left .controls .run {
|
.part-left .controls .run {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
@@ -64,6 +68,10 @@ html, body {
|
|||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.part-right .video-wrap.dark {
|
||||||
|
background: #000;
|
||||||
|
}
|
||||||
|
|
||||||
.part-right .video-wrap .artplayer-app {
|
.part-right .video-wrap .artplayer-app {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
height: 60%;
|
height: 60%;
|
||||||
|
|||||||
+5
-1
@@ -20,7 +20,11 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="part-left">
|
<div class="part-left">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="logo">ArtPlayer.js</div>
|
<div class="left">
|
||||||
|
<a href="https://github.com/zhw2590582/ArtPlayer" class="logo" target="_blank">ArtPlayer.js</a>
|
||||||
|
<iframe src="https://ghbtns.com/github-btn.html?user=zhw2590582&repo=ArtPlayer&type=star&count=true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
|
||||||
|
<iframe src="https://ghbtns.com/github-btn.html?user=zhw2590582&repo=ArtPlayer&type=fork&count=true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
|
||||||
|
</div>
|
||||||
<input class="run" type="button" value="Run Code">
|
<input class="run" type="button" value="Run Code">
|
||||||
</div>
|
</div>
|
||||||
<div class="code"></div>
|
<div class="code"></div>
|
||||||
|
|||||||
@@ -7,6 +7,15 @@ var app = new Artplayer({
|
|||||||
pip: true,
|
pip: true,
|
||||||
autoSize: true,
|
autoSize: true,
|
||||||
theme: '#ffad00',
|
theme: '#ffad00',
|
||||||
|
contextmenu: [
|
||||||
|
{
|
||||||
|
html: '自定义菜单 - 天亮请关灯 Σ(っ °Д °;)っ',
|
||||||
|
click: function() {
|
||||||
|
document.querySelector('.video-wrap').classList.toggle('dark');
|
||||||
|
this.hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
quality: [
|
quality: [
|
||||||
{
|
{
|
||||||
default: true,
|
default: true,
|
||||||
|
|||||||
Reference in new issue
Block a user