Skip to content

Integrate interactive map with React

I want to have an interactive map in an idlegame where you can click on a tile (See screenshot) and something should happen. I am trying to do so with an SVG and paths around the tile. Please tell me if there is a better way to implement something like this. To my problem: I have finally got my Map-Component

Send a message if there is a role Discord.js

Bot send a message if the User who clicked the reaction has the ROLE “ID” I decided to try this, but it didn’t work out ====Here is the main Code==== Answer You should check the role of the member who reacted (the member found in reaction.users.cache). reaction.users.cache returns a user, an…

It doesn’t print the names on screen with fetch call

I have to call the data from the given URL with fetch call. It should print the name of academy in and student names in on screen but when I click the button nothing happens. I know maybe its a huge code and it takes time but I would be grateful if someone could help me. Thank you in advance.

javascript ondrag when pressing itself

Inside the div I have a set of p elements. I want to drag the selected element to the input Example: I want to transfer the text from the p element to the input when dragging, but in a multiple way, for all the p elements How, when dragging any of the multiple elements, get the text from the p

How do I wait for the function to complete?

json/shortcuts.json file is: I’ve tried async and await as well as passing one of the functions as a callback. Nothing succeeded:( I think function works bad because of asynchrony. I just started learning of JS, so i am beginner and kindly ask for help! Thanks! Answer Because axios already have a callba…