CSS fixes, audio file references moved to data.js file
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,2 +1,6 @@
|
|||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
buffalo/index.html
|
||||||
|
|
||||||
|
buffalo/js/data.js
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#header, #footer {
|
#header, #footer {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
width: 600px;
|
width: 600px;
|
||||||
color: #8B3E2F;
|
color: #8B3E2F;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
@@ -36,10 +38,8 @@ body {
|
|||||||
padding: 8px 20px 8px 20px;
|
padding: 8px 20px 8px 20px;
|
||||||
transition-property: background-color;
|
transition-property: background-color;
|
||||||
transition-duration: 1s;
|
transition-duration: 1s;
|
||||||
/* Firefox 4 */
|
|
||||||
-moz-transition-property: background-color;
|
-moz-transition-property: background-color;
|
||||||
-moz-transition-duration: 1s;
|
-moz-transition-duration: 1s;
|
||||||
/* Safari and Chrome */
|
|
||||||
-webkit-transition-property: background-color;
|
-webkit-transition-property: background-color;
|
||||||
-webkit-transition-duration: 1s;
|
-webkit-transition-duration: 1s;
|
||||||
}
|
}
|
||||||
@@ -51,12 +51,14 @@ body {
|
|||||||
margin-bottom: 80px;
|
margin-bottom: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer a:link {
|
#footer a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #8B3E2F;
|
color: #8B3E2F;
|
||||||
}
|
}
|
||||||
|
|
||||||
#board {
|
#board {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
width: 640px;
|
width: 640px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
@@ -64,19 +66,20 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.square, .freesquare {
|
.square, .freesquare {
|
||||||
display: inline-block;
|
display: block;
|
||||||
|
float: left;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
background-color: #fff;
|
||||||
color: #313131;
|
color: #313131;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 126px;
|
width: 120px;
|
||||||
height: 126px;
|
height: 120px;
|
||||||
|
padding: 3px;
|
||||||
border: 1px solid #d1d1d1;
|
border: 1px solid #d1d1d1;
|
||||||
transition-property: background-color;
|
transition-property: background-color;
|
||||||
transition-duration: 1s;
|
transition-duration: 1s;
|
||||||
/* Firefox 4 */
|
|
||||||
-moz-transition-property: background-color;
|
-moz-transition-property: background-color;
|
||||||
-moz-transition-duration: 1s;
|
-moz-transition-duration: 1s;
|
||||||
/* Safari and Chrome */
|
|
||||||
-webkit-transition-property: background-color;
|
-webkit-transition-property: background-color;
|
||||||
-webkit-transition-duration: 1s;
|
-webkit-transition-duration: 1s;
|
||||||
}
|
}
|
||||||
@@ -90,6 +93,7 @@ body {
|
|||||||
font-family: "HelveticaNeue-CondensedBold", sans-serif;
|
font-family: "HelveticaNeue-CondensedBold", sans-serif;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
font-size: 1.4em;
|
font-size: 1.4em;
|
||||||
|
line-height: 1.0em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small {
|
.small {
|
||||||
@@ -109,7 +113,6 @@ body {
|
|||||||
background-color: red;
|
background-color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Smartphones (portrait and landscape) ----------- */
|
|
||||||
@media only screen
|
@media only screen
|
||||||
and (min-device-width : 320px)
|
and (min-device-width : 320px)
|
||||||
and (max-device-width : 480px) {
|
and (max-device-width : 480px) {
|
||||||
@@ -131,6 +134,7 @@ and (max-device-width : 480px) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
font-size: 1.2em;
|
font-size: 1.6em;
|
||||||
|
line-height: 1.0em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,6 +5,10 @@ var footerText = "<a href='https://github.com/jeffehobbs/HTML5-bingo/' target='_
|
|||||||
|
|
||||||
var winText = "Winner";
|
var winText = "Winner";
|
||||||
|
|
||||||
|
var clickSnd = new Audio("audio/click.mp3");
|
||||||
|
|
||||||
|
var winSnd = new Audio("audio/win.mp3");
|
||||||
|
|
||||||
var JSONBingo = {"squares": [
|
var JSONBingo = {"squares": [
|
||||||
{"square": "<span class='large'>one</span>"},
|
{"square": "<span class='large'>one</span>"},
|
||||||
{"square": "<span class='large'>two</span>"},
|
{"square": "<span class='large'>two</span>"},
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$('#footer').append(footerText);
|
$('#footer').append(footerText);
|
||||||
|
|
||||||
var clickSnd = new Audio("audio/click.mp3");
|
|
||||||
var winSnd = new Audio("audio/win.mp3");
|
|
||||||
|
|
||||||
shuffle(JSONBingo.squares);
|
shuffle(JSONBingo.squares);
|
||||||
|
|
||||||
for (i=0; i<24; i++) {
|
for (i=0; i<24; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user