gradientmaps
gradientmaps copied to clipboard
gradientmaps.js
The link to the blog post no longer exists. Here an archived version of it: http://archive.is/FzP6p
Found out, that if there is a _base_ tag present on my homepage, then on Firefox the gradientmap doesn't work. It simply doesn't find the filter. There are is a...
Please see screenshot: https://www.dropbox.com/s/ddmvfbfpjbm8fde/Screenshot%202014-03-14%2014.41.10.png To me, Safari is much closer to what I would think it should be than Chrome. Not sure if this is a Chrome bug or something...
For example: ``` var elemsWithGradients = document.querySelectorAll('[data-gradient]'); for (var elem in elemsWithGradients) { if (elemsWithGradients.hasOwnProperty(elem)) { var gradient = elemsWithGradients[elem].dataset['gradient']; GradientMaps.applyGradientMap(elemsWithGradients[elem], gradient); } } ``` It's because filterID is a...