Skip to content

Commit

Permalink
Merge branch 'master' into ready-ack
Browse files Browse the repository at this point in the history
  • Loading branch information
rhussmann committed Aug 29, 2010
2 parents fdbade9 + 9212087 commit 0b87fba
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
33 changes: 24 additions & 9 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ h3 {
background-color: rgba(0,0,0,.2);
padding: 10px;
margin: 10px;
border: 4px double rgba(0, 69, 183, 0.4);
border: 4px double rgba(255,255, 255, 0.2);
border-bottom-left-radius: 5px 5px;
border-bottom-right-radius: 5px 5px;
border-top-left-radius: 5px 5px;
Expand Down Expand Up @@ -267,7 +267,7 @@ table {
font-family: "Lucida Sans Typewriter", Consolas, Courier, "Andale Mono", Monaco, monospace;
font-size: 1em;
margin: 0 auto;
border: 4px double rgba(0, 69, 183, 0.4);
border: 4px double rgba(255,255, 255, 0.2);
border-bottom-left-radius: 5px 5px;
border-bottom-right-radius: 5px 5px;
border-top-left-radius: 5px 5px;
Expand Down Expand Up @@ -427,13 +427,28 @@ img {
color: red;
}
#yourturn {
position: fixed;
top: 50%;
right: 50%;
width: 400px;
height: 120px;
background-image: url("/images/event-yourturn.png");
/*display: none;*/
position: fixed;
top: 50%;
left: 50%;
margin-left: -230px;
margin-top: -90px;
width: 400px;
height: 120px;
border: 4px double rgba(255,255, 255, 0.2);
border-bottom-left-radius: 5px 5px;
border-bottom-right-radius: 5px 5px;
border-top-left-radius: 5px 5px;
border-top-right-radius: 5px 5px;
box-shadow: rgba(0,0,0, .8) 0px 0px 8px;
-moz-box-shadow: rgba(0,0,0, .8) 0px 0px 8px;
-webkit-box-shadow: rgba(0,0,0, .8) 0px 0px 8px;
background-image: url("../images/event-yourturn.png");
background-color: #0045b7;
background-color: rgba(0,69,183,.9);
background-repeat: no-repeat;
padding: 30px;
background-position: 50% 50%;
display: none;
}


Expand Down
15 changes: 13 additions & 2 deletions public/js/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
global.dread = global.dread || {};
var dread = global.dread;

// Handle disconnects
if (Modernizr.sessionStorage) {
if (sessionStorage['username']) {
dread.username = sessionStorage['username'];
dread.game = sessionStorage['username'];
}
if (sessionStorage['game']) {
dread.game = sessionStorage['game'];
}
}

// Gargamello
if (!("Message" in dread)) {
dread.Message = function(type, msg) {
Expand Down Expand Up @@ -46,8 +57,8 @@
yourturn : function(message) {
var msg = message.msg || "";
console.log("msg");
alert("msg");

$("#yourturn").slideDown();
alert(msg);
}
};

Expand Down
2 changes: 2 additions & 0 deletions public/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@ <h3>Scoreboard</h3>

</article>
</div>

<div id="yourturn"></div>
</body>
</html>

0 comments on commit 0b87fba

Please sign in to comment.