To embed the Cost of War in Afghanistan counter on your website,
blog, etc, follow these simple instructions:
1) Add the following javascript to your page:
<script src="https://www.nationalpriorities.org/cost-of/war-in-afghanistan/js/"></script>
Add the following code wherever you want the counter to show up:
<div id="npp-widget-war-in-afghanistan" class="npp-widget"></div>
NOTE: This doesn't need to be a <div>. Use whatever tag you need.
A Note About Style
We've intentionally left out any styles for this embeddable counter, instead leaving it up to you to provide
styles consistent with the look of your site. To aid in that process, here's the HTML markup that will be
generated from the embed code:
<div id="npp-widget-war-in-afghanistan" class="npp-widget">
<h3 class="npp-widget-title">
Cost of War in Afghanistan
</h3>
<p class="npp-widget-summary">
Every <span> hr(s)</span>,
taxpayers in <span></span>
are paying <span>$###</span>
for <span>Cost of War in Afghanistan</span>.
</p>
<p id="npp-widget-war-in-afghanistan-total" class="npp-widget-total">
$###,###,###
</p>
<p class="npp-widget-meta">
See more counters at
<a href="http://www.nationalpriorities.org/cost-of/"
title="Brought to you by the National Priorities Project">
https://www.nationalpriorities.org/cost-of/
</a>
</p>
</div>
×
This counter displays the total cost, since 2001, of the war in Afghanistan. This includes all of the funding that has been appropriated by Congress for the war through the end of fiscal 2014 on Sept. 30, 2014. This number reflects the allocation in January 2014 as part of the Consolidated Appropriations Act, 2014.
For more detail, see Notes & Sources.
Note: This is the total cost of the war in nominal (non-inflation-adjusted) dollars.
×