Posts by Kakiz • 175 points
5 posts
-
0
votes1
answer45
viewsA: Prioritize onclick event
Put this in the text field to prevent propagation of relatives' events. More information here document.querySelector('.seuInput').addEventListener("click", e => { e.stopPropagation(); })…
javascriptanswered Kakiz 175 -
1
votes1
answer111
viewsA: * Referenceerror: Session is not defined *
tries to put Sessions instead of Session, Sessions is being passed as parameter store.all((err,sessions)=>{ const currentSession = sessions[sessionID]; // referenciar a sessão ID…
-
0
votes1
answer59
viewsA: How to style child components through parents and components already created by @material-ui
On the site of the material UI, they give several examples how you can style your components. One way to change the overall "CSS" of the components is like this: const GlobalCss = withStyles({…
-
0
votes5
answers4508
viewsA: Problem in video autoplay
So I’ve had a similar problem with tag video tries to add a muted inside the tag example: <video id="Home-vid" width="100%" autoplay="" muted="" loop=""> <source src="files/video_home.mp4"…
-
2
votes1
answer49
viewsA: Display only the div corresponding to the clicked button
I’d do it that way $('footer button').each(function(e){ // Seleciono os botoes do <footer> $(this).click(function(e){ // Para cada botão adiciono um evento de click let nome =…