Widget:视频:修订间差异
来自HUIJIA FUN
Plurimod学生会(留言 | 贡献) 无编辑摘要 标签:已被回退 |
Plurimod学生会(留言 | 贡献) 无编辑摘要 标签:手工回退 |
||
| 第30行: | 第30行: | ||
width: <!--{$width|default:425|validate:int|escape:'html'}-->px; | width: <!--{$width|default:425|validate:int|escape:'html'}-->px; | ||
height: <!--{$height|default:355|validate:int|escape:'html'}-->px; | height: <!--{$height|default:355|validate:int|escape:'html'}-->px; | ||
margin | margin-bottom: 15px; | ||
} | } | ||
.video-load- | .video-load-btn { | ||
position: absolute; | position: absolute; | ||
top: | top: 50%; | ||
left: | left: 50%; | ||
transform: translate(-50%, -50%); | |||
padding: 10px 20px; | |||
padding: | |||
background: #4285f4; | background: #4285f4; | ||
color: white; | color: white; | ||
| 第54行: | 第43行: | ||
border-radius: 4px; | border-radius: 4px; | ||
cursor: pointer; | cursor: pointer; | ||
z-index: 10; | |||
} | } | ||
.video-load-btn:hover { | .video-load-btn:hover { | ||
| 第67行: | 第52行: | ||
height: 100%; | height: 100%; | ||
display: none; | display: none; | ||
} | } | ||
</style> | </style> | ||
<div class="video-container"> | <div class="video-container"> | ||
< | <!-- Button will be removed after click --> | ||
<button class="video-load-btn" | |||
onclick="this.nextElementSibling.style.display='block'; this.nextElementSibling.src='<!--{$url|validate:url|escape:html|regex_replace:"#^(?!(https?:)?//).*#i":''}-->'; this.remove()"> | |||
Load Video | |||
</button> | |||
< | <!-- Video element (hidden by default) --> | ||
<video class="video-player" | <video class="video-player" | ||
width="<!--{$width|default:425|validate:int|escape:'html'}-->" | width="<!--{$width|default:425|validate:int|escape:'html'}-->" | ||
2025年4月5日 (六) 21:43的版本
{{#widget:视频
|url=https://vip.123pan.cn/1826204916/5651071
|width=640
|height=auto
}}
This widget lets you embed HTML5 Video Media on your wiki page.
It was created by taipan.
Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.
Copy to your site
To use this widget on your site, install MediaWiki Widgets extension and copy the complete source code of this page to your wiki as page Widget:视频.