Category "javascript"

Check if a point resides inside a leaflet semiCircle

I have some cell sites: every cell has angle degree orientation and a range in km I fetch these cells from the db and represent them on a leaflet map with semiC

using a devexpress custom confirm popup on pageunload

So I've been trying to prompt a confirmation before a page unloads but I don't want this default ok cancel browser confirmation popup so following the examples

Three.js how to add multiple Mixamo animations without skin to an FBX model?

I'm trying to create a game where there is an animated character that has multiple animations from Mixamo. I want the animation to change based on what the user

How can I fix this audit warn usage error of vue

>>>app vue code and addtask code: <template> <div class="container"> <Header title="Task Tracker" /> <AddTask @add-task=

Is there a way to disable href link / links if the user is already on the page the href link / links leads to, without using JQuery?

So I have something like this in my html: <a id="one" href="/index.html"> HOME </a> <a id="two" href="/something.html"> SOMETHING </a> &

Cache discriminator viable approach in web pages

In the project i have developed till now, i usually add a random number to each request of data or file related to the project. I have to specify that the proje

Input value not updating, dynamic input box when user opens popup window react/next js

I have a problem where when a user opens a popup window to change their name, email, password, etc. the input box where they'd add their change won't collect th

Run node.js script multiple times with multiple command line arguements on windows

I have a script named index.js which I need to run with multiple command line arguements, one at a time. Something like this: node index.js ABC node index.js DE

How can I remove an HTML element that has the data type string in javascript?

I am trying to redesign a quiz template that only allows users to choose one answer before the other options are disabled. The user should be able to choose ano

Javascript global variable won't change after method [duplicate]

If the button is pressed it should first get a value from a SELECT SQL statement and use the result for a INSERT. i got the global variable: v

How I am supposed to get a random string output from an object in JS? [duplicate]

I need help with the following problem: How is it possible to extract a random value from the object below? const hellos = { English: "Hello",

overflow-x: scroll and overflow-y: visible alternative

I have a list which is rendering images (horizontally with scroll): <div id="my-cool-wrapper"> ... // My cool wrapper has more elements (apart from li

Trying to launch my index.html onto local host via parcel, but getting errors

So i've set up my package.json, installed parcel, and everything is working fine. However, when I use terminal and try to load my webpage through parcel or crea

Can I use php-cgi to serve an HTML which refers to CSS/JS files from the parent directory?

tl;dr My understanding is that php -S localhost:1234 -t some-dir serves the page some-dir/index.html at localhost:1234, expecting that CSS and JavaScript (and o

How to Debug Cloud Function? functions.logger.log not Working

When user update chat/{id} documents, this function will execute. const functions = require("firebase-functions"); exports.onChangedChat = functions.firestore

Js .map giving unexpected results

this is my code for map and this is giving unexpected results: console.log('results', results); let newResults = [...results]; newResults = results.map((el) =&

Google Blogspot (post-share-buttons) social media removed

There is a share button on my blog I would like to remove all social media and leave only functional (link). I can edit the HTML, but I can't find the code I ne

How can I make the output of a js not on one single line? How can the output "fit" the input box?

This is the js code I have written. It generate a random string. I have set this string to be 100 characters long but it doesnt "fit" the input box. The string

How do I change this React Navigation v5 code to v6?

I'm studying react native and discovered that tabBarOptions was already deprecated. I know that including it in screenOptions is the new way but how do I do thi

How does custom made asynchronous wrapper work?

I was following a code along video in Node.JS and creating the backend of a CRUD application. I was able to understand the logic for all the controllers for the