Widget:视频:修订间差异
来自HUIJIA FUN
Plurimod学生会(留言 | 贡献) 无编辑摘要 标签:手工回退 |
Plurimod学生会(留言 | 贡献) 无编辑摘要 标签:已被回退 |
||
| 第27行: | 第27行: | ||
.video-container { | .video-container { | ||
position: relative; | position: relative; | ||
width: | width: px; | ||
height: <!--{$height|default:355|validate:int|escape:'html'}-->px; | height: <!--{$height|default:355|validate:int|escape:'html'}-->px; | ||
margin-bottom: 15px; | margin-bottom: 15px; | ||
| 第56行: | 第56行: | ||
<div class="video-container"> | <div class="video-container"> | ||
<!-- Button will be removed after click --> | <!-- Button will be removed after click --> | ||
<button class="video-load-btn" | <button class="video-load-btn" | ||
onclick="this.nextElementSibling.style.display='block'; | onclick=" | ||
const player = this.nextElementSibling; | |||
player.style.display='block'; | |||
player.src=''; | |||
player.muted = false; /* Ensures video is not muted */ | |||
player.volume = 1.0; /* Sets volume to 100% */ | |||
player.play(); /* Optional: Autoplays the video after click */ | |||
this.remove(); | |||
"> | |||
▶ Load Video | ▶ Load Video | ||
</button> | </button> | ||
2025年7月12日 (六) 13:52的版本
{{#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:视频.