| author | ymh <ymh.work@gmail.com> |
| Tue, 22 Oct 2024 07:03:54 +0200 | |
| changeset 1076 | 510fd2a482f4 |
| parent 1072 | ac1eacb3aa33 |
| permissions | -rw-r--r-- |
const Title = function (ns) { return class extends ns.Widgets.Widget { constructor(player, config) { super(player, config); } static defaults = { media_title: false, }; static template = '<div class="Ldt-TitleWidget"><h2>{{#media_title}}{{media.title}}{{/media_title}}{{^media_title}}{{source.title}}{{/media_title}}</h2></div>'; draw() { this.renderTemplate(); } }; }; export { Title };