Skip to content

Instantly share code, notes, and snippets.

@jbueza
Forked from bovan/wtfcheck.js
Created November 25, 2010 12:27
Show Gist options
  • Save jbueza/715311 to your computer and use it in GitHub Desktop.
Save jbueza/715311 to your computer and use it in GitHub Desktop.
var data = $(document.body).data('trafikk');
$(data).each(function(index, value){
// filter function
$(data[index].ActualCounties).each(function(i, county){
// if road is in more than 1 county, iterate
if(!$.isArray(county.String )) county.String = [count.String];
data[index].include = (filter.indexOf(county.String.join()) < 0) ? false: true;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment