Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
373bd618
Commit
373bd618
authored
Aug 23, 2013
by
Simon Daron
Browse files
Audio control
parent
e564f328
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/js/specifics.js
View file @
373bd618
...
...
@@ -15,7 +15,7 @@ $(function() {
});
});
});
$
(
"
[data-audio]
"
).
each
(
function
()
{
$
(
"
[data-audio
-control
]
"
).
each
(
function
()
{
var
playPauseButton
=
$
(
this
).
find
(
'
.playpause
'
);
var
audio
=
$
(
'
#
'
+
$
(
this
).
attr
(
'
data-audio
'
));
var
audioElement
=
audio
[
0
];
...
...
panikweb_templates/templates/includes/audio.html
View file @
373bd618
{% if file.url %}
<span
class=
"audioControls small"
data-audio=
"Audio-{{ file.url|slugify }}"
>
<span
class=
"audioControls small"
data-audio
-control
=
"Audio-{{ file.url|slugify }}"
>
<button
class=
"playpause icon-play"
>
{{ file.content_types }}
</button>
<a
class=
"icon-download"
href=
"{{ file.url }}"
></a>
</span>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment