WP-tools/toggle-aid/js/toggle-aid.js

19 lines
686 B
JavaScript
Raw Permalink Normal View History

jQuery(document).ready(function($) {
if($(".toggle-help-links")){
// $(".tooltip-al-wrapper:parent").css('display','none');
$(".toggle-help-links").click(function(){
if($(".tooltip-al-parent").is(":visible")){
$(".toggle-help-links").css("background-color","");
$(".tooltip-al-parent").css('display','none');
}else{
$(".tooltip-al-parent").css('display','block');
$(".toggle-help-links").css("background-color","#ff8f8f !important");
$("#wp-admin-bar-toggle-help-links a:active").css("background-color","#ff8f8f !important");
$("#wp-admin-bar-toggle-help-links a:focus").css("background-color","#ff8f8f !important");
}
});
}
});