fix html export
This commit is contained in:
parent
030aaeb910
commit
f805f93110
1 changed files with 5 additions and 5 deletions
|
@ -165,6 +165,7 @@ TextArea.prototype.toSrt = function(fmt) {
|
||||||
|
|
||||||
|
|
||||||
TextArea.prototype.toHTML = function() {
|
TextArea.prototype.toHTML = function() {
|
||||||
|
this.toSrt();
|
||||||
var spans = this.spans;
|
var spans = this.spans;
|
||||||
var html = '';
|
var html = '';
|
||||||
var span, txt;
|
var span, txt;
|
||||||
|
@ -172,7 +173,7 @@ TextArea.prototype.toHTML = function() {
|
||||||
span = spans[i];
|
span = spans[i];
|
||||||
txt = '';
|
txt = '';
|
||||||
txt += '<p>\n';
|
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 += (i + 1).toString();
|
||||||
txt += "</a>\n";
|
txt += "</a>\n";
|
||||||
txt += '<br />\n';
|
txt += '<br />\n';
|
||||||
|
@ -180,10 +181,9 @@ TextArea.prototype.toHTML = function() {
|
||||||
txt += "</p>\n\n";
|
txt += "</p>\n\n";
|
||||||
html += txt;
|
html += txt;
|
||||||
}
|
}
|
||||||
return Ox.encodeUTF8(html);
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//creates new Span (tcIn and tcOut in npt format)
|
//creates new Span (tcIn and tcOut in npt format)
|
||||||
var Span = function(tcIn, tcOut, text, index) {
|
var Span = function(tcIn, tcOut, text, index) {
|
||||||
this.index = index;
|
this.index = index;
|
||||||
|
|
Loading…
Reference in a new issue