diff -r f11b234497f7 -r 61c384dda19e src/js/defaults.js --- a/src/js/defaults.js Fri Apr 27 19:18:21 2012 +0200 +++ b/src/js/defaults.js Thu May 03 17:52:52 2012 +0200 @@ -3,7 +3,7 @@ IriSP.libFiles = { defaultDir : "js/libs/", inDefaultDir : { - underscore : "underscore.js", + underscore : "underscore-min.js", Mustache : "mustache.js", jQuery : "jquery.min.js", jQueryUI : "jquery-ui.min.js", @@ -11,12 +11,12 @@ cssjQueryUI : "jquery-ui.css", popcorn : "popcorn.js", jwplayer : "jwplayer.js", - raphael : "raphael.js", + raphael : "raphael-min.js", "popcorn.mediafragment" : "popcorn.mediafragment.js", "popcorn.code" : "popcorn.code.js", "popcorn.jwplayer" : "popcorn.jwplayer.js", "popcorn.youtube" : "popcorn.youtube.js", - "tracemanager" : "tracemanager.js" + tracemanager : "tracemanager.js" }, locations : { // use to define locations outside defautl_dir @@ -31,88 +31,26 @@ IriSP.widgetsDir = 'widgets'; +IriSP.widgetsRequirements = { + Sparkline: { + noCss: true, + requires: "raphael" + }, + Arrow: { + noCss: true, + requires: "raphael" + }, + Mediafragment: { + noCss: true + }, + Trace : { + noCss: true, + requires: "tracemanager" + } +} + IriSP.guiDefaults = { width : 640, container : 'LdtPlayer', spacer_div_height : 0 } - -IriSP.widgetsDefaults = { - "AnnotationsWidget" : { - "share_text" : "I'm watching " - }, - "TweetsWidget" : { - default_profile_picture : "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png", - tweet_display_period : 10000 // how long do we show a tweet ? - }, - "SegmentsWidget" : { - cinecast_version : false - }, - "createAnnotationWidget" : { - tags : [ - { - "id" : "digitalstudies", - "meta" : { - "description" : "#digital-studies" - } - }, - { - "id" : "amateur", - "meta" : { - "description" : "#amateur" - }, - } - ], - remote_tags : false, - random_tags : false, - show_from_field : false, - disable_share : false, - polemic_mode : true, /* enable polemics ? */ - polemics : [{ - "className" : "positive", - "keyword" : "++" - }, { - "className" : "negative", - "keyword" : "--" - }, { - "className" : "reference", - "keyword" : "==" - }, { - "className" : "question", - "keyword" : "??" - }], - cinecast_version : false, /* put to false to enable the platform version, true for the festival cinecast one. */ - - /* where does the widget PUT the annotations - this is a mustache template. id refers to the id of the media ans is filled - by the widget. - */ - api_endpoint_template : "", // platform_url + "/ldtplatform/api/ldt/annotations/{{id}}.json", - api_method : "PUT" - }, - "StackGraphWidget" : { - defaultcolor : "#585858", - tags : [ - { - "keywords" : [ "++" ], - "description" : "positif", - "color" : "#1D973D" - }, - { - "keywords" : [ "--" ], - "description" : "negatif", - "color" : "#CE0A15" - }, - { - "keywords" : [ "==" ], - "description" : "reference", - "color" : "#C5A62D" - }, - { - "keywords" : [ "??" ], - "description" : "question", - "color" : "#036AAE" - } - ], - streamgraph : false - } -} \ No newline at end of file