Skip to content

Commit

Permalink
demo pages. check if KeyChain installed modal window implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaipov committed Feb 15, 2019
1 parent 7346dde commit 6a1e5ba
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 6 deletions.
36 changes: 32 additions & 4 deletions docs/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

.container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-columns: 1fr 500px 1fr;
grid-template-rows: 131px 89px auto 50px 24px 6px;
}
.header {
Expand All @@ -56,7 +56,7 @@
grid-row: 1;
z-index: 15;
display: grid;
grid-template-columns: 1fr 300px 1fr;
grid-template-columns: 1fr 320px 1fr;
justify-content: center;
}
.header-center-logo {
Expand Down Expand Up @@ -159,9 +159,38 @@
grid-column: 1 / 4;
}

.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 250px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.4);
}

.modal-content {
text-align: center;
font-size: 1.8rem;
background-color: #fefefe;
color: rgb(85, 85, 85);
margin: auto;
padding: 20px;
border: 1px solid #888;
}

</style>
</head>
<body>
<div id="error" class="modal">
<div class="modal-content">
<p>WebSocket connection failed. Check if KeyChain is installed.</p>
</div>
</div>
<div class="container">
<div class="header">
<div></div>
Expand Down Expand Up @@ -287,8 +316,7 @@
onHash(true);
};
keychain.ws.onclose = function() {
// document.getElementById('error').style.display = 'block';
alert('WebSocket connection failed. Check if KeyChain is installed.');
document.getElementById('error').style.display = 'block';
};

function onHash(runRequestParam) {
Expand Down
32 changes: 30 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,38 @@
grid-column: 1 / 4;
}

.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 250px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.4);
}

.modal-content {
text-align: center;
font-size: 1.8rem;
background-color: #fefefe;
color: rgb(85, 85, 85);
margin: auto;
padding: 20px;
border: 1px solid #888;
}

</style>
</head>
<body>
<div id="error" class="modal">
<div class="modal-content">
<p>WebSocket connection failed. Check if KeyChain is installed.</p>
</div>
</div>
<div class="container">
<div class="header">
<div></div>
Expand Down Expand Up @@ -287,8 +316,7 @@
onHash(true);
};
keychain.ws.onclose = function() {
// document.getElementById('error').style.display = 'block';
alert('WebSocket connection failed. Check if KeyChain is installed.');
document.getElementById('error').style.display = 'block';
};

function onHash(runRequestParam) {
Expand Down

0 comments on commit 6a1e5ba

Please sign in to comment.