Skip to content

Commit

Permalink
Greyscale fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Feb 8, 2018
1 parent 3a47eab commit aa2b9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/geojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ L.easyButton('fa-refresh', (btn, map) => {

let colour = 100;
function setColor(event) {
let tiles = document.styleSheets[3].cssRules[0];
let tiles = document.styleSheets[4].cssRules[0];
colour = event.target.value;
tiles.style.filter = `grayscale(${100-colour}%)`;
}
Expand Down

0 comments on commit aa2b9d5

Please sign in to comment.