I have figured out how to make my page work the way I want it to, but now the problem is my last blurb of JavaScript is making it take very long to load. All it does is hide duplicate rows. I cannot delete them.
Which is quite large. Everything runs very smoothly until this blurb of js. I am not too familiar with any front end, so I might be missing some little aspect. Right now the js sits at the bottom of my HTML code.
var arr = $("#fungi tr");
$.each(arr, function(i, item) {
var currIndex = $("#fungi tr").eq(i);
var matchText = currIndex.children("td").eq(1).text();
$(this).nextAll().each(function(i, inItem) {
if (matchText === $(this).children("td").eq(1).text()) {
$(this).hide();
}
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<table id="fungi" border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th>Family Name</th>
<th>Genus Name</th>
<th>Spore Print Colour Description</th>
<th>Spore Print Colour 1</th>
<th>Spore Print Colour 2</th>
<th>Habitat</th>
<th>Habitat Description</th>
<th>Ecology</th>
<th>Size</th>
<th>Unique Cap Features</th>
<th>Cap Description</th>
<th>Partial Veil</th>
<th>Gill Description</th>
<th>Gill Attachement</th>
<th>Unique Stipe Features</th>
<th>Stipe Description</th>
<th>Additional Features of Note</th>
<th>Similar Genera / Look-alikes</th>
<th>Additional Information</th>
<th>Top Five NE Species</th>
<th>Species to Species Identification Difficulty</th>
</tr>
</thead>
<tbody>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">Fibrous</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Free</td>
<td class="check6">Hollow</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">Fibrous</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Free</td>
<td class="check6">None</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">Scaly</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Free</td>
<td class="check6">Hollow</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">Scaly</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Free</td>
<td class="check6">None</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">None</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Free</td>
<td class="check6">Hollow</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">None</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Free</td>
<td class="check6">None</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">Fibrous</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Barely Attached</td>
<td class="check6">Hollow</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">Fibrous</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Barely Attached</td>
<td class="check6">None</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">Scaly</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Barely Attached</td>
<td class="check6">Hollow</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">Scaly</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Barely Attached</td>
<td class="check6">None</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">None</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Barely Attached</td>
<td class="check6">Hollow</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
<tr>
<td>Agaricaceae</td>
<td>Agaricus sp.</td>
<td>Chocolate-Brown / Purple-Brown</td>
<td class="check1">Brown</td>
<td class="check2">Chocolate-Brown</td>
<td class="check3">Ground</td>
<td>Ground | Various. Roadsides, Grass, Meadows, Woodland... etc.</td>
<td>Saprobic</td>
<td class="check4">Medium</td>
<td class="check5">None</td>
<td>Fibrous / Scaly / None | Glabrous or with flattened fibers, not brightly coloured. Fleshy</td>
<td class="check7">Yes</td>
<td>Free / Barely Attached | Remote from stem. Pink when young. Dark brown and free or almost free at maturity. Close / Crowded</td>
<td class="check8">Barely Attached</td>
<td class="check6">None</td>
<td>Hollow / None | n/a</td>
<td>Medium / Large | Veil: Yes | Flesh thick, white. Usually white / gray / brown. Flesh, cap margin, base of stipe can often bruise yellow / red.</td>
<td>Agrocybe are smaller and don't always have a partial veil.</td>
<td>Chemical Reactions: KOH- negative or yellow-orange</td>
<td>Agaricus bitorquis, Agaricus arvensis, Agaricus campestris, Agaricus nanaugustus, Agaricus xanthodermus</td>
<td>Contains many species. Some are easy, some are extremely difficult.</td>
</tr>
</tbody>
</table>
nextAlleither...text-align: right;with table-cells containing text is bad for readability.