Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AudioXBlock
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
AudioXBlock
Commits
1fbf19cc
Commit
1fbf19cc
authored
May 30, 2014
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill init code
parent
9540b13b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
audio/audio.py
+1
-3
No files found.
audio/audio.py
View file @
1fbf19cc
"""TO-DO:
Write a description of what this XBlock is.
"""
"""TO-DO:
This XBlock will play an MP3 file as an HTML5 audio element.
"""
import
pkg_resources
...
...
@@ -33,8 +33,6 @@ class AudioXBlock(XBlock):
html
=
self
.
resource_string
(
"static/html/audio.html"
)
frag
=
Fragment
(
html
.
format
(
src
=
self
.
src
))
frag
.
add_css
(
self
.
resource_string
(
"static/css/audio.css"
))
frag
.
add_javascript
(
self
.
resource_string
(
"static/js/src/audio.js"
))
frag
.
initialize_js
(
'AudioXBlock'
)
return
frag
# TO-DO: change this to create the scenarios you'd like to see in the
...
...
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