Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_vimeo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_vimeo
Commits
46bc8788
Commit
46bc8788
authored
3 years ago
by
Kevin von Spiczak
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] remove autoplay attribute, tweak allow list
parent
08f3a840
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Resources/Public/JavaScript/vimeoLightbox.js
+5
-1
5 additions, 1 deletion
Resources/Public/JavaScript/vimeoLightbox.js
with
5 additions
and
1 deletion
Resources/Public/JavaScript/vimeoLightbox.js
+
5
−
1
View file @
46bc8788
...
...
@@ -23,6 +23,10 @@ module.exports = function() {
$vimeoItem
.
magnificPopup
({
type
:
'
iframe
'
,
iframe
:
{
markup
:
'
<div class="mfp-iframe-scaler">
'
+
'
<div class="mfp-close"></div>
'
+
'
<iframe class="mfp-iframe" frameborder="0" allowfullscreen allow="autoplay; fullscreen *; picture-in-picture"></iframe>
'
+
'
</div>
'
,
patterns
:
{
vimeo
:
{
index
:
'
vimeo.com/
'
,
...
...
@@ -57,7 +61,7 @@ module.exports = function() {
'
<div class="embed-container" style="padding-bottom: calc(
'
+
height
+
'
/
'
+
width
+
'
* 100%);">
'
+
'
<iframe
'
+
'
width="
'
+
width
+
'
" height="
'
+
height
+
'
"
'
+
'
src="https://player.vimeo.com/video/
'
+
queryString
+
'
?
autoplay=1&
dnt=1" frameborder="0"
'
+
'
src="https://player.vimeo.com/video/
'
+
queryString
+
'
?dnt=1" frameborder="0"
'
+
'
allow="autoplay; fullscreen; picture-in-picture" allowfullscreen>
'
+
'
</iframe>
'
+
'
</div></div>
'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment