Fossil SCM

Updated chat alert sounds from @sdr, lengthened to the point that FF can play them except that it's still being weird with bflat3.wav. Minor doc fixes.

stephan 2021-01-08 06:22 trunk
Commit c4179f454b5cd68f48d35656e66f28e0ff721a6252d3f3d88e6d11157bc4cacd
--- src/alerts/bflat2.wav
+++ src/alerts/bflat2.wav
cannot compute difference between binary files
11
--- src/alerts/bflat2.wav
+++ src/alerts/bflat2.wav
0 annot compute difference between binary files
1
--- src/alerts/bflat2.wav
+++ src/alerts/bflat2.wav
0 annot compute difference between binary files
1
--- src/alerts/bflat3.wav
+++ src/alerts/bflat3.wav
cannot compute difference between binary files
11
--- src/alerts/bflat3.wav
+++ src/alerts/bflat3.wav
0 annot compute difference between binary files
1
--- src/alerts/bflat3.wav
+++ src/alerts/bflat3.wav
0 annot compute difference between binary files
1
--- src/alerts/bloop.wav
+++ src/alerts/bloop.wav
cannot compute difference between binary files
11
--- src/alerts/bloop.wav
+++ src/alerts/bloop.wav
0 annot compute difference between binary files
1
--- src/alerts/bloop.wav
+++ src/alerts/bloop.wav
0 annot compute difference between binary files
1
+2 -2
--- src/chat.js
+++ src/chat.js
@@ -388,11 +388,11 @@
388388
},
389389
/**
390390
Sets the current new-message audio alert URI (must be a
391391
repository-relative path which responds with an audio
392392
file). Pass a falsy value to disable audio alerts. Returns
393
- this. This setting is persistent.
393
+ this. This setting is persistent. Returns this.
394394
*/
395395
setNewMessageSound: function f(uri){
396396
delete this.playNewMessageSound.audio;
397397
this.playNewMessageSound.uri = uri;
398398
this.settings.set('audible-alert', !!uri);
@@ -407,11 +407,11 @@
407407
});
408408
if(window.innerWidth<window.innerHeight){
409409
/* Alignment of 'my' messages: right alignment is conventional
410410
for mobile chat apps but can be difficult to read in wide
411411
windows (desktop/tablet landscape mode), so we default to a
412
- layout based on the apparently "orientation" of the window:
412
+ layout based on the apparent "orientation" of the window:
413413
tall vs wide. Can be toggled via settings popup. */
414414
document.body.classList.add('my-messages-right');
415415
}
416416
if(cs.settings.getBool('monospace-messages',false)){
417417
document.body.classList.add('monospace-messages');
418418
--- src/chat.js
+++ src/chat.js
@@ -388,11 +388,11 @@
388 },
389 /**
390 Sets the current new-message audio alert URI (must be a
391 repository-relative path which responds with an audio
392 file). Pass a falsy value to disable audio alerts. Returns
393 this. This setting is persistent.
394 */
395 setNewMessageSound: function f(uri){
396 delete this.playNewMessageSound.audio;
397 this.playNewMessageSound.uri = uri;
398 this.settings.set('audible-alert', !!uri);
@@ -407,11 +407,11 @@
407 });
408 if(window.innerWidth<window.innerHeight){
409 /* Alignment of 'my' messages: right alignment is conventional
410 for mobile chat apps but can be difficult to read in wide
411 windows (desktop/tablet landscape mode), so we default to a
412 layout based on the apparently "orientation" of the window:
413 tall vs wide. Can be toggled via settings popup. */
414 document.body.classList.add('my-messages-right');
415 }
416 if(cs.settings.getBool('monospace-messages',false)){
417 document.body.classList.add('monospace-messages');
418
--- src/chat.js
+++ src/chat.js
@@ -388,11 +388,11 @@
388 },
389 /**
390 Sets the current new-message audio alert URI (must be a
391 repository-relative path which responds with an audio
392 file). Pass a falsy value to disable audio alerts. Returns
393 this. This setting is persistent. Returns this.
394 */
395 setNewMessageSound: function f(uri){
396 delete this.playNewMessageSound.audio;
397 this.playNewMessageSound.uri = uri;
398 this.settings.set('audible-alert', !!uri);
@@ -407,11 +407,11 @@
407 });
408 if(window.innerWidth<window.innerHeight){
409 /* Alignment of 'my' messages: right alignment is conventional
410 for mobile chat apps but can be difficult to read in wide
411 windows (desktop/tablet landscape mode), so we default to a
412 layout based on the apparent "orientation" of the window:
413 tall vs wide. Can be toggled via settings popup. */
414 document.body.classList.add('my-messages-right');
415 }
416 if(cs.settings.getBool('monospace-messages',false)){
417 document.body.classList.add('monospace-messages');
418

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button