Category "javascript"

RegExp Match all text parts except given words

I have a text and I need to match all text parts except given words with regexp For example if text is ' Something went wrong and I could not do any

How add VueJS event listenner on a component in the mounted section

I important a componant and I want to attach an event listenner to the button element which has the class qkb-bubble-btn. I understand the fact I should put thi

Apply style to images before they are loaded

Particularly I am interested in applying style for images and background images. The style is injected with a CSS class into the page from a chrome extension. I

Change multiple Fullcalender Day Cell Backgrounds from external Data specified in Database Table

Im trying to change the fullcalendar (v3) day cell background-color for specific days declared in a databse table. So far i was able to try it with manual input

how to center modal and have it come underneath the link button?

I have a front page that has 4 links, and each link is suppose to open up a modal. However for instance on the first link 'Vente' in my code the modal only come

How can i await for file to upload so i can upload next image with params

I am using Drag and Drop file to upload multiple images. ngx-file-drop How to use with async await to upload images because i want to send params to next image

get the variable $i from counter in text

I just don't know how to make this work. I got this Javascript $(".email").on("keyup change", function() { if ($(this).val().match(/@gmail/i)){ $(".groupa").sho

Duplicate Encoder JavaScript, try to use indexOf but the output is still incorect

convert a string to a new string where each character in the new string is "(" if that character appears only once in the original string, or ")" if that charac

Find nth week recurrence on week days with moment js

I have just started moment js, I'm trying to generate recurrence for every nth week for defined week days I have tried this code so far but not getting True for

Remove the values from array1 by referring to array2

I have two arrays and I want to remove the values from array1 by referring to array2. The expected result is ["b", "c",]; array1 = ["aa", "bb", "b", "c",]; ar

Performance improvements for split screen with scroll overflow

Edit: Turns out the performance problems only happen during development. Once Gatsby builds the project, everything runs well. I'd be curious to hear if anyone

Add a function on focus and remove it on blur

I'm trying to set a simple script where, whenever you focus on an input and press Enter, something happens. Just like in those searchboxes on webpages and forum

Cannot shallow render a component using IntlProvider

I have the following component, using Flow: //@flow import React, { type Node } from 'react'; import { useIntl } from 'react-intl'; type Props = { balance: Ob

get a list of locations for indoor routing

I'm trying to add indoor routing to our HERE map. I'm trying to use the example from the sample site to start with. However I don't know the longitude and latit

Use Browser Search (Ctrl+F) through a button in website?

I have created a website and have added a button and lot of text. What I want is to use the browser search (Ctrl+F), when I press the button which I added in we

Nuxt 3 package import specifier "#internal/nitro" is not defined

I tried installing the new version of Nuxt.js with command: npx nuxi init nuxt-app Then tried just run and project in Nuxt 3 works fine. But when I tried run t

What's the error "Objects are not valid as a React child (found: object with keys {_id, name, img, des, price, quantity, sName})."

I don't understand why I'm getting this error. I want to understand what's wrong with the following code. const Book = ({ book }) => { const navigate

window not defined build error on react-editor-js

As mentioned in title I'm facing the error when I'm trying to build. When I run npm run on my machine with below fix, I get the editor working, but when I'm try

Why does `navigator.clipboard.writeText` not copy text to clipboard if it is proceeded by alert() on android

When trying to copy some text on chrome for android with navigator.clipboard.writeText() it works as long as I don't show an alert afterwards. The moment I show

How to get attribute of dynamically generated element ASP.NET

I know there are tons of questions on this topic and I've tried many of them to no avail. If anyone has any suggestions, it would be greatly appreciated. I'm tr