Skip to content
Snippets Groups Projects
Commit bf38fa18 authored by Roman Sebastian Karwacik's avatar Roman Sebastian Karwacik
Browse files

Changed default embedding to scale with the site at a fixed aspect ratio

Chia
parent 373b9516
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,7 @@ $(function() {
<span>Einbetten</span>
</a>
<script>
{% set embedcode = '<iframe width="700" height="394" src="'+url_for('embed', course=course, id=lectureid, _external=True)+'" frameborder="0" allowfullscreen="true"></iframe>' %}
{% set embedcode = '<div style="position:relative;padding-top:56.25%;"><iframe style="position:absolute;top:0;left:0;width:100%;height:100%;overflow: hidden;" src="'+url_for('embed', course=course, id=lectureid, _external=True)+'" frameborder="0" allowfullscreen="true" scrolling="no"></iframe></div>' %}
$('#embedcodebtn').popover(
{
html:true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment