<script>
$(document).ready(function () {
//пример 1
$(".Hideopen").click(function() {
var el = $(this).parent().children(".Projects");
el.toggleClass( "minus" );
if(el.hasClass('minus')) {
$(this).text("(ЗАКРЫТЬ ВСЕ)");
} else {
$(this).text("(РАСКРЫТЬ ВСЕ)");
}
});
//пример2
$(".down").click(function() {
$(".bonus").toggleClass( "open" );
if($(".bonus").hasClass('open')) {
$(this).text("(закрыть)");
$(this).addClass("up");
} else {
$(this).text("(открыть)");
$(this).removeClass("up");
}
});
});
</script>