Category "javascript"

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

Having a problem with installing a package on React 18

I tried to install react-neshan-map-leaflet and everything was installed well without errors, After the project started, I saw this error: ERROR in ./node_modul

Vue 3 + Vite image URL becomes undefined after build

I encountered a bug where I dynamically generated a URL from props for image import in my Vue 3 component and it becomes undefined after build Script used to ge

Azure Functions bundle and extension, functions versions - javascript confusion 2.x, 5.0.x+?

I am making an azure cloudfunction with nodejs that gets triggered by a servicebus topic. Reading this I am super confused, they have a version for everything a

Navigation with arrow keys to the left does not work with input readOnly

I have built a table with 4 columns. 1 column is text and the other 3 are inputs that are set to readOnly. For this table I have written an arrowKeyCodeNavigati

How to change the iFrame src on click of a button

<section class="ep1"> <iframe src="https://example.com" width="640" height="480" allow="autoplay"></iframe> </section> <but

React setState resets string

I'm trying to get writed line from XTerm.js with a callback from parent element whenever user puts a new char to the terminal then parent element updates the st

Where does laravel gets the file name form a base64 decoded file

i have an file encoded in base64 and when i decode it and dump with dd() in laravel and it shows the file name and type so i was wondering where laravel stores

My .style.background doesn't style the item

I am trying to make a timer and make it so that when the time gets below 10 seconds the text turns red. I am using backgorund-clip to style my text, but for som

jwt.verify not throwing error for expired tokens

I'm using JWT - jsonwebtokens in Nodejs. I'm creating a token and want to throw an error if the token expires. My token is created successfully and I'm checking

copy text onclick from <p> tag

<div class="d-flex flex-row justify-content-between"> <p class="mb-0 me-1 py-2 ps-4 add-text" id=

Javascript functions stop working when using import at top of script, even without trying to use what's imported

I'm trying to recreate a simple program of mine using lit instead of just basic js, but adding import statements seems to break every function. Things seem to w