Skip to content

Commit

Permalink
removed external js; cleanup css
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Nov 12, 2024
1 parent 13a542c commit f55ceae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ public function renderAudio(Component\Component $component, RendererInterface $d
{
$tpl = $this->getTemplate("tpl.audio.html", true, true);

$component = $component->withAdditionalOnLoadCode(function ($id) {
return "$('#$id').mediaelementplayer({stretching: 'responsive'});";
});
$id = $this->bindJavaScript($component);

if ($component->getTranscription() != "") {
Expand Down Expand Up @@ -170,12 +167,4 @@ protected function isYoutube(
}
return false;
}

public function registerResources(\ILIAS\UI\Implementation\Render\ResourceRegistry $registry): void
{
parent::registerResources($registry);
$registry->register('https://player.vimeo.com/api/player.js');
}


}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="il-audio-container">
<audio controls style="width:100%; height: 30px; background-color: transparent;" class="il-audio-player" id="{ID}" src="{SOURCE}" preload="metadata"></audio>
<audio controls class="il-audio-player" id="{ID}" src="{SOURCE}" preload="metadata"></audio>
<!-- BEGIN transcription -->
{BUTTON_AND_MODAL}
<!-- END transcription -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

//== Player
$il-player-audio-width: 100%;
$il-player-audio-height: 30px;

// audio
.il-audio-container {
Expand All @@ -10,7 +11,9 @@ $il-player-audio-width: 100%;
}
}
.il-audio-player {
background: $il-neutral-color;
background: transparent;
height: $il-player-audio-height;
width: $il-player-audio-width;
}
.il-video-container {
video {
Expand Down
4 changes: 3 additions & 1 deletion templates/default/delos.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f55ceae

Please sign in to comment.