Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:VideoBanner: различия между версиями

Материал из Едрён Батон
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
{{#tag:html|
{{#tag:html|
<div id="cover-container" class="wiki-cover" style="border-radius: 8px; -webkit-mask-image: -webkit-radial-gradient(white, black);" data-video-url="{{FilePath:{{{video-file|}}}}}">
<div id="cover-container" class="wiki-cover" style="border-radius: 8px; -webkit-mask-image: -webkit-radial-gradient(white, black); position: relative;" data-video-url="{{FilePath:{{{video-file|}}}}}">
   <div class="cover-image-layer" id="cover-image-layer">
   <div class="cover-image-layer" id="cover-image-layer">
     <img src="{{FilePath:{{{image|}}}}}" alt="Video Cover" style="width: 100%; height: 100%; object-fit: cover;">
     <img src="{{FilePath:{{{image|}}}}}" alt="Video Cover" style="width: 100%; height: 100%; object-fit: cover;">
Строка 11: Строка 11:
   <div class="cover-video-layer" id="cover-video-layer" style="display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
   <div class="cover-video-layer" id="cover-video-layer" style="display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
     <div id="inline-video-container" style="width: 100%; height: 100%;"></div>
     <div id="inline-video-container" style="width: 100%; height: 100%;"></div>
   
     <div class="video-controls">
     <div class="video-controls">
       <button class="control-btn" id="mute-btn" title="Включить/выключить звук">
       <button class="control-btn" id="mute-btn" title="Включить/выключить звук">
Строка 26: Строка 25:
     </div>
     </div>
   </div>
   </div>
  {{#if:{{{video-file|}}}|
  <div id="vbs-badge" style="position: absolute; bottom: 10px; left: 12px; display: flex; align-items: center; gap: 5px; cursor: pointer; z-index: 10; user-select: none;">
    <span id="vbs-icon" style="display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.55); font-size: 10px; font-weight: bold; color: rgba(255,255,255,0.55); line-height: 1; flex-shrink: 0;">i</span>
    <span style="font-size: 12px; color: rgba(255,255,255,0.55);">Поддержка видео-баннера</span>
    <div id="vbs-tooltip" style="display:none; position: absolute; bottom: 26px; left: 0; width: 280px; background: rgba(20,20,20,0.97); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 10px 13px; font-size: 12px; color: rgba(255,255,255,0.82); line-height: 1.6; box-shadow: 0 4px 20px rgba(0,0,0,0.6); pointer-events: none;">
      Этот баннер поддерживает возможность воспроизводить видео. Такие баннеры предназначены для показа геймплея или возможностей механик, предметов, ролей и других фишек сервера.
    </div>
  </div>
  <script>
    (function() {
      var badge = document.getElementById('vbs-badge');
      var tip = document.getElementById('vbs-tooltip');
      if (!badge || !tip) return;
      badge.addEventListener('mouseenter', function() { tip.style.display = 'block'; });
      badge.addEventListener('mouseleave', function() { tip.style.display = 'none'; });
    })();
  </script>
  |}}
</div>
</div>
{{#if:{{{video-file|}}}|
<div class="video-banner-support" style="display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 13px; color: #aaa; line-height: 1.5;">
  <span style="display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #aaa; font-size: 11px; font-weight: bold; margin-top: 1px; cursor: default;" title="Этот баннер поддерживает возможность воспроизводить видео, такие баннеры предназначены для показа геймплея или возможностей механик, предметов, ролей и других фишек сервера.">i</span>
  <span>Поддержка видео-баннера</span>
</div>
|}}
}}
}}

Версия от 11:52, 13 апреля 2026

Video Cover