Skip to content

Commit

Permalink
Added mozwebsocket support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Licenser committed Feb 10, 2012
1 parent aeeb969 commit 2442fee
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
82 changes: 82 additions & 0 deletions ds_web/htdocs/css/#ds.css#
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
html {
overflow: scroll;
height: 100%;
background: black;
}
body {
margin: 0;
padding: 0;
font-family: "Lucida Console";
color: #638BD4;
width: 100%;
height: 100%;
line-height: 1.5em;
}

div.category {
overflow: auto;
border-bottom: 1px solid #638BD4;

}

div#left {
width: 210px;
height: 100%;
background: black;
border: none;
border-right: solid 1px #638BD4;
float: left;
overflow: auto;
text-align:center;
}

div#center {
margin-left: 250px;
padding: 20px 20px;
}

span.sectionhead {
color: blue;
}

textarea.code {
height: 400px;
width: 600px;
}

ul.warnings {
color: #F8952B;
}

span.sectionhead {
color: red;
}

div.category {
text-align: center;
}

div.category div{
text-align: left;
}
span.del {

float: right;
}
span.add {

float: right;
}

.title {
float: left;
}

input, textarea, select {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: solid 2px #638BD4;
background: #333333;
color: #638BD4;
}
3 changes: 3 additions & 0 deletions ds_web/htdocs/interface/ds-gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ var DS = {
FightURL = FightURL + ":" + port;
}
FightURL = FightURL + "/fight/" + name;
if ('MozWebSocket' in window) {
WebSocket = MozWebSocket;
}
if ("WebSocket" in window) {
// browser supports websockets
var ws = new WebSocket(FightURL);
Expand Down

0 comments on commit 2442fee

Please sign in to comment.