gray.js
function colorToggle() {
var mode = $("#colorToggleButton").data('mode');
var $toggleButton = $("#colorToggleButton");
if(mode == 'gray'){
$('body > div').addClass('gray-color-filter');
$toggleButton.removeClass('change-to-grayscale');
$toggleButton.addClass('change-to-color');
$toggleButton.data('mode','color');
} else {
$('body > div').removeClass('gray-color-filter');
$toggleButton.removeClass('change-to-color');
$toggleButton.addClass('change-to-grayscale');
$toggleButton.data('mode','gray');
}
}
.gray-color-filter {
-webkit-filter: grayscale(1)!important;
-webkit-filter: grayscale(100%)!important;
filter: gray!important;
filter: grayscale(100%)!important;
}