Skip to content

Instantly share code, notes, and snippets.

@danaskallman
danaskallman / civimail-footer.html
Created August 12, 2015 16:50
Sample CiviMail HTML Footer
@danaskallman
danaskallman / civimail-header.html
Last active August 29, 2015 14:27
Sample CiviMail HTML Header
<body style="margin:0;padding:0;">
<!-- top bar -->
<table style="width:100%;background:#222;">
<tbody>
<tr>
<td>
<table style="width:600px;height:26px;margin:0 auto;">
<tbody>
<tr style="font-size:10px;font-family:Arial,sans-serif;text-transform:uppercase;">
<td><strong>News from ORG_NAME</strong></td>
@danaskallman
danaskallman / sample-js-civevent-v02-Register.extra.tpl
Created July 30, 2014 19:53
Sample JS for Event Custom Template v.02
{literal}
<script type="text/javascript">
(function(glo, window, $ ){
// set up a little namespace
if(!glo.ui) glo.ui = {
forms: {}
};
// A field that is dependent on the value of a previous field.
@danaskallman
danaskallman / sample-js-civevent-v01-Register.extra.tpl
Last active August 29, 2015 14:04
Sample JS for Event Custom Template v.01
{literal}
<script type="text/javascript">
jQuery('#CIVICRM_QFID_58_2').change(function(){
if (jQuery('#CIVICRM_QFID_58_2').attr('checked') == 'checked') {
jQuery('#CIVICRM_QFID_0_16').attr('checked', 'checked');
jQuery('.Block_2-section').hide();
}
});
jQuery('#CIVICRM_QFID_59_4').change(function(){jQuery('.Block_2-section').show()});