# HG changeset patch # User cavaliet # Date 1370515390 -7200 # Node ID 64e6a45730e5dcea2da38942c25a589b06b71b1e # Parent 8e016726669b83def5bfb71ea78c5e69252367cf add integration modifs diff -r 8e016726669b -r 64e6a45730e5 src/metadatacomposer/static/metadatacomposer/css/style.css --- a/src/metadatacomposer/static/metadatacomposer/css/style.css Thu Jun 06 12:42:03 2013 +0200 +++ b/src/metadatacomposer/static/metadatacomposer/css/style.css Thu Jun 06 12:43:10 2013 +0200 @@ -44,6 +44,7 @@ .project-action a:last-child{margin-right: 20px;} .chapter-widget-info{margin-bottom: 20px;} .chapter-widget form{ margin: 0;} +.form-info-general-annotation{background-color: #ecf0f1;} .chapter-widget input, .form-info-general-annotation input, .form-info-general-annotation textarea{width: 196px; max-width: 196px; } .chapter-widget textarea{width: 426px; max-width: 426px; min-width: 426px; height: 20px;-webkit-transition: height .3s ease;-moz-transition: height .3s ease;transition: height .3s ease;} .form-chapter-edit{} @@ -86,10 +87,11 @@ .close-tab:hover{color:#2c3e50;} .html-apercu{overflow: auto; margin-top: 10px;} .input-image-url{display: none;} +.slider-duration.ui-slider.ui-slider-horizontal.ui-widget.ui-widget-content.ui-corner-all{ background: #202020;} .timeline-annotations-wrap{position: relative;background-color: #202020;} .timeline-annotations{width: 460px;height: auto; position: relative; margin: 0; padding-top: 4px;} .timeline-annotations li{display: block; width: 460px;height: 10px; position: relative; padding-bottom: 4px;} -.timeline-annotations .annotation{width: 10px; height: 10px; background-color: #c0392b; position: absolute; top:0px;} +.timeline-annotations .annotation{ color:#000; text-align:center; font-size : 10px; overflow: hidden; line-height: 9px; width: 10px; height: 10px; background-color: #c0392b; position: absolute; top:0px;} ul.tagit{margin-left: 10px;-webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px;} @@ -111,6 +113,10 @@ td.image-slideshow-row img{width: 60px; height: 60px;} .project-title-editor input{margin-bottom: 0;} #templates{display: none;} + +.title-slideshow-row{word-wrap: break-word;width: 76px;} +.description-slideshow-row{word-wrap: break-word; width: 180px;} +.description-slideshow-row textarea{width: 164px; max-width: 164px; height: 164px;} /* Tangle */ .time-tangle { color: #2c3e50; cursor: w-resize; position: relative; diff -r 8e016726669b -r 64e6a45730e5 src/metadatacomposer/static/metadatacomposer/js/edition.js --- a/src/metadatacomposer/static/metadatacomposer/js/edition.js Thu Jun 06 12:42:03 2013 +0200 +++ b/src/metadatacomposer/static/metadatacomposer/js/edition.js Thu Jun 06 12:43:10 2013 +0200 @@ -1,6 +1,6 @@ -var myMedia = null, - currentChapter = null, - currentAnnotation = null, +var myMedia = undefined, + currentChapter = undefined, + currentAnnotation = undefined, chapters = [], annotations = []; @@ -9,10 +9,10 @@ var global = { colorsIndex : 0, colors : - ['#f39c12', '#2ecc71', '#3498db', '#9b59b6', - '#f1c40f', '#e67e22', '#e74c3c', - '#16a085', '#27ae60', '#2980b9', '#8e44ad', - '#d35400', '#c0392b', '#bdc3c7'] + ['#1abc9c', '#3498db', '#9b59b6', '#2ecc71', + '#f1c40f', '#ecf0f1', '#e67e22', '#e74c3c', '#95a5a6', + '#16a085', '#2980b9', '#8e44ad', '#27ae60', + '#f39c12', '#c0392b', '#bdc3c7', '#d35400', '#7f8c8d'] }; @@ -79,10 +79,10 @@ url_transform: function(src) { return [{ type: "video/mp4", - src: src.replace(/\.[\d\w]+$/,'.mp4').replace('rtmp://media.iri.centrepompidou.fr/ddc_player', 'http://media.iri.centrepompidou.fr') + src: src.replace(/\.[\d\w]+$/,'.mp4') }, { type: "video/webm", - src: src.replace(/\.[\d\w]+$/,'.webm').replace('rtmp://media.iri.centrepompidou.fr/ddc_player', 'http://media.iri.centrepompidou.fr') + src: src.replace(/\.[\d\w]+$/,'.webm') }]; } } @@ -102,47 +102,57 @@ }else{ btnCutChapter.css("left",pos); } - //annotations view - var currentAnnotationsDisplay = new Array(); - $.each(annotations, function(k, v){ - - if(v.begin <= t && v.end >= t){ - currentAnnotationsDisplay.push(v.id); - if(!$('#item-current-annotation-'+v.id).length){ - var itemAnnotation = - $('