{combine_css path=$SOCIALBUTT_PATH|@cat:"template/style.css"} {html_style}{literal} .socialbutt.disabled thead img { -webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */ filter: url("data:image/svg+xml;utf8,#grayscale"); /* Firefox 10+ */ filter: gray; /* IE6-9 */ } {/literal} {if $light} .not-light {ldelim} display:none; } {/if} {/html_style} {footer_script}{literal} jQuery("input.enable").change(function() { $parent = $(this).closest("div.socialbutt"); if (!$(this).is(":checked")) { $parent.find("thead label").attr("title", "{/literal}{'Enable'|@translate|escape:javascript}{literal}"); $parent.addClass('disabled'); $parent.removeClass('enabled'); } else { $parent.find("thead label").attr("title", "{/literal}{'Disable'|@translate|escape:javascript}{literal}"); $parent.addClass('enabled'); $parent.removeClass('disabled'); } }); jQuery("input#light_mode").on('change', function() { if ($(this).is(":checked")) { $('.not-light').hide(); } else { $('.not-light').show(); } }); jQuery(".showInfo").tipTip({ delay: 0, fadeIn: 200, fadeOut: 200, maxWidth: '300px', defaultPosition: 'bottom' }); {/literal}{/footer_script}