Pixelrat (обсуждение | вклад) |
Pixelrat (обсуждение | вклад) м |
||
| (не показано 15 промежуточных версий этого же участника) | |||
| Строка 4: | Строка 4: | ||
|height= | |height= | ||
}}</pre>[[Категория:Виджеты]] | }}</pre>[[Категория:Виджеты]] | ||
| − | </noinclude><includeonly> | + | </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;"> |
| − | <iframe 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></includeonly> | + | <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: url(https://img.youtube.com/vi/<!--{$id|escape:'urlpathinfo'}-->/hqdefault.jpg) center center #AAA; 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:57, 22 апреля 2025
{{#widget:Youtube
|id=
|width=
|height=
}}