Материал из Chipwiki
Widget:Youtube — различия между версиями
|
|
Строка 1: |
Строка 1: |
− | <noinclude><pre>{{#widget:Youtube
| + | |
− | |id=
| |
− | |width=
| |
− | |height=
| |
− | }}</pre>[[Категория:Виджеты]]
| |
− | </noinclude><includeonly><div class="lazyload-youtube" style="width:<!--{$width|default:392|validate:int|escape:'html'}-->px;height:<!--{$height|default:220|validate:int|escape:'html'}-->px;cursor: pointer; margin: 0 0 5px 0;">
| |
− | <div class="lazyload-thumbnail">
| |
− | <!--
| |
− | <div style="width:<!--{$width|default:392|validate:int|escape:'html'}-->px;height:<!--{$height|default:220|validate:int|escape:'html'}-->px;overflow: hidden; background-color:#AAA; background: url(https://img.youtube.com/vi/<!--{$id|escape:'urlpathinfo'}-->/hqdefault.jpg) center center; background-size: cover; border-radius:10px;"></div>
| |
− | <div class="play" style="width: 64px !important;height: 64px !important;position: relative;top: -50%;left: 50%;margin-top: -32px;margin-left: -32px;"></div>
| |
− | -->
| |
− | </div>
| |
− | <!--
| |
− | <div class="lazyload-youtube" style="padding-bottom:0px;">
| |
− | <iframe style="border-radius:10px;" width="<!--{$width|default:392|validate:int|escape:'html'}-->" height="<!--{$height|default:220|validate:int|escape:'html'}-->" src="https://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
| |
− | </div>
| |
− | -->
| |
− | </div></includeonly>
| |
Версия 17:55, 22 апреля 2025