Category "javascript"

Apache ECharts - How to integrate a "Backbutton" for Sunburst diagram

I used the Sunburst example from ECharts and wanted to add a back button instead of the blue default circle. I could not find this in the documentation. May be

Web Audio API sound interaction stops working after a while

I'm working with the Web Audio API for my javascript project, and I've run into an issue that I can't seem to find the answer for anywhere. I've added event lis

Expo Cannot Find Module after reinstall

I'm having issues getting expo to start. It tries to open dev tools and dev tools will not open and gives me this error: Cannot find module 'C:\Users\charl\Ap

How to implement FreshworksWidget into next.js project?

In Freshdesk docs they provide this script: <script> window.fwSettings={ 'widget_id':12000000025, 'locale': 'en' }; !function(){if("func

Simple practical example to see faster async functions and promises from node 10 to node 12, and up

Before I ask my question I want to make this clearly, I know benchmarks never tell the whole story. But my goal here is relatively simple, I want to see the per

How to automatically close fancybox 4 popup after x seconds?

I have a web page page.html with this fancybox4 link <a href="link.html" data-fancybox data-type="iframe" data-width="80%" data-height="25%" > I would cl

Multiples transformations matrix on SVG, get cursor point

This question is probably more related to math than svg itself. Inside a main svg, got multiples transformed svg, (from different events), by a viewBox attrib

Check if page creation date is within the last 7 days with Eleventy and Nunjucks?

I posted a few days ago about having a way to check for newly created posts, and I am making some headway in this but got a little stuck as shortcodes are still

How can I import firebase app as browser module import?

I am trying to import firebase app (8.0.2) on the client side without bundler. I downladed the firebase-app.js from the CDN and host it on my server. The goal i

How to set start day time to particular time in momentjs

I'm trying to set the start time of the day to a particular time. currently, in momentjs, I can get startOf day like this let now = moment() console.log('now'

Error "File is a commonJS module; it may be converted to an ES6 module. ts(80001)"

Developing javascript in vscode, I see this error on line const Koa = require("Koa");: File is a CommonJS module; it may be converted to an ES6 module. ts(8

How to return a promise with alertcontroller in ionic 4?

I am trying to convert this ionic 3 code into ionic 4 but I don't know how the promise works on ionic 4. I tried looking into the documentations and I can't fin

How to expose a class to the global scope with esbuild?

Update user @TKoL suggested defining a property in the window object. This produces the result I wanted to achieve, although I do not know if it is the correct

disable other buttons using e.target.id

I have ten expansion panels. on click of one button in one expansion panel I need to disable other buttons in other expansion panel but the problem is when I tr

How to merge components in VueJS

The Laravel framework and the laravel.mix compiler are used. There is one main component "dialog". <template> <transition-group enter-activ

How do I fetch and parse JSON data to Google Sheets Script?

EDIT*** Modified the question now that I have a proper source... I am trying to copy a communication log to Google Sheets and don't know enough about scripting

How to display list of questions fetched from database into HTML using Ajax and JavaScript?

I am working on school management system and using Spring Boot framework. I want to display all questions list when student click on start test button and would

How to get network response code (javascript)

I recently added a linkedin tag to my website for data tracking very similar to google tag or fb pixels. For me to know the tag is installed correctly, I would

Stuck at progressively migrate my website to Vue.js

I chose Vue.js over React and Angular, because it felt much more easier to migrate my existing website (old technologies, ASP.NET Razor Pages inside Visual Stud

Jest (unable to set unique href for window.parent.location.href)

I have in my code a check to see if a page is being loaded inside iframe. App.js if (window.location !== window.parent.location) { console.log('App is running