ndr_hd_button: Added style needed for shine effect.

This commit is contained in:
tastytea 2019-06-14 00:26:38 +02:00
parent 8c4a521984
commit 548927d609
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ function add_button(parent, url)
const button = document.createElement("a");
button.setAttribute("class", "button download");
button.setAttribute("href", url);
// Needed for shine effect
button.setAttribute("style", "position: relative;");
const spanshine = document.createElement("span");
spanshine.setAttribute("class", "buttonshine");