// Remove scrollbar in JS
$('#slidesContainer').css('overflow', 'hidden');
// Wrap all .slides with #slideInner div
slides
.wrapAll('
')
// Float left to display horizontally, readjust .slides width
.css({
'float' : 'left',
'width' : slideWidth
});
// Set #slideInner width equal to total width of all slides
$('#slideInner').css('width', slideWidth * numberOfSlides);
// Insert controls in the DOM
$('#slideshow')
.prepend('Clicking moves left')
.append('Clicking moves right');
// Hide left arrow control on first load
manageControls(currentPosition);
// Create event listeners for .controls clicks
$('.control')
.bind('click', function(){
// Determine new position
currentPosition = ($(this).attr('id')=='rightControl') ? currentPosition+1 : currentPosition-1;
// Hide / show controls
manageControls(currentPosition);
// Move slideInner using margin-left
$('#slideInner').animate({
'marginLeft' : slideWidth*(-currentPosition)
});
});
// manageControls: Hides and Shows controls depending on currentPosition
function manageControls(position){
// Hide left arrow if position is first slide
if(position==0){ $('#leftControl').hide() } else{ $('#leftControl').show() }
// Hide right arrow if position is last slide
if(position==numberOfSlides-1){ $('#rightControl').hide() } else{ $('#rightControl').show() }
}
});
Uncle Brutha’s Allsauce No. 9
District native Brennan “Uncle Brutha” Proctor blends serrano chilies, ginger, and cilantro for his smoky twist ($8) on Mexican salsa verde. All the ingredients are natural and gluten-free.
Chef Spike Gjerde of Baltimore’s Woodberry Kitchen uses fish peppers for this searing sauce ($12). The chili shows up on his menu in everything from deviled eggs to Bloody Marys.
Best for: Dashing on rich seafood dishes.
Where to find it: Salt & Sundry in Union Market, 1309 Fifth St., NE; 202-556-1866.
2/5
Apinya Thai Chili Sauce
Love Sriracha? Try this similarly flavored Thai sauce ($6) out of Herndon. It delivers a bigger hit of ginger plus hints of garlic and roasted bell peppers.
Best for: Marinades, Asian noodles, and grilled meats.
Anna Spiegel covers the dining and drinking scene in her native DC. Prior to joining Washingtonian in 2010, she attended the French Culinary Institute and Columbia University’s MFA program in New York, and held various cooking and writing positions in NYC and in St. John, US Virgin Islands.