Category "javascript"

Javascript Grouping by object property, when property is an array

I currently have an array of items that looks a bit like this: I want to group the items by category lookup, with the slight problem that category lookup is pot

GTM Custom HTML Tag and Javascript Variables

I have 2 custom javascript variables (fx_geoLatitude, fx_geoLongitude) that capture latitude and longitude of the user when the page loads on their first sessio

how to style menu.item on semantic ui React <input> search bar precisely

The code is the menu style of semantic ui available for React including a search input i want to increase the size of the search input and also change the color

AWS-Amplify, How do I redirect to another URL after sign-in in angular?

I'm using the latest AWS-Amplify's authentication component. It can logged in successfully but after login I need to sent the route to another url which I can't

LiveServer on WebStorm

I have a problem with WS live server. When I open my HTML file in chrome, the page had address: http://localhost:63342/Home/index.html?_ijt=ler2r6h082ng7c8a0p53

How to let Pix2Pix with p5.js run?

I would like to try the ml5.js Pix2Pix example for p5.js. If I just copy the code, update the paths, and try to let it run on my local server, it doesn't work.

How to increment set of 2 letters based on word occurrences in the range using GAS?

I got this one that looks hairy to me, but I'm confident you guys can crack it while having fun. The problem: Check of Company exists in the range If not, get t

Post Images Using muter and Express.js/handlebars/sequelize

I am using multer package to upload photos. I am able to upload the image file and submit it. it gets submitted into a file called images in the public folder;

Is it possible to call an API based on user roles with useSWR?

I'm wondering if it is possible to use useSWR from Vercel if a condition is true? I.e., if RoleOne is true, then call: let { data: roleOneData, error: roleOneEr

how to add drop down list in material-UI Search component in navbar, for search results

I was using material ui search bar into navbar from app-bar-with-search-field official documnets from MUI in my react app. but this article it does not mention

supabase.auth.onAuthStateChange Not Working when React app is in iframe

I am using Supabase user authentication in a React app hosted at https://example.com that is running inside an iframe injected by a Chrome extension chrome-side

Align text next to link vertical center in MaterialUI Grid

I'm having trouble trying to get the count aligned center vertically with the link <Grid container justify="flex-end"> <Grid alignItems="center" clas

album art not showing, using express.js, node.js, pug, javascript

I am trying to create a music app that can serve music files to an audio element. Eventually I want a client side ui that can pick a song from a playlist and ev

Spreading for object as function input arguments

I want to pass in "he", and "she" to function func and output "heshe". Is there any way to spread the value of object (like array) to make it work? const func

"Cross origin requests are only supported for HTTP." error when loading a local file

I'm trying to load a 3D model into Three.js with JSONLoader, and that 3D model is in the same directory as the entire website. I'm getting the "Cross origin re

Module not found: Error: Can't resolve 'crypto' and Cant resolve 'fs'

ive just started to learn react and Ive been trying to get my react app to connect to my database with var mysql = require('mysql'); var con = mysql.createConne

Webpage in the same row pictures

I want this photos in the same row what should i change ? I tried float left and other commands but one picture is staying in the lower right corner. <secti

How to extract data from mp3 in javascript to process it using a neural network and play it on speakers?

How to extract data from mp3 in javascript to process it using a neural network and play it on speakers? Are there any solutions?

Sorting a store (array of objects) is working differently on Firefox and Chrome and updating items don't seem to push a reordering properly

Context I'm using Svelte and SvelteKit in a project. I'm using a store to update other components/pages and get reactivity, and later I'll persist it on localSt

How to create a new object as a subset of object properties of any depth, while renaming properties on the fly

Although a plethora of posts have been dedicated to the topic, I still couldn't find a satisfying idea how to subset object properties of any depth. More so, I