As @sady92 already had pointed out, this plugin does indeed have a huge need for refactoring, as most of the code is redundant and can be simplified.
Beside that, this plugin does nothing special I couldn’t do with a few lines of HTML, CSS and JS myself. Why are there so many upvotes then? Something smells fishy here…