Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | chat: when enabling audio notification, play the notification sound after a half-second delay. Slimmed down the option menu buttons a bit. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
729e1fc56d701bb654c42709bdc7c15a |
| User & Date: | stephan 2021-01-03 12:41:12.594 |
Context
|
2021-01-03
| ||
| 12:51 | Add the "plunk.wav" sound. ... (check-in: 91fe5513ba user: drh tags: trunk) | |
| 12:41 | chat: when enabling audio notification, play the notification sound after a half-second delay. Slimmed down the option menu buttons a bit. ... (check-in: 729e1fc56d user: stephan tags: trunk) | |
| 11:08 | chat: added preliminary audio notification support (may require toggling that capability on for a given server in the browser). Center-aligned chat error messages and removed the 'fossil' user name from them, for compatibility with upcoming timeline-style notifications. Added wav files to the binary-glob versioned setting. ... (check-in: 99caeec643 user: stephan tags: trunk) | |
Changes
Changes to src/chat.js.
| ︙ | ︙ | |||
937 938 939 940 941 942 943 944 945 946 947 948 949 950 |
}
},{
label: "Audio notifications",
boolValue: ()=>Chat.settings.getBool('audio-notification'),
callback: function(){
const v = Chat.settings.getBool('audio-notification');
Chat.settings.set('audio-notification', !v);
F.toast.message("Audio notifications "+(v ? "disabled" : "enabled")+".");
}
}];
/**
Rebuild the menu each time it's shown so that the toggles can
show their current values.
| > > > | 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 |
}
},{
label: "Audio notifications",
boolValue: ()=>Chat.settings.getBool('audio-notification'),
callback: function(){
const v = Chat.settings.getBool('audio-notification');
Chat.settings.set('audio-notification', !v);
if(!v){
setTimeout(()=>Chat.playNewMessageSound(), 500);
}
F.toast.message("Audio notifications "+(v ? "disabled" : "enabled")+".");
}
}];
/**
Rebuild the menu each time it's shown so that the toggles can
show their current values.
|
| ︙ | ︙ |
Changes to src/default.css.
| ︙ | ︙ | |||
1632 1633 1634 1635 1636 1637 1638 |
body.chat .chat-settings-popup > span.menu-entry:hover {
}
body.chat .chat-settings-popup > span.menu-entry > .help-buttonlet {
vertical-align: middle;
}
body.chat .chat-settings-popup > span.menu-entry > span.button {
margin: 0.25em 0.2em;
| | | 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 |
body.chat .chat-settings-popup > span.menu-entry:hover {
}
body.chat .chat-settings-popup > span.menu-entry > .help-buttonlet {
vertical-align: middle;
}
body.chat .chat-settings-popup > span.menu-entry > span.button {
margin: 0.25em 0.2em;
padding: 0.25em;
flex: 1 1 auto/*eliminates dead no-click zones on the right*/;
}
body.chat .chat-settings-popup > span.menu-entry > input[type=checkbox] {
cursor: inherit;
}
/** Container for the list of /chat messages. */
body.chat #chat-messages-wrapper {
|
| ︙ | ︙ |