Venn Diagram on Canvas Primer Tutorial ... RJM Programming ... December 2013, January, 2015 ... thanks to http://stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element
---
> Venn Diagram on Canvas Primer Tutorial ... RJM Programming ... December 2013 ... thanks to http://stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element
7,8c7,8
<
Click two points to place Venn Diagram circle
<
---
>
Click two points to place Venn Diagram circle
>
10,12d9
<
<
< Email
15,16d11
< var mval = 'Diameter';
<
49,57d43
< function capture(toh, tos, toe) {
< var pretoh = elem.toDataURL();
< toh.value = pretoh.substr(22, pretoh.length);
< tos.click();
< var things = document.URL.split("?");
< toe.href = toe.href + (things[0] + "/~").replace("venn_diagram.html/~", document.getElementById('myfname').value).replace("index.html/~", document.getElementById('myfname').value).replace("//~", "/" + document.getElementById('myfname').value).replace("/~", "/" + document.getElementById('myfname').value);
< toe.click();
< }
<
187,189c173
< if (ournum == "0") {
< capture(document.getElementById('mydurl'),document.getElementById('submit'),document.getElementById('myemail'));
< } else if (ournum != "") {
---
> if (ournum != "") {
200,209d183
<
< var today = new Date();
< var dd = today.getDate();
< var mm = today.getMonth()+1; //January is 0!
< var yyyy = today.getFullYear();
< var hh = today.getHours();
< var minm = today.getMinutes(); //January is 0!
< var ss = today.getSeconds();
< document.getElementById('myfname').value = "venn_diagram_" + yyyy + "_" + mm + "_" + hh + "_" + minm + "_" + ss + ".png";
<