Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (74 sloc) 3.07 KB
<html>
<head>
<link rel="stylesheet" href="css/style.css"></link>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-16871278-7']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<a href="http://github.com/edsu/lastcloud"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"
alt="Fork me on GitHub" /></a>
<header>lastcloud</header>
<section id="summary">
<p>
Enter your <a href="http://last.fm">LastFM</a> username below
and I'll try to find artists you listen to who look like they
might be active on <a href="http://soundcloud.com">Soundcloud</a>.
</p>
<p>
This ain't perfect, since there are some Soundcloud users who have
taken musician names as their own. But you might be pleasantly
surprised to find some musicians you like on Soundcloud.
</p>
<p>
This is a pure HTML and JavaScript
app. You won't need to login at LastFm or Soundcloud, or bring
oAuth to the prom. Code is also on
<a href="http://github.com/edsu/lastcloud">Github</a>
if you have ideas for fixing/improving it.
</p>
</section>
<section id="search">
<form onsubmit="return false;">
<input size="16" placeholder="lastfm username" name="username" type="text">
<input type="submit" value="go"></input>
</form>
</section>
<section id="search-results">
<ul id="results">
</ul>
</section>
<!-- javascript -->
<script src="http://connect.soundcloud.com/sdk.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script src="js/mustache.js"></script>
<script src="js/lastcloud.js"></script>
<script>
$(document).ready(init);
</script>
<!-- templates -->
<script id="artist-template" type="text/x-mustache-template">
<li class="artist" id="{{ id }}">
<img src="{{ image }}">
<br>
<a target="_new" href="{{ url }}">{{ name }}</a>
<br>
</li>
</script>
<script id="soundcloud-template" type="test/x-mustache-template">
<a target="_new" href="{{ permalink_url }}">
<img title="{{ full_name }} [{{ username }}]"src="images/soundcloud-large.png"></img>
</a>
</script>
</body>
</html>