Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. const header = document.getElementsByClassName("right-tab-header")[0];
  2.  
  3. const cultureBtn = document.createElement("button");
  4. const cultureText = document.createTextNode("Spend culture");
  5. cultureBtn.onclick = () => {
  6. ["parchment", "manuscript", "compedium"].forEach(res => gamePage.craftAll(res));
  7. };
  8. cultureBtn.appendChild(cultureText);
  9.  
  10. const matsBtn = document.createElement("button");
  11. const matsText = document.createTextNode("Make stuff");
  12. matsBtn.onclick = () => {
  13. ["steel", "plate", "slab", "beam"].forEach(res => gamePage.craftAll(res));
  14. };
  15. matsBtn.appendChild(matsText);
  16.  
  17. header.appendChild(cultureBtn);
  18. header.appendChild(matsBtn);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement