# HG changeset patch # User Brian Neal <bgneal@gmail.com> # Date 1391899206 21600 # Node ID c95431e7555c2409cb5fb0dc79a75a915dde1ac4 # Parent 6bea6bc69e69f99f661d6bd15cfefbee160159f3 Added The Day We Fight Back banner javascript. diff -r 6bea6bc69e69 -r c95431e7555c sg101/templates/base.html --- 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>