Category "javascript"

Looking for an example for using markmap in HTML file with Markdown

I want to use markmap with a static site generator. Therefore I want to find an example where markmap is used from HTML. I.e., the HTML file should contain the

Ajax Loaded Content - Deeplinking URLs

On my WordPress website I have a custom page template containing a post grid (showing the titles only) and on click on the title it is loading the whole content

It seems Phaser 3 throws "animationcomplete" notification twice for a single animation, how do I make it one?

I'm confused about the 'animationcomplete' notification. I thought I would receive the notification one time when the animation I listen finishes. It turns out

How to build unhashed files in a 'dist/' folder with ParcelJS (v2)

I'm trying to bundle some scss and js files into a dist/main.css and a dist/main.js file using Parcel (v2). I don't want any hashes within the file names (just

Schedule Selector when creating events

I want to prevent the user from being able to select multiple times when creating the event, but I don't know how to do this, for example, when an event is at 1

How to communicate between sibling components in React

How to transfer props from one sibling to another, please? In main app I have only 2 siblings: Input: import React from "react"; const Input = () => { ret

Vue3 defineprops usage with v-model in child compoent

As I understand you can not change the props value directly in the child component. But I find out that this will work, I want to know the reason behind it. For

Merge multiple outputs from multiple functions into one array in Javascript?

Example I have these values, there is any way to put them together in a single array? This is one of the functions that make the results, they take their data f

What I do for write math formulas in react draft wysiwyg?

I many times write about it. But I cannot get any help. How to write equations in react-draft-wysiwyg. I find good solution in [github][1]. But now cdn not work

How to replace hash url from one to another

I would like to replace from: https://www.mywebsite.com/search?updated-max=date to: https://www.mywebsite.com/blog Only visibly, because https://www.mywebsite.c

Is it possible to import vue-datepicker language via a variable

I am using vue-datepicker plugin in my project. According to the docs, you set the language like this: <datepicker :language="nl" /> And import {nl} from

force folder structure and names in a repository using eslint

I'm looking to force a structure of names in a specific path for a folder and it's sub folders not only the styling of the names (kebab, camel) but the actual n

NodeJs - Get last modified file in sub directories of directory

I have the following code to list all folders within a directory, and it maps each folder's name and date created. I'm struggling to get the last modified file

How to delete a cookie?

Is my function of creating a cookie correct? How do I delete the cookie at the beginning of my program? is there a simple coding? function createCookie(name,va

onclick() event is not working in javascript and span tag

I have written the below code to display textarea in the form but it is not working in javaascript. the real requirement is when i click on reply in span tag a

In D3.js, what is the difference the graphing function required to make a line graph and one required to make an area graph?

I have an application which renders a line graph from programmatically created datasets. I would like to allow users to swap between different visualization mod

Test functions cannot both take a 'done' callback

I'm trying to create a simple test with nestjs, and I'm get this error Test functions cannot both take a 'done' callback and return something. Either use a 'do

c# Cefsharp how to make correct sequence of JavaScript actions on the web site

These sequences of actions work with Thread.Sleep, somewhere in 1 second, somewhere in 2 seconds. I think using Thread.Sleep/Task.Delay is not good. Because it

Scroll inside div doesn't wrk with Puppeteer

I try to scroll area inside div using Puppeteer. I tried to follow these answers: https://stackoverflow.com/a/67490337 and https://stackoverflow.com/a/52031392

How to manually extract context or span from incoming http request in NodeJS?

I trying to migrate my Node.js application from jaeger-client to @opentelemetry/* packages In my Node.js application i have a simple http server and i want to c