Category "javascript"

How to add multiple array items as HTML content?

I need to extract some words from a string of text, insert every character of that words inside a span element and then replace the extracted words with the spa

Images uploaded from Safari gets cut off

I have a form in a web app where you can upload an image, and then i send a POST call to a GAS script. Then in the GAS script i save the image in a Google drive

How to integrate js anim in vuejs

I have 2 files for an animation: Index.html and lazy-line-painter-1.9.6.min.js I want to integrate this animation to my vuejs code. I tried to put everything in

How do I pass a function with argument into event Listener

In my drawing app I have a function called addMouseOver. It adds an eventlistener to all squares so that when you mouseover them they turn black. The problem is

Difference between NodeJs preload option (-r) and explicit require in in REPL

I'm using esm which is a very useful package to support ES import keywords. According to the doc, in REPL, it can use preload command-line option to initialize

CryptoJS AES decrypt Hex String?

This is sort of a part two to the question Trying to print hex string with CryptoJS Basically, I have a function that uses CryptoJS to encrypt a message and spi

Sorting Algorithm for Tasks with Dependencies in a Gantt Chart

I'm building a Gantt Chart with dhtmlx-gantt that contains parent and child tasks. A parent task can be a dependent on another parent or child task A child task

TypeScript function that works on all numerical array types

I am trying to write a function that works on all of the JavaScript array types, e.g. on number[], Float32Array etc. It should return the same type that it gets

How can I get all the object inside an object which is present inside an array and add the result into another array

I am struggling with an issue that is bugging me a lot. I am not good with JSON data manipulation. So the issue is I have an Array of multiple Object which cont

How do I automate loading all of a browser page that is dynamically loaded?

I am trying to automate paging to the true bottom of a web page which is dynamically loaded; that is, a page which takes multiple page-downs or Ctrl-Ends to get

How do i get the values of object in arrays react js

Object { rows: (1) […], count: 3 } ​ My api is giving me this count: 3 ​rows: Array [ {…} ] ​​0: Object { ELIGIBILITATE: "

Get id of tag using querySelector in Pug

I'm new to stackoverflow. My question consists of kml, and pug. My kml file looks like this: <Document> <Placemark id="LIB02"> <name>Agincou

SCSS variable export not imported in React

After a general package upgrade on my React project, SCSS variable imports in JavaScript stopped working. Imports themselves are still working, but variables ex

React: How to pass a pointer to one component to a second component

How can you pass a pointer to component 1 to component 2 (so that you can work with component 1 inside component 2, e.g. get its properties) <Component1 />

Jest spyOn with uuid breaking in 8.x

I have a jest spyOn with the uuid which was working in the version 3.4.0 after upgrading it to 8.3.2 the test breaks with the error Cannot spyOn on a primitive

Convert Base64 Image into LZW compressed TIFF images

i have a nodejs program that previously used sharp package to convert image to lzw compressed TIFF images as below. It gets the photo from s3 and converts to TI

How to Inject new element in SlateJS Editor DOM

How to inject new react component/element into SlateJS Editor DOM? I want to inject a new element within the SlateJS editor's DOM, not above or below. Most of S

Vue js render with different request

I am making an App with vue js and laravel using API,i am getting original data , but there is an optional parameter that i want to insert in the query to rende

Google Transliterate API for hinglish to hindi is not working

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="https://ww

Unable to setup NIH's Medical Condition API (with Auto-completion) in React App

I am building a react app right now and one of the features allows users to look up medical conditions. I'm trying to use the NIH's open-source API with their a