client/js/ldtjson-bin.js
changeset 114 110f99eb417e
parent 113 fac7354c55d2
child 132 860340d4c645
equal deleted inserted replaced
113:fac7354c55d2 114:110f99eb417e
    74         _html += _this.tagTemplate({
    74         _html += _this.tagTemplate({
    75             ldt_platform: _this.ldt_platform,
    75             ldt_platform: _this.ldt_platform,
    76             title: _title,
    76             title: _title,
    77             htitle: highlight(_title),
    77             htitle: highlight(_title),
    78             encodedtitle : encodeURIComponent(_title),
    78             encodedtitle : encodeURIComponent(_title),
    79             static_url: _this.renkan.static_url
    79             static_url: _this.renkan.options.static_url
    80         })
    80         })
    81     });
    81     });
    82     _html += '<li><h3>Annotations</h3></li>';
    82     _html += '<li><h3>Annotations</h3></li>';
    83     Rkns._(_this.data.annotations).map(function(_annotation) {
    83     Rkns._(_this.data.annotations).map(function(_annotation) {
    84         var _description = _annotation.content.description,
    84         var _description = _annotation.content.description,
    89         count++;
    89         count++;
    90         var _duration = _annotation.end - _annotation.begin,
    90         var _duration = _annotation.end - _annotation.begin,
    91             _img = (
    91             _img = (
    92                 (_annotation.content && _annotation.content.img && _annotation.content.img.src)
    92                 (_annotation.content && _annotation.content.img && _annotation.content.img.src)
    93                 ? _annotation.content.img.src
    93                 ? _annotation.content.img.src
    94                 : ( _duration ? _this.renkan.static_url+"img/ldt-segment.png" : _this.renkan.static_url+"img/ldt-point.png" )
    94                 : ( _duration ? _this.renkan.options.static_url+"img/ldt-segment.png" : _this.renkan.options.static_url+"img/ldt-point.png" )
    95             );
    95             );
    96         _html += _this.annotationTemplate({
    96         _html += _this.annotationTemplate({
    97             ldt_platform: _this.ldt_platform,
    97             ldt_platform: _this.ldt_platform,
    98             title: _title,
    98             title: _title,
    99             htitle: highlight(_title),
    99             htitle: highlight(_title),
   103             end: convertTC(_annotation.end),
   103             end: convertTC(_annotation.end),
   104             duration: convertTC(_duration),
   104             duration: convertTC(_duration),
   105             mediaid: _annotation.media,
   105             mediaid: _annotation.media,
   106             annotationid: _annotation.id,
   106             annotationid: _annotation.id,
   107             image: _img,
   107             image: _img,
   108             static_url: _this.renkan.static_url
   108             static_url: _this.renkan.options.static_url
   109         });
   109         });
   110     });
   110     });
   111     
   111     
   112     this.main_$.html(_html);
   112     this.main_$.html(_html);
   113     if (searchstr && count) {
   113     if (searchstr && count) {
   218         var _duration = _segment.duration,
   218         var _duration = _segment.duration,
   219             _begin = _segment.start_ts,
   219             _begin = _segment.start_ts,
   220             _end = + _segment.duration + _begin
   220             _end = + _segment.duration + _begin
   221             _img = (
   221             _img = (
   222                 _duration
   222                 _duration
   223                 ? _this.renkan.static_url + "img/ldt-segment.png"
   223                 ? _this.renkan.options.static_url + "img/ldt-segment.png"
   224                 : _this.renkan.static_url + "img/ldt-point.png"
   224                 : _this.renkan.options.static_url + "img/ldt-point.png"
   225             );
   225             );
   226         _html += _this.segmentTemplate({
   226         _html += _this.segmentTemplate({
   227             ldt_platform: _this.ldt_platform,
   227             ldt_platform: _this.ldt_platform,
   228             title: _title,
   228             title: _title,
   229             htitle: highlight(_title),
   229             htitle: highlight(_title),