You need to download libwebp and put in the shell script folder. You must have installed the jpegoptim, giflossy (gifsicle), pngquant and imagemagick library.
- Convert folder and put results in the results folder:
| // find all elements with a z-index and indicate what they are. | |
| // uses css outline which is not supported in IE <8 | |
| function contrast(color){ return '#' + | |
| (Number('0x'+color.substr(1)).toString(10) > 0xffffff/2 ? '000000' : 'ffffff'); | |
| } | |
| jQuery('*') | |
| .filter(function(){ return $(this).css('zIndex') !== 'auto'; }) | |
| .each(function(){ |
| /** | |
| * Conver From/To Binary/Decimal/Hexadecimal in JavaScript | |
| * Matheus Graciano <graciano.dev@gmail>, Lucas Gonzalez <lucasmgonzalez1992@gmail.com> | |
| * | |
| * Adapted from | |
| * https://gist.github.com/faisalman/4213592 | |
| * | |
| * Copyright 2012-2015, Faisalman <fyzlman@gmail.com> | |
| * Licensed under The MIT License | |
| * http://www.opensource.org/licenses/mit-license |