I have a small piece of javascript to add a css class to a button element that already contains two classes under the top level of a menu when clicking outside that menu. I understood that writing the two classes as below should select only elements that have both classes. It does what has been asked on the e…
Tag: javascript
How to make a password system for challenges like rootme web [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I’m making a website where you have to respond to questions. But the…
undefined is not an object (evaluating ‘_this.props.navigation’) in react native when passing parameter
im passing parameter from screen A to screen B Screen A : Screen B : but theres an error on screen B that say ‘undefined is not an object (evaluating ‘_this.props.navigation’)’ im using react-native-jitst-meet to create simple confrence app for class project. I really hope you guys can…
Build a tree array (3 dimensional) from a flat array in Typescript/Javascript
I have incoming data in this format: I want the output to be something like this: Basically, it is a three dimensional array with first level being the Countrie, second States and third Cities. I have tried the following code: But the above code works upto second level and does not add cities to states. Could…
Create Form dropdown list with input amount value
I ask for help or suggestions for the form I made: Template Design: I want to create a form where the item list can select the available items in the drop down and then give it the amount used. then there is an add button to add another item. i am confused how to make html form and javascript /
How to make a timed bool in discord.js
I want my bot to reply “Good morning” whenever someone says “good morning”, for example. I’ve got all that figured out, but now I wanted to put a timer onto it and it is getting a bit more complicated. I want the timer to be for absolutely everyone on the server. If anyone says g…
Access nested JSON with month numbers
i got an json file with monthly values. i need to access these. I am not able to archive this. Maybe i just make an mistake. How can i get the value from the second “sales” with 9.99? I use JS to get the total_sales. This works. I really need you help for this. For more clearence: The JSON-File is
Display values of variables taken from div html by means of d3.js
I am trying to display the values of an array, but for some reason it shows only NaN… can somebody help with the job? thanks in advance. {{ Value1 }}, {{ Value2 }} and {{ Value 3 }} are being deployed correctly, this is a picture from the html: Answer Your recent question used text input elements to cre…
P5 try to factorize Graphics and Canvas code
I want to factorize code for drawing same thing in a graphics or in the standard canvas. ( In my real program, i want to have autonomous class that draw themselves in some context given at construction time ) I cannot find some equivalent from canvas that can match graphics instructions except line. In the fo…
VUE component for Select all option
In my application I have multiple tables on same page (also multiple pages). Each table has “Select all” option and checkboxes in each row. Code reuse would be really helpfull but I cant get this working. Currently I have following methods, but I always get Error in render: “TypeError: Canno…