Mercurial > public > sg101
changeset 773:c95431e7555c
Added The Day We Fight Back banner javascript.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 08 Feb 2014 16:40:06 -0600 |
parents | 6bea6bc69e69 |
children | 2f2292cb29aa |
files | sg101/templates/base.html |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sg101/templates/base.html Sat Feb 08 13:16:08 2014 -0600 +++ b/sg101/templates/base.html Sat Feb 08 16:40:06 2014 -0600 @@ -144,5 +144,18 @@ </div> {% block end_body %}{% endblock %} +<script type="text/javascript"> + // The defaults are set below + var tdwfb_config = { + greeting: 'Dear Internet', // Sets the salutation shown in the banner. + disableDate: false, // If true, the banner shows even if the date is not yet 02/11/2014. Use for testing. + callOnly: false // If true, the banner emphasizes calling congress over emailing. + }; + (function(){ + var e = document.createElement('script'); e.type='text/javascript'; e.async = true; + e.src = document.location.protocol + '//d1agz031tafz8n.cloudfront.net/thedaywefightback.js/widget.min.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); + })(); +</script> </body> </html>