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 <[email protected]> | |
* | |
* Adapted from | |
* https://gist.github.com/faisalman/4213592 | |
* | |
* Copyright 2012-2015, Faisalman <[email protected]> | |
* Licensed under The MIT License | |
* http://www.opensource.org/licenses/mit-license |