generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
159: vimeo player padding issue fixed
- Loading branch information
Swapnamayee Sahoo
authored and
Swapnamayee Sahoo
committed
Nov 23, 2023
1 parent
342afa8
commit 57205d7
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.vimeo { | ||
padding-top: 50px; | ||
padding-bottom: 50px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
export default function decorate(block) { | ||
const anchorLink = block.querySelector('a'); | ||
const ifrmContainer = document.createElement('div'); | ||
ifrmContainer.classList.add('responsive-embed'); | ||
const ifrm = document.createElement('iframe'); | ||
ifrm.setAttribute('src', anchorLink); | ||
ifrm.style.width = '980px'; | ||
ifrm.style.height = '552px'; | ||
ifrm.style.frameBorder = '0'; | ||
ifrm.style.allow = 'autoplay; fullscreen; picture-in-picture'; | ||
ifrm.setAttribute('allowFullScreen', ''); | ||
ifrmContainer.appendChild(ifrm); | ||
block.innerHTML = ''; | ||
block.append(ifrm); | ||
block.append(ifrmContainer); | ||
} |