diff --git a/colour.py b/colour.py index 8479f12..c52a01b 100644 --- a/colour.py +++ b/colour.py @@ -145,7 +145,7 @@ def getSvgFromDbImages(images, elId = ""): # Posibilitiy: determine position based on avg(saturation, value) => dark & grey inside, shiney and colourful outside # pos = np.array([x,y]) * (0.5 + (hsv[1]+hsv[2])/2) * radius r = max(1,-10/percentage+10) # as r, we converge to maximum radius 10, but don't want to get smaller radi then 1 - c = '' % (pos[0], pos[1], r, getColourAsHex(rgb), colourId) + c = '' % (pos[0], pos[1], r, getColourAsHex(rgb), colourId) svg += c svg += "" diff --git a/templates/index.html b/templates/index.html index 34c3824..f945af1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -241,11 +241,11 @@ - - + + - + @@ -303,7 +303,7 @@ oReq.addEventListener("error", transferFailed); oReq.addEventListener("abort", transferCanceled); oReq.open("GET", "/colours?"+type+"="+value); - oReq.send() + oReq.send(); for(let unsetLink of links) { if(unsetLink.dataset.param == type && unsetLink.dataset.id == value) {