Skip to content

Instantly share code, notes, and snippets.

@cwmanning
Created December 4, 2012 18:59
Show Gist options
  • Save cwmanning/4207463 to your computer and use it in GitHub Desktop.
Save cwmanning/4207463 to your computer and use it in GitHub Desktop.
blah
animateNewContent: function(fromPath, toPath, htmlFrag, paused){
var currentWrap = this.$cards.eq(this.currentIndex);
var currentCard = currentWrap.children('.card');
if (currentWrap.children('.ad_container1').length === 0){
var ads = htmlFrag.find(".ad_container1");
currentWrap.prepend(ads);
}
if (htmlFrag.find('.hero.bump').length) {
currentCard.find('.punchout-cover').addClass('show');
}
currentWrap.css({height: '', overflow: ''});
htmlFrag = htmlFrag.find('section.card-wrap').children('.card');
return this.swapContent(currentCard, htmlFrag);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment