Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script and CSS to (1) make the list of targets in a targeted action taller, and (2) move the supporter information closer to the letter content to avoid an ugly gap.
<!-- Script and CSS to
(1) make the list of targets in a targeted action taller, and
(2) move the supporter information closer to the letter content to avoid an ugly gap. -->
<style type="text/css">
.taller-targets {
max-height: 1200px;
}
</style>
<script type="text/javascript">
var timer = null;
function salsaStaffTallerLegislators() {
$('.targets').addClass('taller-targets');
$('.actioncontent').append($('#sign-page > div.supporterInfo > div'));
}
function salsaStaffWaitForLegislators() {
if ($('.targets').length != 0) {
salsaStaffTallerLegislators();
if (timer != null) {
clearInterval(timer);
timer = null;
}
}
}
timer = setInterval(salsaStaffWaitForLegislators, 500)
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.