Category "javascript"

Calculating a matrix to invert a "flattened" 3D rendering context

Context: In my web app I create several groups of elements all positioned relative to each other in 3d space. All elements have transform-style: preserve-3d. A

Dockerfile: Cannot find module '/usr/src/app/dist/main' - Dist folder does not exists on container

I'm having the following error when trying to execute my NestJS App with Docker: > [email protected] start:prod > node dist/main node:internal/modules/cj

Is it possible to append to innerHTML without destroying descendants' event listeners?

In the following example code, I attach an onclick event handler to the span containing the text "foo". The handler is an anonymous function that pops up an ale

Adding style to CSS classes in Javascript

I am trying to add an animation-play-state style to a CSS class on button click through Javascript but I am not sure where am doing it wrong. here is what I did

Discord.js Bot can't handle multiple buttons in the same channel (Version 13)

Is there a way to have a command with buttons be used by two people at the same time in the same channel? I made an adventure system which is going well so far,

Freehand polygon drawing google maps mobile - Not working

I am trying to implement a function that allows a user on a mobile device (using chrome or safari for example) to be able to draw a polygon in google maps. The

I'm having trouble removing an item from localStorage for my tasklist app which i'm building using vanilla javascript

Here's a function i'm having trouble with the foreach loop traverses just fine but i'm having trouble removing item from localStorage. function removeFromLocalS

In TypeScript, I can't seem to delete a specific value from an HTML table

I'm extremely new with JavaScript and TypeScript (like, day 3). I need to let the user delete a value that they entered into a table. I've been working on this

Why are Ajax pages not working with pushstate framework 7 v5?

I’m facing an issue, hope someone helps I have pages of classes eg. Events, decorations, etc and I’m using desktop layout (admin dashboard template

how to properly get day of the week (name) with moment.js?

Im using https://openweathermap.org/ api. It provides timezone in seconds. How to properly get day of the week (name) using moment.js? const timezoneInMinutes

Google Sheets and Google Forms not working with Google Maps API

I am a beginner programmer. I am trying to make a website that does the following: Displays a map using Google Maps API Displays a form with checkboxes that lin

How to use scoped APIs with (GSI) Google Identity Services

Google recently sent me an email with the following: One or more of your web applications uses the legacy Google Sign-In JavaScript library. Please migrate you

Why doesn't javascript reset the cursor back to zero after allocating a size to the array

Taken an array with given size, when we try to push the elements into it, javascript pushes the elements post the allocated size. Shouldn't javascript reset the

How to detect the "closed_by_user" event via the new "Google 3P Authorization JavaScript Library API"

I'm currently using the Google Sign-In JavaScript Platform Library for web. Via the grantOfflineAccess() function I request access to scopes from the users Goog

Properly convert blob audio to webm format

Hy, I am using tone.js to record audio using my mic and then downloading the audio. Here is my code; function test() { var mic, recorder; recorder = new

Uncaught ReferenceError: curl_init is not defined google maps api

I used the google maps api to get the driving distance between 2 points 1 - The Origin point -> my current location. 2 - The destination point -> The user

How to run this jquery function only on desktop

I'm a begginer in Javascript and I kindly need your help with this Jquery script I'm working on.. I need to make it work only on desktop and prevent it to run i

Google Spreadsheet: Hide/Unhide any row that meets x condition in a group of rows when clicking button?

When clicking "button1" I would like the code to check the First Cell (Column A) of Rows 38-58 and hide the Row if the corresponding cell is empty and show if i

Are there any performance issues with inlining CSS rather than using "chunks"?

Modern frameworks like Vue and React start with inline CSS inside individual components. For example, in a Vue single file component, we include all the Javasc

Animation to center a div in the window

Hi I need an animation that makes a div go from left to center, but it doesn't work. This is my code: $(document).ready(function () { $(log).click(funct