projects
/
confetti
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
confirmation when trying to delete record
[confetti]
/
static
/
therapy_draw.js
diff --git
a/static/therapy_draw.js
b/static/therapy_draw.js
old mode 100755
(executable)
new mode 100644
(file)
index
0b5dffa
..
5a06728
--- a/
static/therapy_draw.js
+++ b/
static/therapy_draw.js
@@
-35,10
+35,9
@@
function setcol(c) {
image.fillStyle = c
if ( c == "#FFF" ) image.lineWidth = 32
else image.lineWidth = 4
image.fillStyle = c
if ( c == "#FFF" ) image.lineWidth = 32
else image.lineWidth = 4
- data.value += " stroke " + c + " stroke-width " + image.lineWidth
+ data.value += " stroke " + c + "
F" + "
stroke-width " + image.lineWidth
}
}
-setcol("$tpy[color]")
function relX(x){
if ( body.clientWidth >= 800 ){
function relX(x){
if ( body.clientWidth >= 800 ){
@@
-74,6
+73,10
@@
function drawstart(x, y) {
stx=relX(x), sty=relY(y)
stx=relX(x), sty=relY(y)
+ document.getElementsByName("color").forEach(
+ function(x, y, z){ if (x.checked) setcol(x.value); }
+ );
+
image.beginPath()
draw(x, y) // why must this not use relative Coords ???
image.beginPath()
draw(x, y) // why must this not use relative Coords ???