am 575245dc: am 1294a8f9: Merge "update samples landing page with summaries based on parameter in the url. This is just for testing purposes... no real functionality yet." into jb-mr2-docs

* commit '575245dc29441fc796442805caa16000f48f27cc':
  update samples landing page with summaries based on parameter in the url. This is just for testing purposes... no real functionality yet.
This commit is contained in:
Scott Main
2013-09-13 19:36:49 -07:00
committed by Android Git Automerger
2 changed files with 30 additions and 70 deletions

View File

@ -1,77 +1,11 @@
page.title=Samples page.title=Samples
header.hide=1
@jd:body @jd:body
<style>
div.landing-cell,
div.cell-icon {
height:150px;
}
div.cell-icon {
float:left;
margin-right:20px;
}
div.cell-icon img {
margin:0;
}
</style>
<div class="landing-banner"> <div id="samples">
<p>Some kind of sample sorting will appear here.</p>
<div class="col-6" style="min-height:0">
<img src="{@docRoot}images/google/google-services.png" alt="" width="340" height="193" />
</div>
<div class="col-6">
<h1 itemprop="name" style="margin-bottom:0;">Samples</h1>
<p itemprop="description">Some intro here. Overview of Samples, where to get them,
links to related tools and SDK, and what's new in samples. </p>
</div>
</div>
<div>&nbsp;</div>
<div style="margin-top:10px">
<div class="col-6 normal-links" style="margin-left:0">
<div class="landing-cell">
<div class="cell-icon">
<img src="{@docRoot}images/google/maps-pin.png" width="40" >
</div>
<h4><a href="{@docRoot}google/play-services/maps.html"
>Google Maps</a></h4>
<p>The power of Google Maps is available to your app
with an embeddable map view. You can customize the map with
markers and overlays, control the user's perspective, draw lines
and shapes, and much more.</p>
</div> </div>
</div><!-- col-6 -->
<div class="col-6" style="margin-right:0">
<div class="landing-cell">
<div class="cell-icon">
<img src="{@docRoot}images/google/iab-99c.png" width="40" />
</div>
<h4><a href="{@docRoot}google/play/billing/index.html"
>Google Play In-App Billing</a></h4>
<p>Build an app with a steady revenue stream that keeps users engaged
by offering new content or virtual goods directly in your app. All transactions are handled
by Google Play Store for a simple user experience.
</p>
</div>
</div><!-- col-6 -->
</div><!-- margin wrapper -->
<script>
</script>

View File

@ -0,0 +1,26 @@
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>