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
<div class="foo bar"></div> | |
<div class="foo raa"></div> |
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
<li class="gig ng-scope"> | |
<div class="month september-2014"> | |
<h2>April</h2> | |
<h3>2014</h3> | |
</div> | |
<div class="info-container"> | |
<div class="info"> | |
<div class="calendar"> | |
<div class="monthtop ng-binding">Apr | |
<img ng-src="/dist/img/flags/GB.png" src="/dist/img/flags/GB.png"> |
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
$scope.$on('ngRepeatFinished', function(ngRepeatFinishedEvent) { | |
$('.month').each(function(){ | |
//grab the classes | |
var classes = $(this).attr('class').split(/\s+/); | |
for (var i=0; i<classes.length; i++) { | |
//only check against the date classes | |
if (/\w*-\d{4}/.test(classes[i])) { | |
//show the first matching element | |
$('.'+classes[i]).first().show(); |