Widget:视频:修订间差异

来自HUIJIA FUN
无编辑摘要
标签已被回退
无编辑摘要
 
(未显示同一用户的10个中间版本)
第30行: 第30行:
     height: <!--{$height|default:355|validate:int|escape:'html'}-->px;
     height: <!--{$height|default:355|validate:int|escape:'html'}-->px;
     margin-bottom: 15px;
     margin-bottom: 15px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
   }
   }
   .video-load-btn {
   .video-load-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
     padding: 10px 20px;
     padding: 10px 20px;
     background: #4285f4;
     background: #4285f4;
第42行: 第43行:
     border-radius: 4px;
     border-radius: 4px;
     cursor: pointer;
     cursor: pointer;
     z-index: 10;
     transition: background 0.2s;
   }
   }
   .video-load-btn:hover {
   .video-load-btn:hover {
第55行: 第56行:


<div class="video-container">
<div class="video-container">
    <div class="video-button-wrapper" style="text-align: center; padding: 20px;">
  <!-- Button is part of normal flow -->
        <button class="video-load-btn"
  <button class="video-load-btn"  
                onclick="this.closest('.video-container').querySelector('.video-player').style.display='block'; this.closest('.video-container').querySelector('.video-player').src=''; this.parentNode.remove()">
          onclick="this.nextElementSibling.style.display='block'; this.nextElementSibling.src='<!--{$url|validate:url|escape:html|regex_replace:"#^(?!(https?:)?//).*#i":''}-->'; this.style.display='none'">
            ▶ Load Video
    ▶ Load Video
        </button>
  </button>
    </div>
  <!-- Video element (hidden by default) -->
    <video class="video-player"
  <video class="video-player"  
            width=""
        width="<!--{$width|default:425|validate:int|escape:'html'}-->"  
            height=""
        height="<!--{$height|default:355|validate:int|escape:'html'}-->"  
            controls
        controls  
            preload="none"></video>
        preload="none"></video>
</div>
</div>
</includeonly>
</includeonly>

2025年7月12日 (六) 14:11的最新版本

{{#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:视频.