1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-25 02:57:19 +00:00
TiddlyWiki5/plugins/tiddlywiki/help/tabs/Videos.tid

25 lines
776 B
Plaintext
Raw Normal View History

title: $:/plugins/tiddlywiki/help/HelpPanel/Videos
tags: $:/tags/HelpPanel
caption: Videos
\define show-video-inner(embed)
2017-11-18 19:53:52 +00:00
<iframe width="280" height="157" src="""https://www.youtube.com/embed/$embed$?autoplay=0&showinfo=0&theme=light&rel=0&modestbranding=1&autohide=1""" frameborder="0" allowfullscreen></iframe>
\end
\define show-video(title)
<$macrocall $name="show-video-inner" embed={{$title$!!embed}}/>
<p>{{$title$!!text}}</p>
\end
<div class="tc-help-panel-inner">
Choose video: <$select tiddler="$:/config/Help/CurrentVideo">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/HelpPanel/Videos]]">
<option value=<<currentTiddler>>><$view field="caption"/></option>
</$list>
</$select>
<$macrocall $name="show-video" title={{$:/config/Help/CurrentVideo}}>>
</div>