Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Merge requests
!352
Resolve "Embed a Youtube video on the home page"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Embed a Youtube video on the home page"
287-embed-a-youtube-video-on-the-home-page
into
master
Overview
1
Commits
3
Pipelines
2
Changes
9
Merged
Lukas Mauß
requested to merge
287-embed-a-youtube-video-on-the-home-page
into
master
5 years ago
Overview
1
Commits
3
Pipelines
2
Changes
4
Expand
Closes
#287 (closed)
0
0
Merge request reports
Viewing commit
8b8fc060
Prev
Next
Show latest version
4 files
+
82
−
6
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
8b8fc060
Embed youtube video in dialog
· 8b8fc060
Lukas Mauß
authored
5 years ago
src/app/components/home/_dialogs/demo-video/demo-video.component.html
+
8
−
3
Options
<p>
demo-video works!
</p>
<div
class=
"video"
fxLayout=
"row"
fxLayoutAlign=
"center"
>
<h2
[ngClass]=
"{'mobileText': deviceType === 'mobile', 'desktopText': deviceType === 'desktop'}"
>
Demo Video
</h2>
<iframe
[ngClass]=
"{'mobileFrame': deviceType === 'mobile', 'desktopFrame': deviceType === 'desktop'}"
src=
"https://www.youtube.com/embed/gq7LGp5HNIU?autoplay=1"
frameborder=
"0"
allow=
"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
<button
[ngClass]=
"{'mobileButton': deviceType === 'mobile', 'desktopButton': deviceType === 'desktop'}"
mat-raised-button
(click)=
"closeDialog()"
>
<mat-icon
>
exit_to_app
</mat-icon>
</button>
</div>