[go: nahoru, domu]

Skip to content

Commit

Permalink
Use transition animation while loading
Browse files Browse the repository at this point in the history
This shows the transition animation while loading, so users can see
something is going on.
  • Loading branch information
DirectXMan12 committed Mar 21, 2017
1 parent dfae320 commit e25f9c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ select:active {
justify-content: center;
flex-direction: column;
}
:root.noVNC_loading #noVNC_transition,
:root.noVNC_connecting #noVNC_transition,
:root.noVNC_disconnecting #noVNC_transition,
:root.noVNC_reconnecting #noVNC_transition {
Expand Down
1 change: 1 addition & 0 deletions app/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ const UI = {
UI.updateVisualState();

document.getElementById('noVNC_setting_host').focus();
document.documentElement.classList.remove("noVNC_loading");

var autoconnect = WebUtil.getConfigVar('autoconnect', false);
if (autoconnect === 'true' || autoconnect == '1') {
Expand Down
2 changes: 1 addition & 1 deletion vnc.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html class="noVNC_loading">
<head>

<!--
Expand Down

0 comments on commit e25f9c4

Please sign in to comment.