Category "javascript"

getting error while adding css to button in my react js app

I was styling a button in my react js website and got this error while writing the css for it, actually I was going to animate it after hovering the mouse. its

How updated object with child component should reflect on parent component

I want to add the macchines in machine array so I defined a specific component with add function in it. So when I add the "process" in "processes" array then it

How to delete a field in a collection with firebase-admin?

I have a collection like this into firebase realtime database: I need to delete the first element (the one that finishes with Wt6J) from server side using fire

find max elements of an array in JS, elements might be same

I know there are a lot of questions about how to get max from an array, but they all have unique elements. my scenario is different, for example: find_multiple

How can I hide code from the Edge browser in React?

I have developed a dummy React application using create-react-app. Stackbliz Reference I know that when we do npm run build a build is created and there are map

How to implement only client to graphql subscriptions in a website with only front code?

I am coding a only front end site using Django. to query data to a DataBase I use AJAX to my Django and Django requests a third party GraphQL. so far all works

How do I test for an empty JavaScript object?

After an AJAX request, sometimes my application may return an empty object, like: var a = {}; How can I check whether that's the case?

specific text in prompt for pythonscript

In JavaScript, you can use prompt("This text is above the field of the prompt.", "This text is in the field of the prompt.") to get a customized window appearin

Accessing a value from a different js file in reactjs

how can I use the variable below theId from file1 in another js file2 in react? file1.js import ..... class File1 extends React.Component { constructor(pr

How to render JSON output from an API on the same webpage in which the user gives the input , preferably in a Div container in Express JS?

So here, I am using NodeJS with Express Js. I have stored the JSON value from an API in a variable and I am trying to show the JSON output on my HTML page, I a

Embed HTML5 YouTube video without iframe?

Is it possible to embed an html5 version of a youtube video without using an iframe?

Can I find out the color scheme in the browser

since it is possible to find out if the PC is in darkmode or not I would like to know if it is possible to find out which colorschemer the User has taken e.g. y

react-dom.development.js:86 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. how can I solved this?

react-dom.development.js:86 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-l

react-dom.development.js:86 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. how can I solved this?

react-dom.development.js:86 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-l

On straching a div open sidenavbar

Hi everyone when I'm using my phone i get to know that there is one feature given by my phone ,they provided a straight line while stretching that div I'm able

How to add multiple Google Analytics trackers on website? (HTML, JS)

I'm working on a portfolio, and I had an idea to add a section saying: "My work has been seen by this __ many people." In order to do this I have settled on usi

While sending request to Auth0 to get access token, is it possible to hide payload with secret keys which are visible?

I'm using Auth0 for sign in/sign up flow and user has possibility to update his profile information. In order to do that I'm requesting a token from auth0 using

Create Firebase dynamic link inside onCreate of firestore using Firebase Cloud functions

I was wondering to create a dynamic short link when the item is created on firestore. I want to create a dynamic link when onCreate method of firestore cloud fu

How to Fix Firebase invalid API key

I'm using my API key stored in a .env.local file. And it setup correctly but not working assert.ts:128 Uncaught FirebaseError: Firebase: Error (auth/invalid-api

delete a repository and create new repository in same file

I have a situation where I needed to create a new repository from the existing repository on Github (with a different name) but I want to import the log/history