Skip to content

Commit

Permalink
Style Issues Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathy365 committed May 4, 2020
1 parent aeabd57 commit 1b74656
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 28 deletions.
20 changes: 12 additions & 8 deletions Myrtille.Web/Default.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

</head>

<body onload="startMyrtille(
<body class="web-rdp-session-body" onload="startMyrtille(
<%=(RemoteSession != null ? "'" + RemoteSession.State.ToString().ToUpper() + "'" : "null")%>,
getToggleCookie((parent != null && window.name != '' ? window.name + '_' : '') + 'stat'),
getToggleCookie((parent != null && window.name != '' ? window.name + '_' : '') + 'debug'),
Expand Down Expand Up @@ -319,10 +319,6 @@
<input type="hidden" id="dummy_data" value=""/>
</form>

<div runat="server" id="certificateDiv" visible="False">
Certificate accepted.
</div>

<div runat="server" id="loadingDiv" visible="False">
<div class="sec-loading-wrap">
<div class="sec-loading-circle">
Expand All @@ -333,18 +329,26 @@
<label>●</label>
<label>●</label>
</div>
<div class="loading-text">Loading...</div>
<div class="loading-text">Loading</div>
</div>
</div>

<div class="container webrdp-container-body" style="display:none;" id="errorMessageDialogEle">
<div id="status" class="error-message-div">
<div id="status" class="dialog-message-div">
<span id="webrdp-error-icon" class="webrdp-error-icon"></span>
<span id="webrdp-error-text" class="webrdp-error-text">Connection failed.</span>
<span id="webrdp-error-text" class="webrdp-dialog-message-text">Connection failed.</span>
<span id="webrdp-back-home-btn" class="webrdp-back-btn" onclick="window.close();">Close</span>
</div>
</div>

<div runat="server" visible="False" class="container webrdp-container-body" id="certificateDiv">
<div class="success-message-div dialog-message-div">
<span class="webrdp-success-icon"></span>
<span class="webrdp-dialog-message-text">Certificate Accepted.</span>
<span class="webrdp-back-btn" onclick="disableUserClose=false; window.history.back(); window.history.back(); window.close();">Close</span>
</div>
</div>

<div runat="server" id="remoteOperationsDivWrap" visible="False">
<div runat="server" id="remoteOperationsDiv">
<div id="remoteOperationsHeader" title="Click to move"><p>. . .</p><p>. . .</p></div>
Expand Down
7 changes: 5 additions & 2 deletions Myrtille.Web/Default.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,11 @@ private bool ConnectRemoteServer()
}
else
{
//userProfileId = (long)connectionDetails["user_profile_id"];
//userSessionId = (long)connectionDetails["user_session_id"];
if (connectionDetails["user_profile_id"] != null && connectionDetails["user_session_id"] != null)
{
userProfileId = (long)connectionDetails["user_profile_id"];
userSessionId = (long)connectionDetails["user_session_id"];
}
connectionDetails = (JObject)connectionDetails["details"];
loginServer = (string)connectionDetails["address"];
loginDomain = "";
Expand Down
8 changes: 4 additions & 4 deletions Myrtille.Web/Default.aspx.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 56 additions & 12 deletions Myrtille.Web/css/securden.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.container.webrdp-container-body {
.web-rdp-session-body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"
}

.container.webrdp-container-body {
position: relative;
text-align: center;
}
Expand Down Expand Up @@ -33,11 +37,41 @@ span.webrdp-error-icon {
transform: rotate(45deg);
}

span.webrdp-success-icon {
font-size: 11px;
list-style-type: none;
padding: 0;
position: absolute;
left: 50px;
top: 30px;
height: 27px;
width: 27px;
opacity: 1;
border-radius: 50px;
background-color: #4bad20;
}

span.webrdp-success-icon:before {
content: " ";
width: .3em;
height: .9em;
border: solid #fff;
border-width: 0 .3em .3em 0;
position: absolute;
left: 0.92em;
top: 32%;
margin-top: -.2em;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}

.webrdp-back-btn:hover {
background-color: #e92a2a;
}

.error-message-div {
.dialog-message-div {
z-index: 100;
color: #fff;
text-align: center;
Expand All @@ -54,7 +88,7 @@ span.webrdp-error-icon {
box-shadow: 0px 0px 30px rgba(169, 169, 169, .5);
}

span.webrdp-error-text {
span.webrdp-dialog-message-text {
display: block;
color: #222222;
font-weight: 500;
Expand All @@ -70,6 +104,10 @@ span.webrdp-error-text {
font-size: 15px;
}

.success-message-div .webrdp-back-btn {
background-color: #4bad20;
}

.label-text {
float: left;
line-height: 40px;
Expand Down Expand Up @@ -102,11 +140,15 @@ span.webrdp-error-text {
margin-top: 10px;
}

.sec-loading-circle label {
font-size: 20px;
opacity: 0;
display:inline-block;
}
.sec-loading-circle label {
font-size: 20px;
opacity: 0;
display: inline-block;
width: auto;
float: none;
margin: 0;
}

.loading-text {
width: 100%;
text-align: center;
Expand Down Expand Up @@ -198,13 +240,13 @@ span.webrdp-error-text {
}

#remoteOperationsHeader {
padding: 2px 0;
padding: 0 0 1px 0;
cursor: move;
z-index: 10;
background-color: #2196F3;
color: #fff;
float: left;
height: 24px;
height: 19px;
box-sizing: border-box;
margin-top: -1px;
width: 100%;
Expand All @@ -215,7 +257,7 @@ span.webrdp-error-text {
position: relative;
float: left;
width: 100%;
line-height: 7px;
line-height: 5px;
padding: 0;
margin: 0;
letter-spacing: 3px;
Expand All @@ -227,8 +269,10 @@ span.webrdp-error-text {
background-color: #f1f1f1;
text-align: center;
width: 100%;
font-size: 14px;
font-size: 13px;
cursor: pointer;
color: #333333;
border-bottom: 1px solid #ddd;
}

.remote-oper-label-text:hover {
Expand Down
4 changes: 2 additions & 2 deletions Myrtille.Web/js/securden.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ function dragElement(elmnt) {
pos4 = e.clientY;
// set the element's new position:
var topPixel = (elmnt.offsetTop - pos2)
if (topPixel > (clientHeight - 145)) {
topPixel = clientHeight - 145;
if (topPixel > (clientHeight - 143)) {
topPixel = clientHeight - 143;
} else if (topPixel < 0) {
topPixel = 0;
}
Expand Down

0 comments on commit 1b74656

Please sign in to comment.