Category "javascript"

When does a cookie with expiration time "session" expire?

As the question title says, what's the session timeout when I set "session" as cookie expiry? Can you guys point me to some documentation (I searched but haven'

Calling A Function from the main.ts file to other ts file is not working in Node js

I have a project in Node JS with the following structure: ormconfig.js package.json src main.ts user user.module.ts user.entity.ts user.service.ts (include a fu

how can i add javascript files into angular?

i have got a template works fine on visual studio , but when i tried to use it on my angular project i don't know why the javascript code doesn't work , i fille

How to alert north east south west? Javascript

I am new to coding and have had alot of help with this. I am making a game, you have to choose the right cell in the table. I am wondering how i would be able t

How can I pass the value of a unchecked checkbox to the form? [duplicate]

I have a webiste where users can find a discord server with their option,such as if server is NSFW, premium,member count and tags. I tried to

How to make a responsive tile area in leaflet

I'm New to leaflet and game development. I have created a custom map to be displayed in leaflet. Map looks more like https://map.pavia.io/#/ I want to do the sa

Vue js can't find page when deployed on firebase

I'm building a stupid web app to do something funny with my friends. I'm using firebase hosting service and discord oauth2. The problem occurs when trying to ac

How to limit an array field in javascript object to a certain length

I know this may a simple problem but I have a the following javascript object: const categories = { title: 'cat1', contents: [ { nam

How to make app interact with other browser tabs?

Is there a way to make app display it's template above all other browser tabs when the application tab is not in focus (visibilityState == 'hidden')? For exampl

Weird issue with Vue / Javascript variables

I honestly don't even know how to search for this question (what search param to write) but either way its bit weird issue and I am desperate for help. So I am

D3 adding tooltip to multi-line chart

I am fairly new to javascript and D3, I am trying to create a tooltip that displays a vertical line and circles on that line along with the value of data in eac

Getting null when I use context.query with getServerSideProps() in Nextjs?

Intro Basically, I am building an e-commerce website. But I got stuck in this problem while saving the order details after I click payment button (although I ha

How to avoid to write `@ApiProperty()` in each dto for NestJs-swagger

I'm researching the way on how to avoid to specify @ApiProperty() in each dto. I know there is exist a way to create file nest-cli.json, and if you specify Prom

Document.write is not working properly with media queries. What can I do - or is there an alternative?

This little function gives me a headache. document.write in combination with media queries just won't work responsive. I'm trying to change the css stylesheet w

How can i change Header Bar height in react native?

i'm trying to change Header Bar height in React-Native Stack Navigator this is my code I tried to put headerStyle: height:'100', but it doen't work what should

Save form values to localStorage

I have been studying JS for a while so at some point a couldn't complete the assignment that my teacher gave me so its all about to create a input to fill with

KeyIsDown does not seem to work with the right arrow

I'm writing a simple 2D platformer game on p5js, with Visual Studio Code 2022. I want to move this dinosaur sprite to the right and the left, however the keyIsD

I would like to check if the current time is before 11:00 with moment.js. How can I achieve this?

I'm working with the moment.js library, If I want to check if the current time is less than 11:00 or not How do I achieve this? let todaysDate = moment() // "y

Editing dropdown values without having to create a new dropdown every time

Within the code.org javascript editor for the applab, there is the ability to create a dropdown by creating a dropdown by: dropdown('id', 'option1', 'option2',

Going through each child in a div generated from API in javascript

I'm trying to access and delete the child in a div generated when I press the "submit" button, the individual divs inside will be generated because there are so