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

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

Материал из Едрён Батон
Нет описания правки
Нет описания правки
 
(не показана 1 промежуточная версия этого же участника)
Строка 26: Строка 26:
   </div>
   </div>
   {{#if:{{{video-file|}}}|
   {{#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;">
   <div style="position: absolute; bottom: 10px; left: 12px; display: flex; align-items: center; gap: 5px; 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
     <span style="font-size: 12px; color: rgba(255,255,255,0.55);">Поддержка видео-баннера</span>
      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; cursor: default;"
     <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;">
      onmouseenter="document.getElementById('vbs-tip').style.display='block'"
       Этот баннер поддерживает возможность воспроизводить видео. Такие баннеры предназначены для показа геймплея или возможностей механик, предметов, ролей и других фишек сервера.
      onmouseleave="document.getElementById('vbs-tip').style.display='none'"
    >i</span>
     <span
      style="font-size: 12px; color: rgba(255,255,255,0.55); cursor: default;"
      onmouseenter="document.getElementById('vbs-tip').style.display='block'"
      onmouseleave="document.getElementById('vbs-tip').style.display='none'"
    >Доступна поддержка видео-баннера</span>
     <div id="vbs-tip" style="display: none; position: absolute; bottom: 24px; 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; pointer-events: none;">
       Этот баннер поддерживает возможность воспроизводить видео. Такие баннеры предназначены для шоукейса геймплея, механик, предметов, ролей и других фишек сервера.
     </div>
     </div>
   </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>
}}
}}

Текущая версия от 11:55, 13 апреля 2026

Video Cover