@@ -172,10 +172,10 @@ const RightArrowKey = 39; // maybe also 29 & 57376
172
172
173
173
//////////////////////////////
174
174
//
175
- // InitializeWorklistFlat -- Create a flattened list of works. Two
176
- // (global) objects will be created from the WORKLIST object:
177
- // (1) WORKLISTrecent -- an array which is a list of works
178
- // reverse-sorted by date added. Also stored in
175
+ // InitializeWorklistFlat -- Create a flattened list of works. Two
176
+ // (global) objects will be created from the WORKLIST object:
177
+ // (1) WORKLISTrecent -- an array which is a list of works
178
+ // reverse-sorted by date added. Also stored in
179
179
// sessionStorage.WORKLISTrecent.
180
180
// (2) WORKLISTjrpid -- an object which contains works indexed by
181
181
// JRP ID. Also stored in sessionStorage.WORKLISTjrpid.
@@ -228,7 +228,7 @@ function byReverseAddDate(a, b) {
228
228
if ( ! date2 ) { date2 = b . ad ; }
229
229
if ( ! date1 ) { date1 = 0 ; }
230
230
if ( ! date2 ) { date2 = 0 ; }
231
- if ( date1 > date2 ) { return - 1 ; }
231
+ if ( date1 > date2 ) { return - 1 ; }
232
232
if ( date1 < date2 ) { return + 1 ; }
233
233
if ( a . id < b . id ) { return - 1 ; }
234
234
if ( a . id > b . id ) { return + 1 ; }
@@ -250,7 +250,7 @@ function GetDataFile(jrpid, prefix, action) {
250
250
if ( typeof sessionStorage [ variable ] != 'undefined' ) {
251
251
return sessionStorage [ variable ] ;
252
252
}
253
-
253
+
254
254
InitializeWorklistFlat ( ) ;
255
255
256
256
// Get the first section's incipit if a multi-section work:
@@ -288,7 +288,7 @@ function GetDataFileAsync(jrpid, prefix, action, callback) {
288
288
if ( typeof sessionStorage [ variable ] != 'undefined' ) {
289
289
return sessionStorage [ variable ] ;
290
290
}
291
-
291
+
292
292
InitializeWorklistFlat ( ) ;
293
293
294
294
// Get the first section's incipit if a multi-section work:
@@ -324,7 +324,7 @@ function GetDataFileAsync(jrpid, prefix, action, callback) {
324
324
// XMLHttpRequest object:
325
325
// https://www.w3.org/TR/2007/WD-XMLHttpRequest-20070618
326
326
// https://xhr.spec.whatwg.org
327
- //
327
+ //
328
328
// See:
329
329
// https://codingforums.com/ajax-design/123705-make-script-wait-until-request-comes-back.html
330
330
//
@@ -425,14 +425,14 @@ function GetComposerOptions() {
425
425
426
426
//////////////////////////////
427
427
//
428
- // GetGenreOptions -- Return an option list of genres.
429
- // This is used to fill in the Composer/Repertory section list
428
+ // GetGenreOptions -- Return an option list of genres.
429
+ // This is used to fill in the Composer/Repertory section list
430
430
// in forms on various webpages. If there is an input repe
431
431
// Mass, Motet, or Song.
432
432
//
433
433
434
434
function GetGenreOptions ( repertory ) {
435
- if ( ( typeof repertory === 'undefined' ) ||
435
+ if ( ( typeof repertory === 'undefined' ) ||
436
436
( repertory == null ) || ( repertory == '' ) ) {
437
437
// Avoiding displaying the genre list without a repertory.
438
438
// This is because analyses mostly need to be limited to a single repertory
@@ -488,8 +488,8 @@ function GetGenreOptions(repertory) {
488
488
489
489
//////////////////////////////
490
490
//
491
- // GetGenreBrowseOptions -- Return an option list of genres.
492
- // This is used to fill in the Composer/Repertory section list
491
+ // GetGenreBrowseOptions -- Return an option list of genres.
492
+ // This is used to fill in the Composer/Repertory section list
493
493
// in forms on various webpages. If there is an input repe
494
494
// Mass, Motet, or Song.
495
495
//
@@ -540,8 +540,8 @@ function GetGenreBrowseOptions() {
540
540
// GetWorkOptions -- Return an option list of works (for a specific
541
541
// repertory and genre. The repertory is required, the genre
542
542
// is optional (show all works regardless of genre in that case).
543
- // This is used to fill in the Work section list in forms on
544
- // various webpages.
543
+ // This is used to fill in the Work section list in forms on
544
+ // various webpages.
545
545
//
546
546
547
547
function GetWorkOptions ( repertory , genre ) {
@@ -683,7 +683,6 @@ function PlayAudioFile(jrpid, element, starttime) {
683
683
TurnOffAllNotes ( ) ;
684
684
}
685
685
686
-
687
686
var audiobutton ;
688
687
if ( jrpid != AUDIOjrpid ) {
689
688
if ( ! ! AUDIOid ) {
@@ -703,13 +702,7 @@ function PlayAudioFile(jrpid, element, starttime) {
703
702
AUDIOid = element . id ;
704
703
var source = '' ;
705
704
// Can't have seekable dynamic content in audio element:
706
- //source += '<source src="/data?a=mp3&id=' + jrpid + '" ';
707
- if ( window . location . href . match ( / t a s s o / i) ) {
708
- source += '<source src="https://josquin.stanford.edu/audio/mp3/' + jrpid + '.mp3" ' ;
709
- } else {
710
- source += '<source src="https://josquin.stanford.edu/audio/mp3/' + jrpid + '.mp3" ' ;
711
- }
712
- source += 'type="audio/mpeg"/>\n' ;
705
+ source += `<source src="{{site.tasso_data_url_new}}/${ jrpid } .mp3" type="audio/mpeg"/>\n` ;
713
706
AUDIO . innerHTML = source ;
714
707
715
708
AUDIOjrpid = jrpid ;
@@ -901,7 +894,7 @@ function ClearWorklistCache() {
901
894
902
895
//////////////////////////////
903
896
//
904
- // audioStoppedAction --
897
+ // audioStoppedAction --
905
898
//
906
899
907
900
function audioStoppedAction ( event ) {
@@ -967,7 +960,7 @@ function GetRimeTitle(rimenum, rimelist) {
967
960
968
961
//////////////////////////////
969
962
//
970
- // GetAllSettingEntry --
963
+ // GetAllSettingEntry --
971
964
//
972
965
973
966
function GetAllSettingEntry ( catalognum , worklist ) {
@@ -998,7 +991,7 @@ function GetAllSettingEntry(catalognum, worklist) {
998
991
999
992
//////////////////////////////
1000
993
//
1001
- // GetAllSettingEntryList --
994
+ // GetAllSettingEntryList --
1002
995
//
1003
996
1004
997
function GetAllSettingEntryList ( catalognum , worklist ) {
@@ -1033,7 +1026,7 @@ function GetAllSettingEntryList(catalognum, worklist) {
1033
1026
1034
1027
//////////////////////////////
1035
1028
//
1036
- // GetRimeVerseEntry --
1029
+ // GetRimeVerseEntry --
1037
1030
//
1038
1031
1039
1032
@@ -1405,7 +1398,7 @@ function ExternalLinksToNewTab() {
1405
1398
///////////////////////////////////////////////////////////////////////////
1406
1399
//
1407
1400
// TASSODATA PROCESSING FUNCTIONS
1408
- //
1401
+ //
1409
1402
1410
1403
//////////////////////////////
1411
1404
//
0 commit comments