Fix buttons

parent e822142b
...@@ -90,7 +90,7 @@ let draw = function() { ...@@ -90,7 +90,7 @@ let draw = function() {
ctx.fillText(fillText, width * 0.08, height * 0.2 + fontSize * 1.4); ctx.fillText(fillText, width * 0.08, height * 0.2 + fontSize * 1.4);
// Update download button // Update download button
document.querySelector('#save-image').href = canvas.toDataURL(); document.querySelector('#save-image > a').href = canvas.toDataURL();
// Edit URL // Edit URL
history.replaceState('', '', window.location.pathname + '?' history.replaceState('', '', window.location.pathname + '?'
...@@ -163,8 +163,8 @@ window.addEventListener('load', function() { ...@@ -163,8 +163,8 @@ window.addEventListener('load', function() {
document.getElementById('step2value').oninput = draw; document.getElementById('step2value').oninput = draw;
document.getElementById('signature').oninput = draw; document.getElementById('signature').oninput = draw;
// Remove server calls for random/fb./twtr buttons // Remove server calls for random buttons
let buttons = document.querySelectorAll('button.randomize, button.tweet-button, button.fb-button'); let buttons = document.querySelectorAll('button.randomize');
for (let i = 0; i < buttons.length; ++i) { for (let i = 0; i < buttons.length; ++i) {
buttons[i].type = "button"; buttons[i].type = "button";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment