Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Empty file modified AwesomeBands.psd
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Binary file added css/.DS_Store
Binary file not shown.
Binary file added css/creed.ttf
Binary file not shown.
78 changes: 78 additions & 0 deletions css/style.css
100644 → 100755
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
@font-face {
font-family: 'Mason Regular';
src: url('creed.ttf');
}
body {
background-image: url("../images/bg.png");
background-size: 30px 35px;
}
#content {
text-align: center;
height: 100%;
}
#title {
padding-top: 8%;
padding-bottom: 4%;
font-size: 70px;
font-family: "Mason Regular";
color: #999999;
text-shadow: 2px 2px #000;
}
#stat {
border: 5px solid white;
border-radius: 20px;
width: 40%;
min-width: 330px;
height: ;
margin: 0 auto;
}
.row {
height: 40px;
}
.padLeft {
float: left;
height: 40px;
line-height: 40px;
width: 5%;
}
.band {
float: left;
height: 40px;
line-height: 40px;
width: 48%;
color: white;
text-align: left;
font-size: 20px;
font-weight: bold;
}
.number {
float: left;
height: 40px;
line-height: 40px;
width: 20%;
font-family: "Arial";
text-align: right;
font-size: 17px;
color: red;
}
.mention {
float: left;
height: 40px;
line-height: 40px;
width: 25%;
padding-left: 2%;
text-align: left;
font-size: 17px;
color: white;
font-weight: lighter;
}
.row div {
display: none;
}
hr {
margin: 0;
color: grey;
background-color: grey;
height: 1px;
border: 0px;
}
Binary file added images/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 41 additions & 1 deletion index.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,47 @@

</head>
<body>

<div id="content">
<div id="title">AWESOME BANDS</div>
<div id="stat">
<div>
<div class="row">
<div class="padLeft"> </div>
<div class="band" id="band0"></div>
<div class="number" id="number0"></div>
<div class="mention"> Mentions</div>
</div>
<hr>
<div class="row">
<div class="padLeft"> </div>
<div class="band" id="band1"></div>
<div class="number" id="number1"></div>
<div class="mention"> Mentions</div>
</div>
<hr>
<div class="row">
<div class="padLeft"> </div>
<div class="band" id="band2"></div>
<div class="number" id="number2"></div>
<div class="mention"> Mentions</div>
</div>
<hr>
<div class="row">
<div class="padLeft"> </div>
<div class="band" id="band3"></div>
<div class="number" id="number3"></div>
<div class="mention"> Mentions</div>
</div>
<hr>
<div class="row">
<div class="padLeft"> </div>
<div class="band" id="band4"></div>
<div class="number" id="number4">4</div>
<div class="mention"> Mentions</div>
</div>
</div>
</div>
</div>


<!-- JS -->
Expand Down
Empty file modified js/lib.js
100644 → 100755
Empty file.
13 changes: 13 additions & 0 deletions js/script.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var poller = new massrel.Poller({ 'limit': 5, 'frequency': 15}, processData);
function processData (data) {
console.log(data);
$(".row div").fadeOut("slow", function () {
for (var i = 0; data[i]; i++)
{
$("#band"+i).html(data[i]["name"]);
$("#number"+i).html(data[i]["count"].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","));
}
});
$(".row div").fadeIn("slow");
}
poller.start();