Category "javascript"

how to make a percentage calculator using python

I want to develop a calculator that does simple math using Python with user input for one of my projects for high school, but I can't figure out how to write th

Better way to modify values in a single array to different format

This may be a duplicate question. But I didn't find any similar questions in this forum. I'm trying to modify values in an array to different format. arrayInput

Create Command-line Launcher Intellij not found

I would like to use idea pom.xml from command line to launch a simple Maven project, and so I think I need to configure using "Create Command-line Launcher"

How to create in Recharts a custom vertical label for the YAxis that will scale to fit in case the label is too long?

I am building few composed charts using the Recharts library and some of the vertical labels on the YAxis are too long and are getting cut off. A picture of m

How to verify Image is visible/exists on front end using <img src> or <a href> tag

Does anyone know how I can verify if an image exists using its <a href> or <img src>? I can only verify by its class such as: it('Verifying vertical

Cypress doesn't take screenshots in CLI mode

I'm trying to take a simple screenshot using Cypress, however, it only works in the Cypress GUI (cypress open). Whenever I run cypress run, it shows that the te

QuaggaJs: Browser compatibility issue for barcode scanner

I am using QuaggaJs to scan the barcode. Everything is good and smooth for desktop version of scanner. But it gets broken when coming to mobile version of websi

The engine “node” is incompatible with this module when installing React-chartjs-2 Chart.js,

I am creating a doughnut chart by using chart.js with its react wrapper. It's working fine in the new project, but not able to install it in the main project. B

JS match.Media with media query range

I am having an issue getting my site to respond to matchMedia query range using media.Match. Updates based on comments: I need to use match.Media instead of CSS

React not rendering an mdxjs file

I am trying to create an addon for storybook that adds a tab to the top of the page, I have it working except that I cannot get it to render an MDX file in the

Hide/unhide section after form submit. Elementor

i want to create a confirmation form on elementor using elementor form but the next section it can shown depends on the user select the button. i.e if i choose

Change input value with useRef

I captured an element with the useRef hook of React. if I use console.log(this.inputRef) I get: <input aria-invalid="false" autocomplete="off" class="Mui

Read MS-Exchange emails from a custom folder using EWS managed api Nodejs implementation

Is there a way to read emails from a custom folder in MS-Exchange using EWS managed api (NodeJs implementation)? I'm able to read from the Inbox, but I have cus

Format currency in JavaScript removing .00

I am currently formatting numbers to display as currency values using the following code: return symbol + value.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1,"

Create dynamic svg icons component in ReactJs

I want to create a React component for my SVG icons but if I use this component several times (with different props) in another component, it always renders the

PayloadTooLargeError on loopback 3

I need to save base64 image in loopback model. When i'm saving base64 image i get an error saying . I have tried updating in middleware same added below, i have

How to check if browser has pdf viewer or not in javascript

I need to check if the browser has ability to show pdf in iframe. I was trying to simple check mimeTypes or plugins but now in Firefox on mac, it doesn't seem t

How can I get information on hover effect in atom editor as it displays in VScode?

Is there any plugin that I have to install in Atom to get this type of information on hovering on variables, objects or functions somewhat like intellisense? It

NuxtJs app returns 401 after log in with laravel sanctum

I'm trying to build a PWA with NuxtJS and Laravel is in the backend for the API. I use Laravel Sanctum for API auth and also I have NuxtJS auth module, I can lo

Trigger the remove() of an event outside of fullcalendar declaration

I'm working on a Filemaker webviewer and it display a calendar that is generated using Fullcalendar library in js. My issue is when I drag & drop an event i