I am using these Devicon font icons for various programming languages.
They don't have every icon, but they have most.
What I want to do is to have a default icon I use for the languages that this font library does not support.
These are their instructions:
<!-- in your header -->
<link rel="stylesheet" href="https://cdn.rawgit.com/konpa/devicon/master/devicon.min.css">
<!-- in your body -->
<i class="devicon-ruby-plain"></i>
So in my view, I have this:
<div class="vote-icon">
<i class="devicon-<%= question.language %>-plain"></i>
</div>
Where question.language is a user-submitted language on their question.
Right now, when this generates a non-existent icon it just leaves a blank space there.
But I am not quite sure how to check to see if the icon exists, before replacing it with a default.
Thoughts?
