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:
parent
3faf46a1d7
commit
6a403e1fd9
2 changed files with 9 additions and 0 deletions
|
@ -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%;
|
||||||
|
|
|
@ -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')) {
|
||||||
|
|
Loading…
Reference in a new issue