octo front

This commit is contained in:
Galen Wolfe-Pauly 2015-05-19 16:13:22 -07:00
parent d51e75fdb2
commit c6aaee6468
3 changed files with 20 additions and 9 deletions

View File

@ -21,13 +21,12 @@
==
;div#vs: vs
;div#user
;div.as;
;div.sig: ~
;div.ship;
;div.as;
==
==
;div#bord;
;div#whom;
;script(type "text/javascript", src "/home/pub/octo/src/main.js");
==
==

View File

@ -1,6 +1,5 @@
#what,
#bord,
#whom {
#bord {
width: 600px;
text-align: center;
position: absolute;
@ -16,11 +15,11 @@
height: 600px;
position: absolute;
top: 72px;
opacity: .6;
}
#whom {
color: red;
top: 636px;
.turn #bord {
opacity: 1;
}
#what {
@ -37,14 +36,26 @@
text-transform: uppercase;
}
#what #ship,
#what #user {
border: 2px solid #fff;
}
.turn #what #user {
border: 2px solid red;
}
#what .as {
width: 1.6rem;
}
#vs {
margin: 0 1rem;
padding: .3rem;
color: #fff;
background-color: #ccc;
background-color: #000;
}
#whom,
.spac {
font-size: 100px;
line-height: 200px;

View File

@ -36,6 +36,7 @@ $(function() {
})
$bord.on('click', function(e) {
if(!$('body').hasClass('turn')) { return false }
$t = $(e.target).closest('.spac')
data = $.map(
$t.attr('data-index').split('-'),