diff -r 38b65761a7d5 -r 43629caa77bc src/js/defaults.js --- a/src/js/defaults.js Fri Apr 20 19:13:11 2012 +0200 +++ b/src/js/defaults.js Mon Apr 23 19:11:08 2012 +0200 @@ -3,6 +3,8 @@ IriSP.libFiles = { defaultDir : "js/libs/", inDefaultDir : { + underscore : "underscore.js", + Mustache : "mustache.js", jQuery : "jquery.min.js", jQueryUI : "jquery-ui.min.js", swfObject : "swfobject.js", @@ -27,6 +29,8 @@ useCdn : false } +IriSP.widgetsDir = 'widgets'; + IriSP.guiDefaults = { width : 640, container : 'LdtPlayer', @@ -34,9 +38,6 @@ } IriSP.widgetsDefaults = { - "PlayerWidget" : { - - }, "AnnotationsWidget" : { "share_text" : "I'm watching " }, @@ -44,11 +45,6 @@ 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 ? }, - "SliderWidget" : { - minimized_height : 4, - maximized_height : 10, - minimize_timeout : 1500 // time before minimizing slider after mouseout - }, "SegmentsWidget" : { cinecast_version : false }, @@ -93,33 +89,6 @@ api_endpoint_template : "", // platform_url + "/ldtplatform/api/ldt/annotations/{{id}}.json", api_method : "PUT" }, - "SparklineWidget" : { - lineColor : "#7492b4", - fillColor : "#aeaeb8", - lineWidth : 2 - }, - "AnnotationsListWidget" : { - /* the platform generates some funky urls. We replace them afterwards to point to the - correct place - this setting will probably be overwritten by the platform - implementers. - Note that the player has to replace the variables between {{ and }} by its own values. - */ - ajax_url : false, - /* URL when the annotations are to be reloaded from an LDT-like segment API - * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=? - */ - ajax_granularity : 300000, /* how much ms should we look before and after the current timecode */ - default_thumbnail : "http://ldt.iri.centrepompidou.fr/static/site/ldt/css/imgs/video_sequence.png", - foreign_url : "", - /* URL when the annotation is not in the current project, - * e.g. http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}} - */ - cinecast_version : false, - annotation_type : false, - refresh_interval : 0, - limit_count : 10, - newest_first : false - }, "StackGraphWidget" : { defaultcolor : "#585858", tags : [ @@ -145,39 +114,5 @@ } ], streamgraph : false - }, - "PolemicWidget" : { - element_width : 5, - element_height : 5, - annotation_type : "tweet", - defaultcolor : "#585858", - foundcolor : "#fc00ff", - tags : [ - { - "keywords" : [ "++" ], - "description" : "positif", - "color" : "#1D973D" - }, - { - "keywords" : [ "--" ], - "description" : "negatif", - "color" : "#CE0A15" - }, - { - "keywords" : [ "==" ], - "description" : "reference", - "color" : "#C5A62D" - }, - { - "keywords" : [ "??" ], - "description" : "question", - "color" : "#036AAE" - } - ], - requires : [ - { - type: "TooltipWidget" - } - ] } } \ No newline at end of file