Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pixellos committed Oct 1, 2016
2 parents 5765335 + 1a02b7f commit 471d747
Show file tree
Hide file tree
Showing 7 changed files with 207 additions and 16 deletions.
Binary file added WebLedMatrix/Content/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion WebLedMatrix/Content/bootstrap.css

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

164 changes: 164 additions & 0 deletions WebLedMatrix/Content/mxstyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
@keyframes spin{
0% {top: -20%;}
20% {top: 49%;}
80% {top: 51%;}
100% {top: 130%;}
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
#iecontent{display: none;}
}

.btn{
border-radius: 0px;
}

#matrixDataPanel .btn, #administrationSection .btn{
padding: 0px;
font-size: 17px;
width: 100px;
height: 35px;
margin-left: 0.3em;
margin-right: 0.3em;
margin-top: 5px;
margin-bottom: 5px;
}

body{
background-image: url("bg.jpg");
font-family: 'David Libre', serif;
font-size: 20px;
}

.matrixtinp{
transition: 1s;
margin-top: 10px;
margin-left: 1em;
margin-right: 1em;
margin-bottom: 5px;
}

#matrixDataPanelClickIt, #administrationPanelButton{
background-color: rgba(255,255,255,0.8);
width: 100%;
box-sizing: content-box;
transition: 0.5s;
}

#matrixDataPanelClickIt:hover , #administrationPanelButton:hover{
background-color: rgba(255,255,255,1);
transition: 0.5s;
}
.col-xs-9{
z-index: 10;
height: 230px;
position: fixed;
transition: 1s;
background-color: #848484;
width: 100%;
top: -200px;
left: 0%;
-webkit-box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
border-left: 0px solid #2C2877;
}


#separatormid{
height: 80%;
width: 20px;
position: fixed;
left: 50%;
margin-left: -5px;
top: 10%;
background: rgba(255,255,255,0);
background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(90,89,181,0.49) 51%, rgba(0,0,0,0) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(0,0,0,0)), color-stop(51%, rgba(90,89,181,0.49)), color-stop(100%, rgba(0,0,0,0)));
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(90,89,181,0.49) 51%, rgba(0,0,0,0)100%);
background: -o-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(90,89,181,0.49) 51%, rgba(0,0,0,0) 100%);
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(90,89,181,0.49) 51%, rgbargba(0,0,0,0) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff', GradientType=0 );
}

.jumbotron{
background-color: rgba(0,0,0,0);
}

#matrixSection{
min-height: 10$;
position: absolute;
top: 10%;
left: 5%;
width: 40%;
-webkit-box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
background: rgba(255,255,255, 0.2);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feffff', endColorstr='#d2ebf9',GradientType=0 );

}

#administrationSection{
min-height: 10$;
position: absolute;
top: 10%;
right: 5%;
width: 40%;
-webkit-box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
background: rgba(255,255,255, 0.2);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feffff', endColorstr='#d2ebf9',GradientType=0 );
}


footer{
position: absolute;
bottom: 0%;
}
.panel-primary{
display: none;
margin-top: 5%;
-webkit-box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
}
#status > #progress > svg{
position: fixed;
left: 50%;
width: 200px;
margin-left: -100px;
margin-top: -100px;
transition: 1s;
animation: forwards;
animation-name: spin;
animation-duration: 0.8s;
z-index: 11;

}

.container-fluid{
padding-left: 0;
padding-right: 0;
}

.col-xs-9 > .container > form{
display: none;
transition: 1s;
}
.col-xs-9:hover > .container > form{
display: initial;
transition: 1s;
}
.col-xs-9:hover {
border-left: 10px solid #2C2877;
background-color: #9897A8;
transition: 1s;
top: 0%;
}
#Name{
-webkit-box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
box-shadow: 4px 2px 22px -10px rgba(0,0,0,1;
}
#Password{
-webkit-box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
box-shadow: 4px 2px 22px -10px rgba(0,0,0,1);
}
23 changes: 13 additions & 10 deletions WebLedMatrix/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="col-xs-12" id="Status">
<div class="col-xs-3" id="progress">
</div>
<div class="col-xs-9">
<div class="col-xs-9" id="slider">
@{
Html.RenderAction("Login", "Account");
}
Expand All @@ -26,8 +26,6 @@
</table>
</div>

Login: Administrator Password: Admin1

<script type="text/javascript">
$(function() {
uiManagerHub = $.connection.uiManagerHub;
Expand All @@ -52,12 +50,12 @@ Login: Administrator Password: Admin1
///Extract method from there!
circle = new ProgressBar.Circle('#progress', {
duration: 200,
duration: 350,
color: colour,
trailColor: "#ddd",
strokeWidth: 30
});
circle.animate(1, function () { circle.animate(0.5) });
circle.animate(1, function () { circle.animate(1) });
}
uiManagerHub.client.unRegisterAllMatrices = function() {
Expand All @@ -77,7 +75,7 @@ Login: Administrator Password: Admin1
};
function addMatrice(matrix, index, array) {
$("#matrixDataPanel").append("<div class=col-xs-12 id=" + matrix.Name + stringMatrixLiteral + ">" + matrix.Name + "<input type=\"text\" id=\""+matrix.Name+"textbox\">" + "</div>");
$("#matrixDataPanel").append("<div class=col-xs-12 id=" + matrix.Name + stringMatrixLiteral + ">" + matrix.Name + "<input class=matrixtinp type=\"text\" id=\"" + matrix.Name + "textbox\">" + "</div>");
addSignalRButton(matrix.Name, function () { uiManagerHub.server.sendText($("#" + matrix.Name + "textbox").val(), matrix.Name); }, "sendtext", "Send Text",stringMatrixLiteral);
addSignalRButton(matrix.Name, function () { uiManagerHub.server.sendUri($("#" + matrix.Name + "textbox").val(), matrix.Name); }, "senduri", "Send Uri",stringMatrixLiteral);
};
Expand Down Expand Up @@ -111,7 +109,7 @@ Login: Administrator Password: Admin1
function showConnectedUsers(item, index, array) {
$("#administrationPanel").append("<div class=col-xs-12 id=" + item.UserName + stringUserLiteral + ">" + item.UserName + " Is Muted: " + item.IsMuted + "</div>");
addSignalRButton(item.UserName, function() {administrationHub.server.muteUser(item.UserName);}, "muteUser", "Mute User",stringUserLiteral);
addSignalRButton(item.UserName, function() {administrationHub.server.unMuteUser(item.UserName);}, "unMuteUser", "UnMute User",stringUserLiteral);
addSignalRButton(item.UserName, function() {administrationHub.server.unMuteUser(item.UserName);}, "unMuteUser", "UnMute User",stringUserLiteral);
}
$.connection.hub.start().done(function() {
Expand Down Expand Up @@ -148,12 +146,11 @@ Login: Administrator Password: Admin1
Matrices
</div>

<div id="matrixDataPanel" class="container-fluid" style="background-color: rosybrown; display: none">
Please notice: Unescaping works - if you want to show something at new line \n, tab \n.
<div id="matrixDataPanel" class="container-fluid" style="background-color: rgba(0,0,0,0,); display: none">
No Displays found.
</div>
</div>


<div id="administrationSection">
<div class="text-center" id="administrationPanelButton">
User Administration
Expand All @@ -166,3 +163,9 @@ Login: Administrator Password: Admin1
</div>


<div id="iecontent" style="display: none; position: fixed; bottom: 0%; right: 0%; text-align: right;">
We have detected that you are using Internet Explorer. Please bear in mind that it is not recommended to use IE<br />
due to lack of support, and You may have problems using this site. <br />
</div>

<hr id="separatormid" />
29 changes: 25 additions & 4 deletions WebLedMatrix/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,35 @@
</style>
</head>
<body>

@RenderBody()
<hr />
<footer>
<p>&copy; @DateTime.Now.Year - My ASP.NET Application</p>
</footer>


<link href="https://fonts.googleapis.com/css?family=David+Libre&subset=latin-ext" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="~/Content/mxstyle.css" id="mxstyle"/>
<!--[if gte IE 8]>
<script type="text/javascript">
document.getElementById('iecontent').style.display = 'block';
document.getElementById('progress').style.display = 'none';
document.getElementById('slider').style.display = 'block';
$("#mxstyle").attr("disabled", "disabled");
</script>
<![endif]-->
<script type="text/javascript">
var UAString = navigator.userAgent;
if (navigator.appVersion.indexOf("MSIE 10") !== -1) {
document.getElementById('iecontent').style.display = 'block';
document.getElementById('progress').style.display = 'none';
document.getElementById('slider').style.display = 'block';
$("#mxstyle").attr("disabled", "disabled");
} else if (UAString.indexOf("Trident") !== -1 && UAString.indexOf("rv:11") !== -1){
document.getElementById('iecontent').style.display = 'block';
document.getElementById('progress').style.display = 'none';
document.getElementById('slider').style.display = 'block';
$("#mxstyle").attr("disabled", "disabled");
}
</script>
<script src="http://ajax.aspnetcdn.com/ajax/signalr/jquery.signalr-2.2.0.min.js"></script>
<script src="../Matrix/signalr/hubs"></script>
@RenderSection("scripts", required: false)
Expand Down
2 changes: 2 additions & 0 deletions WebLedMatrix/WebLedMatrix.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@
<Content Include="Content\bootstrap-theme.min.css" />
<Content Include="Content\bootstrap.css" />
<Content Include="Content\bootstrap.min.css" />
<Content Include="Content\fibonacci.png" />
<Content Include="Content\mxstyle.css" />
<Content Include="favicon.ico" />
<Content Include="fonts\glyphicons-halflings-regular.svg" />
<Content Include="Global.asax" />
Expand Down
3 changes: 2 additions & 1 deletion WebLedMatrix/readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Instructions:
-Enable all WCF options at Windows Features.
-Enable net.tcp protocol at iis service manager(service right click -> manage website -> Advanced Settings)
-Set Bindings (Default Web Site -> Right Click -> Edit Bindings -> add net.tcp '808:*' )
-Set Bindings (Default Web Site -> Right Click -> Edit Bindings -> add net.tcp '808:*' )
If stil it doesnt works http://stackoverflow.com/questions/3188618/enabling-net-tcp-in-iis7

0 comments on commit 471d747

Please sign in to comment.