Category "javascript"

Firebase `onAuthStateChanged` always return null user

This is my index.html: <!DOCTYPE html> <html lang="en-US"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <

How can I get data from tiled map editor to my javascript file?

I have a JavaScript game, using the Phaser 2 framework, and I am trying to add a new map to my game. So I made a scene in Tiled map editor so I can export to my

Nodemon - specifying extension watch list using config files

Is there a way to specify watch list using config files instead of command line? Command line method in nodemon's doc: I attempted to use a nodemon.json config

Most efficient way of showing or calling repeat/duplicate HTML?

I have five div elements containing the same six images. Only one div is shown at a time (others are display:none) but all are on the same page. Basic example:

I'm trying to connect monogoDB with node.js, but the terminal is showing MongoAPIError: URI must include hostname, domain name, and tld

I'm trying to connect MongoDB with node.js, but the terminal is showing MongoAPIError: URI must include hostname, domain name, and tld Backend Code I have writt

Property does not exist on type void

I am writing a hook to make a post request that returns two properties, sessionId and sessionData. I am using this hook in a component. My hook looks like this.

Trigger button click event of a Vue.js application programmatically in a Chrome extension

I am developing a Google Chrome extension. There's a third party website that is developed in Vue.js. I need to trigger a click event of a button on a page. But

WebAudio API change volume for one of sources

I'm reading this article My goal is to play two sounds at the same time. One sound is in a different volume. Having regular "audio" tags is not a solution becau

Build error after updating Svelte: Package subpath './compiler.js' is not defined by "exports"

Problem I was on Svelte version 3.0.0 and used npm i svelte@latest to update to the most recent version. Now I can't get the app to run, I always get this errro

html5 validation api gives an empty array of messages if a markup is wrong

Trying to validate my html5 markup by clicking on a button and using the w3c validator. The code source is from here. so my code is like this: $('.btnw3').on('c

How to access a constraint by its label in matter-js?

I am currently building a game with react native game engine and matter-js. I want to be able to access the constraint by its label. I currently created it: let

encrypt alphabet to unicode does not work

This is project from freecodecamp where a string is encrypt by the values of the letters are shifted by 13 places All letters will be uppercase. Do not transfor

How to use Material UI (mui) 5.0 inside an iframe?

I'm trying to render MUI components inside an iframe using react portal. Although they are rendered inside the iframe, they lose all thMUI components lose their

Not able to link a component in react js

I wrote a code to fetch a list of contacts, after clicking on the view detail button on the contact card, it should open a new page showing the contact details

encrypt alphabet to unicode does not work

This is project from freecodecamp where a string is encrypt by the values of the letters are shifted by 13 places All letters will be uppercase. Do not transfor

Time and Space complexity of this checking if string is palindrome

I want to verify my assumptions about Time and Space complexity of two different implementations of valid palindrome functions in JavaScript. In the first imple

django-ckeditor modal form does not change data on POST

I have a django project using django-ckeditor. I use HTMX to create a bootstrap modal to show my edit form. It renders correctly (I did add the ckeditor.js fil

Template Parse Error: 'mat-sidenav-container' is not a known element, and about router-outlet, ngif

I used angular13. and Vs code. 'mat-sidenav-container' is not a known element Property binding ngIf not used by any directive on an embedded template. Make sure

TypeError: Cannot convert undefined or null to object in NextAuth

NextAuth.js automatically creates simple, unbranded authentication pages for handling Sign in, Sign out.So I created it like the document suggest.I created in s

Migrating to Edge Browser - file upload not working

We are migrating from IE 8 to Edge browser, Below is the code working in IE 8, to load one file, but not in Edge. if(window.ActiveXObject){ var