3,4c3 < Canvas HTML Element Surd Board Game (with image copy) Tutorial ... RJM Programming ... April 2014 ... thanks to http://stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element < --- > Canvas HTML Element Surd Board Game Tutorial ... RJM Programming ... April 2014 ... thanks to http://stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element 28,29d26 < var fromhereon = "0"; < 358,373d354 < < < function to_image_file() { < var ourcanvas = document.getElementById("canvaselement"); < document.getElementById("ourimage").src = ourcanvas.toDataURL(); < if (document.getElementById("fromhereon").value == "1") { < document.getElementById("ourimage").style.display = 'block'; < document.getElementById("email").style.display = 'block'; < document.getElementById("emailee").style.display = 'block'; < document.getElementById("ourtable").border = 1; < Canvas2Image.saveAsPNG(ourcanvas); < } else { < document.getElementById("ourimage").style.display = 'none'; < } < document.getElementById("fromhereon").value = fromhereon; < } 404,405d384 < < 407,408d385 <
< 454d430 < document.getElementById("mydrawb").style.display = 'block'; 459,461d434 < //if (document.getElementById("fromhereon").value == "1") { < to_image_file(); < //} 469c442 < window.location = './surd_withimagecopy_chalkboard.html'; --- > window.location = './surd_chalkboard.html'; 475a449 >