Scott Main 808eb3ad33 update samples landing page with summaries based on parameter in the url.
This is just for testing purposes... no real functionality yet.

Change-Id: I7d18033b01a7c3615e3d998da71062b25af22b28
2013-09-13 19:29:54 -07:00

27 lines
553 B
Plaintext

page.title=Samples
@jd:body
<div id="samples">
</div>
<script>
$(document).ready(showSamples);
/** Display links and other information about samples that match the
group specified by the URL */
function showSamples() {
var group = getGroup();
$("#body-content h1").html(group);
$("#samples").html("<p>OK, here are some samples about <b>" + group + "</b>.</p>");
}
/** Return the group provided by the URL */
function getGroup() {
var hashParts = location.hash.split('t=');
return hashParts[1];
}
</script>