Small fixes for IE

This commit is contained in:
Ruben 2017-03-11 20:12:48 +01:00
parent 19346baee5
commit e5a66000fd
2 changed files with 5 additions and 5 deletions

View file

@ -145,7 +145,7 @@ def getSvgFromDbImages(images, elId = ""):
# Posibilitiy: determine position based on avg(saturation, value) => dark & grey inside, shiney and colourful outside # 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 # 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 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 = '<circle cx="%s" cy="%s" r="%s" style="fill:%s" onmouseover="triggerover(\'%s\', this)" />' % (pos[0], pos[1], r, getColourAsHex(rgb), colourId) c = '<circle cx="%s" cy="%s" r="%s" style="fill:%s" onmouseover="triggerover(\'%s\', this)"></circle>' % (pos[0], pos[1], r, getColourAsHex(rgb), colourId)
svg += c svg += c
svg += "</svg>" svg += "</svg>"

View file

@ -241,11 +241,11 @@
<svg viewBox="-160 -160 320 320" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:95%"> <svg viewBox="-160 -160 320 320" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:95%">
<defs> <defs>
<mask id="mask1" x="0" y="0" width="100" height="100" > <mask id="mask1" x="0" y="0" width="100" height="100" >
<circle r='155' cx="0" cy="0" style='fill:white;' /> <circle r='155' cx="0" cy="0" style='fill:white;'></circle>
<circle r='50' cx="0" cy="0" style="fill:black" /> <circle r='50' cx="0" cy="0" style="fill:black"></circle>
</mask> </mask>
</defs> </defs>
<circle r='155' cx="0" cy="0" style='stroke:none;fill:rgba(0,0,0,0.1);mask: url(#mask1);' /> <circle r='155' cx="0" cy="0" style='stroke:none;fill:rgba(0,0,0,0.1);mask: url(#mask1);'></circle>
</svg> </svg>
<svg id="spinner" version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 1000 1000" style="width:5%;height:5%;top:45%;left:47.5%;"> <svg id="spinner" version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 1000 1000" style="width:5%;height:5%;top:45%;left:47.5%;">
@ -303,7 +303,7 @@
oReq.addEventListener("error", transferFailed); oReq.addEventListener("error", transferFailed);
oReq.addEventListener("abort", transferCanceled); oReq.addEventListener("abort", transferCanceled);
oReq.open("GET", "/colours?"+type+"="+value); oReq.open("GET", "/colours?"+type+"="+value);
oReq.send() oReq.send();
for(let unsetLink of links) { for(let unsetLink of links) {
if(unsetLink.dataset.param == type && unsetLink.dataset.id == value) { if(unsetLink.dataset.param == type && unsetLink.dataset.id == value) {