Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
aa
aabrowser
Commits
0e72707d
Commit
0e72707d
authored
Mar 25, 2011
by
svilayphiou
Browse files
show export/import from audacity in annotation menu
parent
f39db72f
Changes
2
Hide whitespace changes
Inline
Side-by-side
aabrowser/media/jquery.ui.playlist.js
View file @
0e72707d
...
...
@@ -39,6 +39,7 @@ $.widget("aa.playlist", {
size_url
:
""
,
srt_url
:
""
,
export_audacity_url
:
""
,
import_audacity_url
:
""
,
position_url
:
""
,
updatePositionURL
:
""
,
drop_on_cancel
:
false
,
...
...
@@ -54,6 +55,7 @@ $.widget("aa.playlist", {
var
that
=
this
;
this
.
element
.
addClass
(
"
aa-playlist
"
);
var
o
=
this
.
options
;
console
.
log
(
o
);
o
.
annotation_id
=
$
(
this
.
element
).
attr
(
"
data-id
"
)
||
o
.
annotation_id
;
o
.
_editing
=
null
;
// null initial state allows read or edit call to take at end of init
o
.
_playing
=
false
;
// when false, responds to timeupdate events by following
...
...
aabrowser/templates/resource.html
View file @
0e72707d
...
...
@@ -6,6 +6,7 @@
{%block extrahead %}
<script
type=
"text/javascript"
charset=
"utf-8"
>
var
RESOURCE_INFO_URL
=
"
{% url aabrowser.views.resource_info %}
"
;
var
RESOURCE_VIEW_URL
=
"
{% url aabrowser.views.resource resource.id %}
"
;
var
ANNOTATION_URL_TEMPLATE
=
"
{% url aabrowser.views.annotation 0 %}
"
;
...
...
@@ -66,7 +67,18 @@ function play (url, start, end, endedcallback) {
end
:
end
,
delegate
:
info
.
delegate
,
autoplay
:
true
,
controls
:
true
,
controls
:
{
autoHide
:
true
,
height
:
24
,
backgroundColor
:
"
#FFFFFF
"
,
buttonColor
:
"
#000000
"
,
buttonOverColor
:
"
#999999
"
,
timeFontSize
:
9
,
timeColor
:
"
#000000
"
,
timeSeparator
:
"
/
"
,
durationColor
:
"
#000000
"
,
fullscreen
:
false
,
},
ended
:
endedcallback
,
timeupdate
:
function
(
evt
,
params
)
{
$
(
"
.aa-playlist
"
).
playlist
(
"
doTimeUpdate
"
,
params
.
time
,
url
);
...
...
@@ -136,6 +148,21 @@ $("a#textile-help-show").click(function(){ $('div#textile-help').toggle('fast');
})(
jQuery
);
$
(
document
).
ready
(
function
()
{
// SARMA
// Calculate column width according to number of annotations
box_nb
=
$
(
"
div.aa-playlist
"
).
length
;
width
=
100
/
box_nb
;
$
(
"
div.aa-playlist
"
).
css
(
"
width
"
,
width
+
"
%
"
);
// Header fades out when mouse doesn't move for X sec.
$
(
window
).
mousemove
(
function
(){
$
(
"
#header, #resource_header
"
).
stop
().
show
().
css
(
'
opacity
'
,
1
).
animate
({
opacity
:
0
},
2000
);
});
// SARMA END
// COLLAPSE THE SIDEBAR
$
(
"
#sidebar_content
"
).
hide
();
// console.log("scrolling");
...
...
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