1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-14 04:35:57 +01:00

Set temporary placeholder for input area.

Co-authored-by: Juliusz Chroboczek <jch@irif.fr>
This commit is contained in:
Alain Takoudjou 2020-12-11 18:28:17 +01:00 committed by Juliusz Chroboczek
parent 3faf46a1d7
commit 6a403e1fd9
2 changed files with 9 additions and 0 deletions

View file

@ -328,6 +328,10 @@ textarea.form-reply {
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
} }
.form-reply::placeholder {
opacity: .7;
}
.select { .select {
display: block; display: block;
width: 100%; width: 100%;

View file

@ -1481,6 +1481,11 @@ async function gotJoined(kind, group, perms, message) {
displayUsername(); displayUsername();
setButtonsVisibility(); setButtonsVisibility();
let input = /** @type{HTMLTextAreaElement} */
(document.getElementById('input'));
input.placeholder = 'Type /help for help';
setTimeout(() => {input.placeholder = '';}, 8000);
this.request(getSettings().request); this.request(getSettings().request);
if(serverConnection.permissions.present && !findUpMedia('local')) { if(serverConnection.permissions.present && !findUpMedia('local')) {