List Federal Agencies who have published their digital strategy.

  • Download Gist
feder-agencies-digital-strategy-listing.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
<!-- Being Federal Agency Listing --->
<!-- Requires http://mustache.github.io/-->
<table id="agencyListing" style="padding-left: 40px;">
<tbody>
<tr>
<td colspan="2">
<table>
<tbody>
<tr>
<td width="80%" align="left">
<strong>Federal Agency Digital Strategies</strong>
</td>
<td width="10%" align="center">
<a href="[github gists]" target="_blank" title="Script for Display">
<img src="https://s3.amazonaws.com/kinlane-productions/bw-icons/bw-code.png" width="25" />
</a>
</td>
<td width="10%" align="center">
<a href="federal-agencies-digital-strategy.json" target="_blank" title="Raw JSON Data"
<img src="https://s3.amazonaws.com/kinlane-productions/bw-icons/bw-json-data-store.png" width="25" />
</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<script id="agencyListingTemplate" type="text/template">
<tr>
<td width="75" align="center" valign="middle">
<a href="{{url}}" target="_blank">
<img src="{{logo}}" width="75" align="center" style="padding: 15px;" />
</a>
</td>
<td valign="middle" align="left">
<a href="{{url}}" style="color: #000;" target="_blank">
<strong>{{name}}</strong>
</a>
<br />
<a href="{{url}}" style="color: #000;" target="_blank">
{{url}}
</a>
</td>
</tr>
</script>
 
<script type="text/javascript">
function listAgencies()
{
$.getJSON('federal-agencies-digital-strategy.json', function(data) {
agencycount = 1;
$.each(data['agencies'], function(key, val) {
var template = $('#agencyListingTemplate').html();
var html = Mustache.to_html(template, val);
$('#agencyListing').append(html);
agencycount++;
});
});
}
listAgencies();
</script>
<!-- End Federal Agency Listing --->

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.