This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add these two lines to your form if you want a supporter to sign | |
the petition with action_KEY 12345. --> | |
<input type="hidden" name="link" value="action"/> | |
<input type="hidden" name="linkKey" value="12345"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<!-- TemplateBeginEditable name="content" --> | |
<h1>Page content goes here...</h1> | |
<!-- TemplateEndEditable --> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// See https://help.salsalabs.com/entries/22876904-Hide-email-addresses-on-targeted-actions | |
$(document).ready(function() { | |
if (RegExp('action_KEY=NNNNN').test(window.location.href)) { | |
var checkExist = null; | |
var recipientChecker = function() { | |
if ($('.recipient').length > 0) { | |
$('.recipient .number').each(function() { | |
var x = $(this).html(); | |
x = x.replace(RegExp('Email.+?</span>'), ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// See https://help.salsalabs.com/entries/22876904-Hide-email-addresses-on-targeted-actions | |
$(document).ready(function() { | |
if (RegExp('action_KEY=NNNNN').test(window.location.href)) { | |
var checkExist = null; | |
var recipientChecker = function() { | |
if ($('.recipient').length) { | |
clearInterval(checkExist); | |
$('label[for^=Content]').text("YOUR REPLACEMENT HERE"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// See https://help.salsalabs.com/entries/37087850-Hide-View-Respondents-on-distributed-event-page | |
$(document).ready(function() { | |
$('a[href*="profile/host.jsp?event_KEY="]').hide() | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
// FIELD_NAME can be Phone, Cell_Phone or the API name of a custom supporter field. | |
$('input[name=FIELD_NAME]').blur(function() { | |
if (!RegExp('\\d{3}-\\d{3}-\\d{4}').test($(this).val())) { | |
alert('Please provide a phone number like NNN-NNN-NNNN.'); | |
return false; | |
} | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Style and script to change the contents of the "in memory of" message | |
on a Salsa donation page. See (SalsaCommons link here.) --> | |
<style type="text/css"> | |
#was-in-memory-of { | |
padding-top: 20px; | |
font-size: 12pt; | |
color: red; | |
} | |
</style> | |
<script type="text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(document).ready(function () { | |
// SalsaStaff 88363: Click options in the checkbox/radio button | |
// questions based on queries passed in the URL. The general form of | |
// a query is `&Qm=n`, where `m` is the question number and `n` is | |
// the answer number. Both `m` and `n` are cardinal integers. | |
// | |
// @note This GIST contains guard logic to work on a single questoinnaire | |
// because the script must go into a template. | |
// |
OlderNewer