From e5a66000fdb08bf87006ace6c15fe69a3e8561f2 Mon Sep 17 00:00:00 2001 From: Ruben Date: Sat, 11 Mar 2017 20:12:48 +0100 Subject: [PATCH] Small fixes for IE --- colour.py | 2 +- templates/index.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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) {