Posts by leonardo vita • 69 points
6 posts
-
1
votes1
answer37
viewsQ: calculate the direction of touch (top || right || bottom || left)
To move the tail in this game https://leonardovita.github.io/javascript-snake-game/ using the touch screen of the mobile phone, need to calculate the position of the click on the screen, as in the…
-
2
votes2
answers164
viewsQ: use fetch api to present user cards, innerHTML overwrite cards
In this code I access a fake Rest api, I take the data, step for json, but when it comes to presenting the cards of the users I cannot find a good way to do this, innerHTML erases all the cards and…
-
0
votes1
answer62
viewsQ: deletes a folder locally but can’t save the change remotely on github "Everything up-to-date"
deletes the folder, I used git add and commit, it detected the changes in the commit but still when I push the master it says it’s "Everything up-to-date" what I’m doing wrong ?…
-
0
votes2
answers218
viewsQ: how to reuse HTML structure and change content (avoid Ctrl c Ctrl v)
div { display: flex; flex-direction: row; flex:1; justify-content: center; align-items: center; } img{ margin: 10px 0; } <div> <section> <h1>Titulo 1</h1> <p> alguem…
-
2
votes2
answers95
viewsQ: Move a div and remove it to release content behind
.atras{ display: flex; flex: 1; height: 100vh; justify-content: center; align-items: center; } .frente{ position: absolute; top: 0; right: 0; display: flex; height: 100vh; width: 100vw;…
-
0
votes1
answer170
viewsQ: effect for navigation on Onepage
body{ background: #000; display: flex; flex: 1; flex-direction: column; height: 300vh; justify-content: center; align-items: center; } p{ color: white; } .navegacao-lateral{ position: fixed; left:…