Category "javascript"

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

Looping in a complex JavaScript object

I have an object like this const countries = { iran: { capital : 'Tehran', population : '83183741', area : '1648195' }, uk: { capital

I'm making a Wordle game with Javascript, but I've come across an error that I've been struggling with for hours

I'm making a Wordle game with JavaScript. However, the ID in the UPDATE function doesn't work even though the ID I used before is full. I tried changing the id,

Adding Images from a image folder dynamically to a div box

I'm trying to create a random number generator where based on the number an image is chosen from the img folder that is on the same hierarchy as the CSS folder.

Chart.js Uncaught TypeError: Cannot read properties of undefined (reading 'options')

Edited the Details as I found a solution to display the Chart with the right datasets. Code Below will show the Two Charts, which visually looks great but butto

Getting error while verifying phone number in firebase (angular project)

I am working on an angular project, where I am adding MultiFactor Authorisation using firebase authentication, I am trying to verify phone number by firebase.au