Edit in JSFiddle
JavaScript
HTML
CSS
Result