fix: wip video homepage and hirepage todo
This commit is contained in:
parent
e7035b8b40
commit
ef0501ba6e
2 changed files with 7 additions and 5 deletions
|
|
@ -1,7 +1,9 @@
|
|||
@php $uniqueID = uniqid(); @endphp
|
||||
<a class="video-frame cn-youtube" data-newtab="{{ $linkNewTab }}" data-id="{{ $videoId }}"
|
||||
<div class="cn-youtube" data-id="{{ $videoId }}">
|
||||
<a class="video-frame" data-newtab="{{ $linkNewTab }}"
|
||||
href="@if (!$linkNewTab) https://www.youtube.com/embed/{{ $videoId }} @else https://www.youtube.com/watch?v={{ $videoId }} @endif"
|
||||
@if (!$linkNewTab) data-type="{{ $type }}" data-frame="{{ route('fo.frame', ['frame' => $type]) }}" @else target="_blank" @endif>
|
||||
<img class="video-thumbnail ratio ratio-16x9 rounded-4" src="{{ $picture }}" title="{{ $title }}" alt="{{ $alt }}">
|
||||
<i class="video-play-button fa-solid fa-circle-play position-absolute top-50 start-50 translate-middle fa-2xl text-tertiary bg-white"></i>
|
||||
</a>
|
||||
<img class="video-thumbnail ratio ratio-16x9 rounded-4" src="{{ $picture }}" title="{{ $title }}" alt="{{ $alt }}">
|
||||
<i class="video-play-button fa-solid fa-circle-play position-absolute top-50 start-50 translate-middle fa-2xl text-tertiary bg-white"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
2
resources/views/vendor/cn-cookies.blade.php
vendored
2
resources/views/vendor/cn-cookies.blade.php
vendored
|
|
@ -76,7 +76,7 @@ function () {
|
|||
for (let item of youtubeVids) {
|
||||
let id = item.dataset.id;
|
||||
let e = document.createElement('iframe');
|
||||
e.src = "https://www.youtube.com/embed/" + id;
|
||||
e.src = "https://www.youtube.com/embed/" + id + '?autoplay=1';
|
||||
e.width = "640";
|
||||
e.height = "360";
|
||||
e.frameBorder = "0";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue