fix html export

This commit is contained in:
j 2016-02-29 17:45:40 +05:30
parent 030aaeb910
commit f805f93110

View file

@ -165,6 +165,7 @@ TextArea.prototype.toSrt = function(fmt) {
TextArea.prototype.toHTML = function() {
this.toSrt();
var spans = this.spans;
var html = '';
var span, txt;
@ -172,7 +173,7 @@ TextArea.prototype.toHTML = function() {
span = spans[i];
txt = '';
txt += '<p>\n';
txt += '<a href="https://pad.ma/PADMA_VIDEO_ID/' + Ox.formatDuration(span.tcInMs, 3) + "-" + Ox.formatDuration(span.tcOutMs, 3) + '">';
txt += '<a href="https://pad.ma/PADMA_VIDEO_ID/' + Ox.formatDuration(span.tcInMs, 3) + "," + Ox.formatDuration(span.tcOutMs, 3) + '">';
txt += (i + 1).toString();
txt += "</a>\n";
txt += '<br />\n';
@ -180,10 +181,9 @@ TextArea.prototype.toHTML = function() {
txt += "</p>\n\n";
html += txt;
}
return Ox.encodeUTF8(html);
return html;
}
//creates new Span (tcIn and tcOut in npt format)
var Span = function(tcIn, tcOut, text, index) {
this.index = index;