Posts by Rodrigo Müller • 7 points
3 posts
-
-2
votes1
answer61
viewsQ: Get pathlib file name only
I currently have the following code: from pathlib import Path for file in Path("resources/maps").glob("*.json"): print(file) Which returns: resources\maps\map1.json resources\maps\map2.json…
-
-2
votes1
answer125
viewsQ: Add onclick event in javascript button
I’m trying to make a page that, when clicked, creates a button that when pressed it calls the function back in the history: function goBack(){ window.history.back(); } function criarBotao(){ var…
-
1
votes2
answers184
viewsQ: Change image src with javascript
I’m trying to make the image change every time I click the button, so that when I click on image1 it becomes image2 and when I click not image2 it becomes image1 <script> function…