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
69 changes: 69 additions & 0 deletions css/style.css
100644 → 100755
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
@font-face {
font-family: "Mason Regular";
src: url("../font/Mason/creed.ttf");
}

body {
background: #1d1d1d url(../pic/Background.jpg) top left repeat;
}

.container {
width: 900px;
height: 800px;
margin: 0 auto 0 auto;
}

.top {
height: 160px;
}

.title {
padding-top: 30px;
font-family: "Mason Regular";
font-size: 80px;
font-weight: 200;
text-align: center;
color: #afafaf;
text-shadow: 10px 10px 8px #000000;
}

.band-list {
width: 400px;
height: 250px;
margin: 0 auto 0 auto;
border: 3px solid white;
border-radius: 20px;
background-color: rgba(40, 40, 40, 0.7);
}

.band-list tr td {
height: 50px;
border-bottom: 1px solid #a0a0a0;
vertical-align: center;
}

.band-list tr:last-child td {
border-bottom: none;
}

.band-name {
color: white;
font-family: Helvetica;
font-weight: 500;
font-size: 20px;
padding-left: 20px;
}

.band-mention-num {
font-size: 24px;
color: rgb(175, 0, 2);
padding-right: 3px;
}

.band-mentions {
padding-right: 20px;
text-align: right;
color: white;
font-size: 12px;
font-family: Helvetica;
}
Binary file added font/Mason/creed.ttf
Binary file not shown.
16 changes: 11 additions & 5 deletions index.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,24 @@
<meta name="viewport" content="width=device-width" />
<base target="_blank" />

<!-- CSS -->
<link href="./css/style.css" rel="stylesheet" />
<link href="./css/style.css" rel="stylesheet" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="./js/lib.js"></script>
<script src="./js/script.js"></script>

</head>
<body>


<div class="container">
<div class="top">
<h1 class="title">Awesome Bands</h1>
</div>

<!-- JS -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="./js/lib.js"></script>
<script src="./js/script.js"></script>
<table class="band-list"></table>
</div>

</body>
</html>
30 changes: 30 additions & 0 deletions js/script.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
var UPDATE_TIME_INTERVAL = 15;
var NUMBER_OF_BANDS_SHOWN = 5;

$(document).ready( function() {
var options = {
frequency: UPDATE_TIME_INTERVAL,
limit: NUMBER_OF_BANDS_SHOWN
};

poller = new window.massrel.Poller(options, function displayData(bands) {
$(".band-list tr").remove();

bands.forEach(function(band) {
$('.band-list').append("<tr>\
<td class='band-name'>" + band.name + "</td>\
<td class='band-mentions'>\
<span class='band-mention-num'>" + band.count.toString() + "</span>\
Mentions</td></tr>");
});

$('.band-name').delay(14200).fadeOut(800);
$('.band-mentions').delay(14200).fadeOut(800);

});

poller.start();
});



Binary file added pic/Background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.