Category "javascript"

Decrypt AES 256 CBC using crypto-js

i have the following key to decrypt erUF9SRCNQZPCBezVGzYYnUVgwAKZTvXzS5Zhgw6B/4= into "54545fwfwefweffvfdv", I tried searching for similar question but the lack

The SDK has not been intialized. Got this error while running react native android application in debug mode

I am using react-native-fbsdk-next(version 4.6.0) in my react native project. I followed the docs accordingly but then it started giving me following error sinc

How to use a capacitor plugin meant to be imported in a vanilla js app

I'm currently pulling hairs trying to figure out how to go about this. So, I'm working in a vanilla JS environment with no webpack setup served with capacitor a

if i using angularjs function excel upload button function how to write my code

I writed code $scope.updatepricingimport = function(file) { debugger if(file == null || file == undefined || file == "") {

How to add an active class to an active Link in react router dom v6.3 using styled components - ReactJs ^18.1.0

I have designed my NavLinks using the styled-components. I want to add an active class to the active link I am unable to do it. I tried the isActive property bu

Change drag image inside a DragEnter event

I'm trying to define the image that appears when I drag an element inside my page. I saw how to do it with DataTransfer.setDragImage() in that link but with me

Webpack + JS: Multiple outputs with one file

It it possible to make several outputs with one JS file, but different versions: The main JS file should include different settings or extras: Version 1: import

javascript regex to match a combination of and/or expression

I want to match a combination of and/or expression and match only sentences in between for example test1 test2 and test2 or test4 test5 I want to get matches t

How to execute dart generated javascript from dart

I have this dart script that I compiled to javascript. How do I go about calling this javascript from dart? I'm trying to eventually call this from a web worker

Take input from user and verify if it is present in an array. (Javascript)

How can I take input from the user and check if the number is present in my array or not. I need to generate random number from array1 and move it to array2. Th

leaflet replay on map plot replay history of vehicle

my question is how to replay the hisotory of vehicle on leaflet map i have plot the polyline on map but maker is not poloting the marker should plot according t

Problem with jQuery when using chrome extensions popup

There is a website and there is a button that has the disabled tag. I'm trying to write a popup extension where there is a button, by clicking on which this tag

Can I extend components of this type - PaperTextInput.Icon or Tab.Navigator when using styled components?

I've been trying to extend components like PaperTextInput.Icon or Tab.Navigator but have been failing and I'm wondering how am I supposed to extend them? What I

Recharts 100% width is not working in Nextjs / Reactjs. It is not occupying the entire width and also act like a block

I am using Recharts with Next.js and Tailwindcss, I copied a barchart code snippet in Recharts to create my own barchart too. I have to change the height to asp

How to get and console.log a variable value from a JavaScript function, running on a website?

I am trying to get a number on a website. but it is on a canvas. so I am looking to get that number from the javascript which is used to draw the canvas.

How do I search a string "backwards"?

I have the following code in Angular. I want to be able to find "north america" by typing "america north". How do I do that? const getContinents = keys =>

Cache manegment in recoil js

I decided to try using recoil instead of redux and ran into the problem of caching mutable collections. To be more precise, the problem is not in the response c

I'm trying to exclude elements from an Array, but I'm doing somthing wrong

I'm trying to create this script: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/seek-and-destroy

Webkit browser fullscreen request changes body colour and removes console

I am currently preparing a website which should switch the full website to fullscreen upon user request. I use the following function: launchFullScreen(document

Middleware "strapi::session": App keys are required. Please set app.keys in config/server.js (ex: keys: ['myKeyA', 'myKeyB'])

Trying to set up strapi and cloudinary I watched two videos and they are all OK, but I have an error, tell me why? Middleware "strapi::session": App keys are r