pbojinov / arrow-js

A tiny library for displaying an arrow pointing to the browser download location
http://pbojinov.github.io/arrow-js/
MIT License
61 stars 13 forks source link

Pass custom arrow image URL #7

Open epalmans opened 5 years ago

epalmans commented 5 years ago

Exposes a second optional parameter to the show() method which allows to override the default orange one. Works by removing the original node and events from the DOM first; then regenerates it using _initArrow().

Example usage: <a href="#" onclick="Arrow.show(5000, 'https://i.imgur.com/MZRB3eb.png')">Download</a>

Note: