Skip to content

Commit fe6501b

Browse files
committed
Merge branch 'main' into gh-pages
2 parents 2c082fb + bbefd69 commit fe6501b

File tree

15 files changed

+73
-66
lines changed

15 files changed

+73
-66
lines changed

build/ableplayer.dist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ableplayer V4.7.0 with DOMPurify included */
1+
/*! ableplayer V4.8.0 with DOMPurify included */
22
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
33

44
(function (global, factory) {
@@ -5070,7 +5070,7 @@ var AblePlayerInstances = [];
50705070

50715071
var preProcessing = {
50725072
transformCSSClasses: function (vttContent) {
5073-
if ( vttContent > 1000 ) {
5073+
if ( vttContent.length > 1000 ) {
50745074
throw new Error( "Input too long" );
50755075
}
50765076
return vttContent.replace(
@@ -13321,7 +13321,7 @@ if (typeof module !== "undefined" && module.exports) {
1332113321
$('#able-vts-save').on('click',function(e) {
1332213322
e.stopPropagation();
1332313323
if ($(this).attr('value') == 'save') {
13324-
$(this).attr('value','cancel').text( this.translate( 'vtsReturn', 'Return to Editor' ) );
13324+
$(this).attr('value','cancel').text( thisObj.translate( 'vtsReturn', 'Return to Editor' ) );
1332513325
$savedTable = $('#able-vts table');
1332613326
$('#able-vts-instructions').hide();
1332713327
$('#able-vts > fieldset').hide();
@@ -13335,7 +13335,7 @@ if (typeof module !== "undefined" && module.exports) {
1333513335
$('#able-vts > fieldset').show();
1333613336
$('#able-vts').append($savedTable);
1333713337
$('#able-vts').append(thisObj.getIconCredit());
13338-
thisObj.showVtsAlert( this.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
13338+
thisObj.showVtsAlert( thisObj.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
1333913339
}
1334013340
});
1334113341
}
@@ -14022,7 +14022,7 @@ if (typeof module !== "undefined" && module.exports) {
1402214022
if ($.inArray(kind,kinds) !== -1) {
1402314023
start = $rows.eq(i).find('td').eq(2).text();
1402414024
end = $rows.eq(i).find('td').eq(3).text();
14025-
content = $rows.eq(i).find('td').eq(4).text();
14025+
content = $rows.eq(i).find('td').eq(4)[0].innerText;
1402614026
if (start !== undefined && end !== undefined) {
1402714027
vtt[kind] += start + ' --> ' + end + "\n";
1402814028
if (content !== 'undefined') {

build/ableplayer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ableplayer V4.7.0 with DOMPurify included */
1+
/*! ableplayer V4.8.0 with DOMPurify included */
22
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
33

44
(function (global, factory) {
@@ -6149,7 +6149,7 @@ var preProcessing = {
61496149
transformCSSClasses: function (vttContent) {
61506150
// This function should only be passed one cue at a time.
61516151
// Throw an error if the string checked is more than 1000 characters.
6152-
if ( vttContent > 1000 ) {
6152+
if ( vttContent.length > 1000 ) {
61536153
throw new Error( "Input too long" );
61546154
}
61556155
return vttContent.replace(
@@ -15746,7 +15746,7 @@ if (typeof module !== "undefined" && module.exports) {
1574615746
e.stopPropagation();
1574715747
if ($(this).attr('value') == 'save') {
1574815748
// replace table with WebVTT output in textarea fields (for copying/pasting)
15749-
$(this).attr('value','cancel').text( this.translate( 'vtsReturn', 'Return to Editor' ) );
15749+
$(this).attr('value','cancel').text( thisObj.translate( 'vtsReturn', 'Return to Editor' ) );
1575015750
$savedTable = $('#able-vts table');
1575115751
$('#able-vts-instructions').hide();
1575215752
$('#able-vts > fieldset').hide();
@@ -15761,7 +15761,7 @@ if (typeof module !== "undefined" && module.exports) {
1576115761
$('#able-vts > fieldset').show();
1576215762
$('#able-vts').append($savedTable);
1576315763
$('#able-vts').append(thisObj.getIconCredit());
15764-
thisObj.showVtsAlert( this.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
15764+
thisObj.showVtsAlert( thisObj.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
1576515765
}
1576615766
});
1576715767
}
@@ -16584,7 +16584,7 @@ if (typeof module !== "undefined" && module.exports) {
1658416584
if ($.inArray(kind,kinds) !== -1) {
1658516585
start = $rows.eq(i).find('td').eq(2).text();
1658616586
end = $rows.eq(i).find('td').eq(3).text();
16587-
content = $rows.eq(i).find('td').eq(4).text();
16587+
content = $rows.eq(i).find('td').eq(4)[0].innerText;
1658816588
if (start !== undefined && end !== undefined) {
1658916589
vtt[kind] += start + ' --> ' + end + "\n";
1659016590
if (content !== 'undefined') {

build/ableplayer.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/ableplayer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/separate-dompurify/ableplayer.dist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ableplayer V4.7.0 - In this file, DOMPurify is not bundled in with AblePlayer, but is a required dependency that can be added to the project via a local copy or a CDN */
1+
/*! ableplayer V4.8.0 - In this file, DOMPurify is not bundled in with AblePlayer, but is a required dependency that can be added to the project via a local copy or a CDN */
22
/*jslint node: true, browser: true, white: true, indent: 2, unparam: true, plusplus: true */
33
/*global $, jQuery */
44
"use strict";
@@ -4754,7 +4754,7 @@ var preProcessing = {
47544754
transformCSSClasses: function (vttContent) {
47554755
// This function should only be passed one cue at a time.
47564756
// Throw an error if the string checked is more than 1000 characters.
4757-
if ( vttContent > 1000 ) {
4757+
if ( vttContent.length > 1000 ) {
47584758
throw new Error( "Input too long" );
47594759
}
47604760
return vttContent.replace(
@@ -14337,7 +14337,7 @@ if (typeof module !== "undefined" && module.exports) {
1433714337
e.stopPropagation();
1433814338
if ($(this).attr('value') == 'save') {
1433914339
// replace table with WebVTT output in textarea fields (for copying/pasting)
14340-
$(this).attr('value','cancel').text( this.translate( 'vtsReturn', 'Return to Editor' ) );
14340+
$(this).attr('value','cancel').text( thisObj.translate( 'vtsReturn', 'Return to Editor' ) );
1434114341
$savedTable = $('#able-vts table');
1434214342
$('#able-vts-instructions').hide();
1434314343
$('#able-vts > fieldset').hide();
@@ -14352,7 +14352,7 @@ if (typeof module !== "undefined" && module.exports) {
1435214352
$('#able-vts > fieldset').show();
1435314353
$('#able-vts').append($savedTable);
1435414354
$('#able-vts').append(thisObj.getIconCredit());
14355-
thisObj.showVtsAlert( this.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
14355+
thisObj.showVtsAlert( thisObj.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
1435614356
}
1435714357
});
1435814358
}
@@ -15175,7 +15175,7 @@ if (typeof module !== "undefined" && module.exports) {
1517515175
if ($.inArray(kind,kinds) !== -1) {
1517615176
start = $rows.eq(i).find('td').eq(2).text();
1517715177
end = $rows.eq(i).find('td').eq(3).text();
15178-
content = $rows.eq(i).find('td').eq(4).text();
15178+
content = $rows.eq(i).find('td').eq(4)[0].innerText;
1517915179
if (start !== undefined && end !== undefined) {
1518015180
vtt[kind] += start + ' --> ' + end + "\n";
1518115181
if (content !== 'undefined') {

build/separate-dompurify/ableplayer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ableplayer V4.7.0 - In this file, DOMPurify is not bundled in with AblePlayer, but is a required dependency that can be added to the project via a local copy or a CDN */
1+
/*! ableplayer V4.8.0 - In this file, DOMPurify is not bundled in with AblePlayer, but is a required dependency that can be added to the project via a local copy or a CDN */
22
/*jslint node: true, browser: true, white: true, indent: 2, unparam: true, plusplus: true */
33
/*global $, jQuery */
44
"use strict";
@@ -4754,7 +4754,7 @@ var preProcessing = {
47544754
transformCSSClasses: function (vttContent) {
47554755
// This function should only be passed one cue at a time.
47564756
// Throw an error if the string checked is more than 1000 characters.
4757-
if ( vttContent > 1000 ) {
4757+
if ( vttContent.length > 1000 ) {
47584758
throw new Error( "Input too long" );
47594759
}
47604760
return vttContent.replace(
@@ -14351,7 +14351,7 @@ if (typeof module !== "undefined" && module.exports) {
1435114351
e.stopPropagation();
1435214352
if ($(this).attr('value') == 'save') {
1435314353
// replace table with WebVTT output in textarea fields (for copying/pasting)
14354-
$(this).attr('value','cancel').text( this.translate( 'vtsReturn', 'Return to Editor' ) );
14354+
$(this).attr('value','cancel').text( thisObj.translate( 'vtsReturn', 'Return to Editor' ) );
1435514355
$savedTable = $('#able-vts table');
1435614356
$('#able-vts-instructions').hide();
1435714357
$('#able-vts > fieldset').hide();
@@ -14366,7 +14366,7 @@ if (typeof module !== "undefined" && module.exports) {
1436614366
$('#able-vts > fieldset').show();
1436714367
$('#able-vts').append($savedTable);
1436814368
$('#able-vts').append(thisObj.getIconCredit());
14369-
thisObj.showVtsAlert( this.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
14369+
thisObj.showVtsAlert( thisObj.translate( 'vtsCancel', 'Cancelling saving. Any edits you made have been restored in the VTS table.' ) );
1437014370
}
1437114371
});
1437214372
}
@@ -15189,7 +15189,7 @@ if (typeof module !== "undefined" && module.exports) {
1518915189
if ($.inArray(kind,kinds) !== -1) {
1519015190
start = $rows.eq(i).find('td').eq(2).text();
1519115191
end = $rows.eq(i).find('td').eq(3).text();
15192-
content = $rows.eq(i).find('td').eq(4).text();
15192+
content = $rows.eq(i).find('td').eq(4)[0].innerText;
1519315193
if (start !== undefined && end !== undefined) {
1519415194
vtt[kind] += start + ' --> ' + end + "\n";
1519515195
if (content !== 'undefined') {

build/separate-dompurify/ableplayer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AblePlayer Changelog
22

3-
## 4.8.0 January 31st, 2026
3+
## 4.8.0 February 6th, 2026
44

55
### Features
66

contributing.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ We particularly appreciate help with any issues in the Issues queue that have be
2424

2525
If you are multilingual, please consider translating Able Player into another language! All labels, prompts, messages, and help text for each language maintained in a single file, contained in the */translations* directory.
2626

27-
Copy the `en.js` source file, then replace the English version of the text with your translation.
27+
Copy the `en.json` source file, then replace the English version of the text with your translation. If a string doesn't need to be changed for your language, it can be omitted from the file.
28+
29+
[Existing translations][]
2830

2931
## Building the Able Player source
3032

@@ -64,4 +66,5 @@ All contributors to Able Player are expected to follow our [published Code of Co
6466
[issues]: https://github.com/ableplayer/ableplayer/issues
6567
[npm]: https://www.npmjs.com/
6668
[develop]: https://github.com/ableplayer/ableplayer/tree/develop
67-
[donate]: https://www.joedolson.com/donate/
69+
[donate]: https://www.joedolson.com/donate/
70+
[Existing translations]: https://github.com/ableplayer/ableplayer/blob/develop/translations/

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)