# HG changeset patch # User durandn # Date 1435935633 -7200 # Node ID be314c4ea4ac88dfee463c693f7554dec4beb5bf # Parent 4fddc765a716ef1acba0892657777a77d46fba15 New widget CurrentSegmentInfobox that displays infos on currently viewed Segment (future features will allow for possibility to edit title descriptions and tags for current segment) diff -r 4fddc765a716 -r be314c4ea4ac src/widgets/CurrentSegmentInfobox.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/widgets/CurrentSegmentInfobox.css Fri Jul 03 17:00:33 2015 +0200 @@ -0,0 +1,48 @@ +.Ldt-CurrentSegmentInfobox{ + background: url(img/pinstripe.png); + width: 535px; + max-height: 280px; + margin: 0px; + margin-top: 4px; + border-style: solid; + border-width: 1px; + border-color: #b7b7b7; +} + +.Ldt-CurrentSegmentInfobox-Element{ + margin: 5px; + vertical-align: top; +} + +.Ldt-CurrentSegmentInfobox-Tags-Ul{ + list-style: none; + margin: 2px; +} + +.Ldt-CurrentSegmentInfobox-Tags-Li{ + display: inline-block; + background-color: #ffffff; + margin: 2px; + padding: 2px; + border: solid 1px; + border-color: #aeaeae; +} + +.Ldt-CurrentSegmentInfobox-Title{ + color: #0068c4; + font-size: 15px; + font-weight: bold; +} + +.Ldt-CurrentSegmentInfobox-Description{ + font-size: 13px; + font-weight: bold; +} + +.Ldt-CurrentSegmentInfobox-Tags{ +} + +.Ldt-CurrentSegmentInfobox-NoSegment{ + font-size: 15px; + font-weight: bold; +} \ No newline at end of file diff -r 4fddc765a716 -r be314c4ea4ac src/widgets/CurrentSegmentInfobox.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/widgets/CurrentSegmentInfobox.js Fri Jul 03 17:00:33 2015 +0200 @@ -0,0 +1,76 @@ +/* Widget displays info on the current segment, with possibility of config for editing description and tags */ + +IriSP.Widgets.CurrentSegmentInfobox = function(player, config){ + IriSP.Widgets.Widget.call(this, player, config); +}; + +IriSP.Widgets.CurrentSegmentInfobox.prototype = new IriSP.Widgets.Widget(); + +IriSP.Widgets.CurrentSegmentInfobox.prototype.defaults = { + annotation_type: "chap", + readonly: true, + empty_message: false +}; + +IriSP.Widgets.CurrentSegmentInfobox.prototype.template = + "