1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-04 23:39:57 +00:00
TiddlyWiki5/editions/de-AT/tiddlers/system/$__editions_de-AT-DE_iframe-responsive.tid

10 lines
494 B
Plaintext
Raw Normal View History

created: 20150615125628093
modified: 20150615131411878
tags: $:/tags/Macro
title: $:/editions/de-AT-DE/iframe-responsive
type: text/vnd.tiddlywiki
\define iframe-responsive(src; ratio:"56.25%"; allowfullscreen:"allowfullscreen"; frameborder:"0")
<div style="width: 100%; padding-bottom: $ratio$; height: 0px; position: relative;"><iframe style="width: 100%; height: 100%; position: absolute; left: 0px; top: 0px;" src="$src$" frameborder="$frameborder$" $allowfullscreen$></iframe></div>
\end