Created
March 3, 2015 00:35
-
-
Save Ravenna/53139e8ed53274d52e1c to your computer and use it in GitHub Desktop.
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
var lastTop; | |
$('a.ai1ec-event-container').each(function(i){ | |
var top = $(this).css('top'); | |
console.log(top); | |
var index; | |
if(top = lastTop){ | |
console.log('exception'); | |
var mulitple = index * 200; | |
$(this).css('margin-left', mulitple+'px'); | |
} | |
lastTop = top; | |
console.log('lastTop: ', lastTop); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment