I am currently trying to make an image replace another in a fixed position while also changing the color style of the text at the same time. The image and the text needs to change when one or the other is being hovered over by the user. I have the image and text in a div and attempted to use
Some phone numbers do not receive otp sms message with Firebase phone auth
I am experiencing unpredictable behaviour when authenticating users with firebase phone Auth for web, with the javascript modular web api. These are my dependencies: “@firebase/auth”: “^0.19.11”, “firebase”: “^9.6.8”, I have tested approximately 20 real phone numbers and some test numbers and for most of the time it works fine. But for some it fails to send the OTP code, without
make a div show on page load
This is a navigation toggler that toggles between showing different divs id=(home, profile,deposit,withdrawal). I need the div id=home to show by default immediately the page loads. Answer I made a function that takes one String argument. Hiding all divs, and after then set the display of the first div that the id is equal the given string. At initialization the
Generate chart in table cell according to json values
I need to create a bar or column chart inside a table cell of each row. i.e I need a graph to be populated for each category inside table cell. JSON: I need to create a bar or column chart inside a table cell of each row. I Want JSON values to be populated in the graph w.r.t each category.
Uncaught TypeError: Cannot read properties of undefined (reading ‘companyName’) JS Objects
i have a problem about when i trying mapping my data. I want a reach company name in supplier in products. How can i fix it? this is error message error this is data: https://northwind.vercel.app/api/products edit: @Tim Roberts found the solution. Only some elements have a supplier so other one’s dont have. i took the error message when i try
On clicking a button to add elements to an array in javascript, each time console.logging the array is returned with one less element
On, clicking a button to add an item to an array initialised as cart, the added item immediately appears in the cart array however, when I console.log the array, the item added does not get shown until after the next click. In that the first time the add button is clicked and the cart array console.logged; an empty array is
CSS Printing Properties using Textarea
I have to print several textarea elements in my code. Here is an example of one: I would like the text to be printed on the same line as Division and push the text to the next line once it runs out of space. How would I fix this issue? Answer I correct the HTML part, because there were some
Handling [object Promise] from noblox.js in discord.js
Surprisingly difficult to find this on google… So I’m making a discord bot with discord.js and connecting a noblox.js bot to it. Payout is commented because I do not want to yet, I am just trying to make messaging work. Output on discord when I type the !payout command: Answer You have to await the getUser as it’s an async
MongoDB match expression query not working
MongoDb query match expression not working. I have a posts collection and want to return only those posts which match the user Id of the user who created it but my query does not seem to be working. Sample Dataset MongoDb Query:- Query Output:- The query does not work output contains posts created by all users it is not filtering.
How to store data from a MariaDB in my node.js environment
I have a MariaDB that stores Energy-Data like voltage, frequency and so on. My aim is to visualize the data in a Web-application. Though i achieved to connect the MariaDB to node.js and log the data on a specific port thanks to the code below, i don’t have a clue how to store this data for further mathematic operations or