Create jscode_icon.js
This commit is contained in:
parent
39ba8d569e
commit
1a568ab507
|
|
@ -0,0 +1,15 @@
|
||||||
|
var button = document.createElement("a");
|
||||||
|
button.innerHTML = '<image src="http://localhost:8080/svg/core/actions/user-admin?color=ebebec">';
|
||||||
|
|
||||||
|
// ICON
|
||||||
|
button.classList.add("header-menu");
|
||||||
|
|
||||||
|
var header = document.getElementsByClassName("header-right")[0];
|
||||||
|
header.prepend(button);
|
||||||
|
|
||||||
|
button.style.padding = "20px";
|
||||||
|
|
||||||
|
|
||||||
|
button.addEventListener ("click", function() {
|
||||||
|
alert("did something");
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue