Posts by Johnny Silva • 41 points
6 posts
-
-2
votes1
answer35
viewsQ: wordpress template is outside the <Section>, how to display inside?
$teste_tp_slugs = ['company', 'search', 'customers']; foreach ($teste_tp_slugs as $teste_tp_slug) { $output = ''; $output .= '<section id="teste-site-home-' . $teste_tp_slug . '">'; $output .=…
-
-2
votes1
answer92
viewsQ: I’m trying to replace the letters with numbers and then add them up
$nome = "Johnny Henrique da Silva"; $vogais = array('A','E','I','O','U'); $subCarVogais = array('a' => '1','e' => '5','i' => '1','o' => '7','u' => '6'); function…
phpasked Johnny Silva 41 -
0
votes1
answer67
viewsQ: Count characters from an input without spaces between words
$nome = $_POST['nome']; $data = $_POST['data']; $quantidade_car = strlen(trim($nome)); var dump($quantidade_car); echo "$nome <br> $data <br>…
phpasked Johnny Silva 41 -
1
votes1
answer33
viewsQ: Press 3 box at a time by clicking the button
$(".box-hidden").slice(0, 3).show(); $("#loadMore").on('click', function (e) { e.preventDefault(); $(…
-
-4
votes1
answer47
viewsQ: Transform this jQuery code into pure Javascript
$(window).scroll(function(){ var posicao = $(window).scrollTop(); var cor = Math.round(posicao / 1000); $('.social li a').css('border-color',…
javascriptasked Johnny Silva 41 -
1
votes1
answer34
viewsQ: Add class in menu link when scrolling in the corresponding Section
var className = "scroll-link"; var links = document.getElementsByClassName(className); for (var i = 0; i < links.length; i++) { …
javascriptasked Johnny Silva 41