Skip to content

Instantly share code, notes, and snippets.

View whitperson's full-sized avatar

Marc Whitman whitperson

View GitHub Profile
<tr>
<!-- Start Active_collections TD -->
<td style="padding-bottom:10px; padding-top:20px;">
<table width="100%" cellspacing="0" cellpadding="0">
<!-- accesses array length to check if it's an odd or even number -->
{a = length(active)}
{if (a % 2) != 0}
{a = a - 1}
{/if}
<table>
{foreach order as o}
<tr>
<td>{o.qty}</td>
<td>{o.name}</td>
</tr>
{/foreach}
</table>
@whitperson
whitperson / gist:4277811
Created December 13, 2012 16:44
possible option for jPlayer fade-in/fade-out
var vol = 20;
var t = 0;
function playSample(id) {
$("#player").stop();
vol = 20;
stopSample();
$("#player").setFile("yourfile.mp3");
fadeIn();