Help message in editor, empty container before loading session
This commit is contained in:
parent
72734da6e5
commit
b37c41693b
4 changed files with 13 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -63,7 +63,7 @@ ipc.on('sessionOpen',function(event,data){
|
|||
var session = JSON.parse(data)
|
||||
|
||||
$('#lobby').remove()
|
||||
$('#container').append('<div id="loading"><div class="spinner"></div></div>')
|
||||
$('#container').empty().append('<div id="loading"><div class="spinner"></div></div>')
|
||||
setTimeout(function(){
|
||||
init(session,function(){$('#loading').hide()})
|
||||
},25)
|
||||
|
|
|
|||
|
|
@ -465,6 +465,11 @@ enableEditor = function(){
|
|||
$('.editor-container').html(form)
|
||||
})
|
||||
|
||||
$('.editor-container').html(`
|
||||
<p class="help">
|
||||
Click to a widget or on a tab title to edit.
|
||||
</p>
|
||||
`)
|
||||
$('.enable-editor').addClass('on')
|
||||
$('.disable-editor').removeClass('on')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -321,6 +321,12 @@ body {
|
|||
.editor .form {
|
||||
margin-top: 10rem;
|
||||
}
|
||||
.help {
|
||||
margin-top:10rem;
|
||||
font-size: .75em;
|
||||
text-align: center;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue