Skip to content

Instantly share code, notes, and snippets.

@misener
Created October 15, 2012 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misener/3895979 to your computer and use it in GitHub Desktop.
Save misener/3895979 to your computer and use it in GitHub Desktop.
Kickstarter currency support
<script id="schwamm_formatting_options" type="text/javascript">
//<![CDATA[
(function(){window.formatters = window.formatters || {}; var formatting_options = {"distance_date_intervals":[[5,"just now"],[29,"less than a minute ago"],[89,"1 minute ago"],[2640,"%m minutes ago"],[5340,"about 1 hour ago"],[82800,"about %h hours ago"],[147600,"1 day ago"],[604800,"%d days ago"],[15552000,"on %t"],[0,"on %y"]],"currency_symbol_mappings":{"USD":"$","GBP":"\u00a3","EUR":"\u20ac","JPY":"\u00a5"}}; for (key in formatting_options) {window.formatters[key] = formatting_options[key]};}());
//]]>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment