Category "javascript"

BottomNavigation in MUI cannot resize smaller than 400px if containing 5 items

I have a bottom navigation that contains 5 elements. When you resize the window lower than 400px, the bottom navigation doesn't "squeeze", so to say; it remains

React-Typescript: I don't find the problem why my getCurrentTime Function won't work

I am trying to write a function to display the difference time between current time and e.g. the creation time of a message. Herefore I wrote a function to get

VSCode `typeAcquisition` for browser imports

I want to have .d.ts typings for Lit which will be served from the esm.sh CDN. I want to use VSCode's built-in type acquisition system to get Intellisense for t

How to get a better approximation of a thick bezier curve?

Let's say I already have a bezier curve approximated by many straight lines (the bezier array in the code), and I would like to draw it with a series of rectang

Generic Events Emitted from Component in Angular ~13

I'm trying to determine if I'm going down an undesirable path with how I'm approaching generic event management in an Angular application. The question I have i

fabric.js updating Line coordinates inside of a Group

I have set up the functionality that I want with a regular line using fabric.js. See the code pen below. I can hit the add arrow button to add a line to the ca

How to set custom scale to polar area chart?

The Problem: I am using polar area chart. For slices in this chart, each value after the largest value should appear one level smaller. The level is as follows:

Reactivity on props Vue.js

I am in the beginning of learning Vue, and having a hard time understanding how to define props etc. using the composition API. I have a component (ACE Editor),

Appending multiple Vue2 components from ajax html response not working

I'm trying to append multiple vuejs components with jquery ajax, but it's not working. It all works fine, until response returns more than one component, or com

Is it bad to put all of the javascript code into a block scope? [closed]

I am making a website,and i don't want users to execute functions in the script from the javascript console.I figured out i can put all of the

How to get a index of class onhover?

I have the following div structure: <div class="0"> <div class="test"></div> </div> <div class="1"> <div class="test"

How can I get full image after zooming in canvas

I am facing this issue where once I zoom in on some image in the canvas in javascript, some part of the image goes outside of the canvas. Then I am drawing some

I'm trying to implement Infinite Scrolling in a React application using the IntersectionObserver API but i'm running into some issues

I'm trying to implement infinite scrolling and it's supposed to work by getting data in pages from the API...and then using the IntersectionObserver API, checki

Cannot Parse properties from HTTPRequest using Javascript - Homework

I am having an issue parsing properties from the response I get to an API call. I can see the results using a console log, but when I attempt to parse the data

How to find QnA Maker settings to send in Bot Framework SDK?

I need to find the information below QnAKnowledgebaseId= QnAAuthKey QnAEendpointHostName= to insert it into the .env file of the bot framework i created and the

IonInput: IonOnChange event firing twice

Current behavior: IonOnChange event for IonInput fires twice when backspacing 1 character. Version: "@ionic/react": "5.6.11", Expected behavior: When value is 1

Connect-flash not worked when imported via ES6 module import

I'm trying to setup connect-flash for my nodejs express application. I'd like for a message to be flashed when a user goes to certain pages. I'm using ES6 packa

Vue3 / Ionic: Auto Scroll down

I am writing a VueJS App with Ionic. The App also has a Chat. Obviously, you want to see the lastest message, not the oldest one, so the app needs to open with

How to replace words in real time like with Facebooks emoticons (javascript)

I want to replace words with others as soon as you finish typing them like Facebook emoticons. I ran into a few problems though. var word = 0; var matches =

How do i move the "interaction" with the "blob" in this animated blob?

I downloaded this javascript blob graphic, I've added it to my page, and moved it to the right using CSS, But when I move the mouse to interact with the blob, i