Discover ALL Exotic Ant Species In Your State!

Описание к видео Discover ALL Exotic Ant Species In Your State!

Everyone knows how to open up http://antmaps.org/ and find out what native ant species are in their state, but how do you find out which exotic species are present? In many states the exotic species are the most dominant, so why don't they offer an option to list all exotic species in your state? Well I had that same question, so instead I went ahead and made a tool that does just that for you!

Below is the code snippet to paste into the console after going to http://antmaps.org/ and opening inspect element.

window.clear=clear;
$("path").bind("click",function(a){var d=a.currentTarget.id.replace("poly_","");clear();console.log("Searching for exotic ant species, this may take around 10-20s");var b=$.getJSON("/api/v01/genera.json?subfamily=");setTimeout(function(){genus=b.responseJSON.genera;$.each(genus,function(a){$.getJSON("/api/v01/species.json",{genus:genus[a].key}).success(function(a){$.each(a.species,function(b){var c=a.species[b].key;$.getJSON("/api/v01/species-range.json",{species:c}).success(function(a){$.each(a.bentities,function(b){a.bentities[b].gid==
d&&"E"==a.bentities[b].category&&(console.log("\n"),console.log("http://www.antwiki.org/wiki/"+c.replace(".","_")),console.log("http://antmaps.org/?mode=species&spec..."+c))})})})})})},100)});clear();console.log("Click any state, and then wait patiently as the exotic species appear.");

Once pasted, hit enter.

It will take a while because it has to check over 15,000 species and find out if it is exotic in the selected state or not.

If you found this useful, please like the video and consider subscribing!

Комментарии

Информация по комментариям в разработке