Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

73 lines (68 sloc) 2.539 kB
<html>
<head>
<link rel="stylesheet" href="popup.css" type="text/css">
<script src="jquery.js"></script>
<script src="jquery.sparkline.js"></script>
<script src="underscore.js"></script>
<script src="backbone.js"></script>
<script src="tractor.js"></script>
<script type="text/javascript" src="soundcloud.player.api.js"></script>
<script>
$(window).load(function() {
var view = new AppView;
var artists = new ArtistCollection;
chrome.tabs.getSelected(null, function(tab) {
artists.currentTabUrl = tab.url;
view.setArtists(artists);
view.render();
});
});
</script>
</head>
<body>
<ul id="artists">
</ul>
<script type="text/template" id="artist-template">
<h2><span class="artist-image"></span><%= name %></h2>
<div class="soundCloudPlayer">Loading SoundCloud player...</div>
<h3>Youtube Plays</h3>
<div><span class="sparkline-youtube">Loading chart data...</span></div>
<h3>Twitter Followers</h3>
<div><span class="sparkline-twitter">Loading chart data...</span></div>
<h3>Is Myspace Dead Yet?</h3>
<div><span class="sparkline-myspace">Loading chart data...</span></div>
<h3>Upcoming Events</h3>
<table class="songkick-listing"></table>
</script>
<script type="text/template" id="songkick-listing-item-template">
<tr>
<td class="calendar">
<a href="<%= songkickUrl %>" target=_blank>
<span class="day">
<%= dayOfWeek %>
</span>
<span class="day-of-month">
<%= dayOfMonth %>
</span>
<span class="month">
<%= month %>
</span>
</a>
</td>
<td class="location">
<a href="<%= songkickUrl %>" target=_blank>
<strong><%= venueOrFestivalName %></strong>
<%= city %>
</a>
</td>
</tr>
</script>
<script type="text/template" id="soundCloudPlayerTemplate">
<object height="81" width="100%" id="<%= elementId %>" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="movie" value="<%= playerSrc %>"></param>
<param name="allowscriptaccess" value="always"></param>
<embed allowscriptaccess="always" height="81" src="<%= playerSrc %>" type="application/x-shockwave-flash" width="100%" name="yourPlayerId"></embed>
</object>
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.