Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var node = document.createElement("button");
- var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
- var path = document.createElementNS("http://www.w3.org/2000/svg", "path");
- node.classList.add('button-toolbar');
- node.id = "vivaldiToggleSidebar";
- node.setAttribute("title", "Panel Toggle");
- node.setAttribute("tabindex", "-1");
- svg.setAttributeNS(null, "width", "4");
- svg.setAttributeNS(null, "height", "16");
- svg.setAttributeNS(null, "viewBox", "0 0 4 16");
- path.style = "d: path('M2 4c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm0 6c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm0 6c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z')";
- bookmarkbar.appendChild(node);
- node.appendChild(svg);
- svg.appendChild(path);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement