Posts by angelorubin • 119 points
3 posts
-
1
votes2
answers136
viewsA: Improve code jQuery
Hello, It is less readable, but can be done in one line: $(document).on('click', e => $(e.target).hasClass('menu') ? $('.sidebar').toggle(500): null) See the example on Codepen.…
-
2
votes2
answers190
viewsQ: What is the meaning of the prefixes of pseudo-elements in css?
What is the meaning of the prefixes of pseudo-elements in css? For example - Nth-Child, which means Nth at the beginning?
cssasked angelorubin 119 -
8
votes3
answers4468
viewsQ: Best(s) way(s) to use Dependency injection in Laravel
What(s) is the (s) best(s) way(s) to use Dependency injection in the Expandable? The one I was using was this: public function __construct(Cliente $clientes, Telefone $telefones){ $this->clientes…