Category "javascript"

Trigger A Python Script By Using JavaScript

I am doing a little project where i have prepared the back end in python and the graphic user interface woth HTML, CSS & JS. The python script doesn't requi

how to apply transition to arc increase in svg

I am trying to apply a transition effect to an svg I have, but I am not sure how to do this. Basically I would like to apply transition: width 2s ease; when I i

Trigger A Python Script By Using JavaScript

I am doing a little project where i have prepared the back end in python and the graphic user interface woth HTML, CSS & JS. The python script doesn't requi

JSX code formart break on save using NextJS

I'm Facing a problem someone already posted here but there was no absolute answer. here is the question I'm facing exact problem. here is the broken code on git

How do have modal pop up when hovering over bootstrap 5 card?

I was following a template I found online to have a modal pop up when hovering over my cards with bootstrap 5. This is my code so far: class SavedEpisodes exten

Popover in chrome extension using js

My goal is I want to create a chrome extension like Toucan Extension. I want to highlight some paragraphs in random site then translate it to specific language.

how to change prettier format for react native

my code formatting prettier didn't works well for react native, i don't understand where to config it but it works well with flutter from this code import

How to use Vite HMR API with Pixi.js

I'm trying to use the Vite HMR API to create a Pixi.js app that hot reloads without resetting its state. The high-level idea: main.js initializes Pixi.js so an

How to change current time in audio playback?

I am trying to play an audio file with an offset of 10 seconds into the recording: const audio = new Audio('audio.mp3'); audio.currentTime = 10 console.log('cur

MarkLogic server-side JavaScript and XQuery

I am just starting using NoSQL MarkLogic DB and trying to choose for me the best query language to learn and use in future. On server side MarkLogic provides th

how to move Javascript created DIV to bottom of page

I have swagger ui HTML page. there is generating HTML tags and divs with javascript so I want to move this whole description div to the bottom of the page. but

Deploying Solana Metaplex contracts for further extending

Helloy guys, does smb know, how to deploy metaplex smart-contracts separately from this repo??? Did smb tried it? https://github.com/metaplex-foundation/metaple

Node JS file write time [duplicate]

I have code that writes data to a file, how can it be done to show how much time it took to write a file? const fs = require("fs"); fs.writeFi

Vue 2 Reactivity: computed property doesn't trigger DOM update [closed]

I have a computed property based on some nested object properties. When the object gets changed, the computed property seems to update (In vu

Mapbox Javascript markers with elevation/altitude in Javascript

By default, Mapbox markers are set to ground altitude. Is there some way to elevate their position? It is to represent some drones position, elevated over the m

How can I measure the actual framerate of video using JavaScript?

Assume a video is playing in an HTML5 page using the <video> tag. How can I measure the actual framerate? I do not just want to read the framerate of the

Significance of ';' after for loop condition in JS

const arr = [] for(let i=0 ; i<=5 ; i++ );{ arr.push(i) } console.log(arr) Can anyone explain me this scenario ?

I need help understanding a Javascript function used to search a list with a search bar so I can modify it to search a table

I'm working on a college assignment where I use a PHP class to generate table values which a Javascript function then searches with a search bar. It builds off

use response data in columndef datatable jquery

I am using datatable jquery.I want to use Sr_no in data-id of td tag but How to get data of Sr_no. or you can say that I want particular data from data reponse

How to add key and values to anobject by splitting a string inside the object

I have the following array: [ { “Key”: “CUST”, “Segment”: “A;B;C;D;E” } ] I want to transform it to