Here's a version with both horizontal and vertical styles, and a bit tweaked, in case you'd like to have a look

Check out http://tkafka.github.io/jquery-gradient-picker/example_usage/gradientPicker.html

Thanks for the original code!