Commit 0e72707d authored by svilayphiou's avatar svilayphiou
Browse files

show export/import from audacity in annotation menu

parent f39db72f
......@@ -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
......
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment