Página inicial – V2 › Fóruns › Docly Theme Support › About bbPress Plugin & Features › Responder a: About bbPress Plugin & Features
28 de novembro de 2021 às 9:14 AM
#7213
Mestre
Use <pre> tag for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add.
[code]
JavaScript Code
[code lang="js"]
function general() {
$('.collapse-btn').on('click', function (e) {
e.preventDefault();
$(this).toggleClass('active')
$(".collapse-wrap").slideToggle(500);
});
$('.short-by a').click(function () {
$(this).toggleClass('active-short').siblings().removeClass('active-short');
});
}
[/code]
-
Esta resposta foi modificada 4 anos, 6 meses atrás por
Finne.