Skip to content
Advertisement

Category: Questions

Promise.all convert result with parameter from nested loop

The following loop to call an async function, here a smart contract interaction using web3. I want to get the balance of an array of token by calling balanceOf() and convert it subsequently with the attached usdrate. For parallel processing I am using Promise.all. Obviously, the function below Promise.all() with access [I % currency.length] does not work, since sorted result

Generate multiple select inputs with v-for

I am desperately trying to generate multiple select inputs for a given JSON from an Backend but I cant make it work. The JSON response I am getting looks smth like this: Ive already tried several ways and my last attempt looks like this: Template: Script: I am also not super happy with the JSON struct I am getting. The

How to access the value of x after onclick is run

I have this code: I am attempting to make a “safe” with a number pad. In order to open the safe, the user must enter a specific code in order to “open it”. Currently, I am working on showing what the user has input through the number pad onto the display. However, I am unsure on how to get what

sidebar navigation text not smooth while transition

i try to change css but not work for text short text is ok but i have to put long paragraph when click it not smooth while transition working i use template from w3school, i want text show up smooth like button or short text please advise me how I should use it to remember for next time i can

Advertisement