1
Fork 0

Move player def to soundtrack

This commit is contained in:
Jake Howard 2017-11-10 22:38:15 +00:00
parent 136aff6efc
commit b2ba8c008e
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 8 deletions

View file

@ -28,8 +28,8 @@
</td>
<td>{{ .album.name }}</td>
<td>
<audio controls class="mejs__player">
<source src="{{ .preview_url }}" type="audio/mpeg">
<audio controls class="mejs__player" data-plyr='{"controls": ["play", "progress"]}'>
<source src="{{ .preview_url }}" type="audio/mpeg" />
</audio>
</td>
</tr>

View file

@ -6,12 +6,7 @@ require('bootstrap');
require('lightgallery/dist/js/lightgallery');
require('lg-thumbnail/dist/lg-thumbnail');
require('plyr').setup({
controls: [
'play',
'progress'
]
});
require('plyr').setup();
$('.image').each(function () { // setup div-image hybrids