Category "javascript"

Laravel Mix HMR Server Does Not Launch

Laravel Mix Version: 6.0.43 Node Version (node -v): 16.13.1 NPM Version (npm -v): 8.1.2 OS: Windows 10 21h2 Description: THIS IS HAPPENING ON A FRESH NEW INSTAL

Is there a way to determine the current font-size of a DOM element in ReactJS?

In our app, a piece of text changes font-size using a CSS class with responsive breakpoints. But some users want fine-tooth control over the font-size, so we ha

Webdriver io - Drag and Drop | Not able to see it happening but code passes

I am trying to implement the Drag and drop feature using webdriver io and the issue i am facing is that the code passes but i dont see dragging and dropping the

Element not appearing on hover

I made a basic website header and the respective menus should appear when you hover over the options but it doesn't work. When hovering over the options "Home"

Pipeline test fails because of time difference of local and pipeline environments

I have problem surrounding the difference between pipeline execution and my local environment. I'm intercepting a request using the following command: cy.in

How do I copy to clipboard using clipboardy?

I am trying to use clipboard in order to copy 'longlat' to the clipboard by passing it through the function 'copyData()'. However, it keeps giving me errors. Th

Find a javascript fix pattern

I have many javascript files, one of which has code with an error and the other without. How can I find the difference between them in order to find a pattern o

Mongoose data Writing issue in Javascript

Just started with a javascript couple of days back. I am trying to use MongoDB with mongoose to write the data but it is not writing even though the connection

Nuxt 3 with Vuetify Icons

I am trying to get Vuetify 3 to work with Nuxt 3. I have a plugin for Vuetify: // plugins/vuetify.ts import { defineNuxtPlugin } from '#app' import { createVuet

Handle currency format in grid columns value

I'm trying to handle some currency values in my grid (us dollar, euro, etc.) I find a way to set it up into my grid, using grid column template for now I have t

Fill bootstrap 5 modal with mysql record data using javascript fetch/ async/await with ES6 notation so as to update the record

All of this code works. It activates the BS5 modal and fills it with a record using a stored procedure on MySQL db. The issue was calling the wrong variable. If

Form input checkbox and file type isn't functioning

I'm trying to make a form for adding a blog page. I have title form, date form, content form, checkbox for blog category form and image form for the topic image

How to measure the height of a child and pass it to a parent in React?

I want to calculate the height of a component and send it to its parent when the page is loaded and resized. I'm using the below reusable Hook to successfully m

Regex for duplicate words in a string with one of them with a apostrophe in Angular

I want to create a regex for a requirement, a string is having duplicate words but in that duplicate words one is with a apostrophe. For example: EXCHANGE CORRE

Make standalone Checkbox filter - Mapbox

Fairly new to Mapbox but I have an issue with my code. With my link here (https://codepen.io/bearcats6001/project/editor/XjrPNP) I have a map that you have to p

Bar chart with two sets of labels in Quickchart

I am trying to create a bar chart for tracking a budget with quickchart. I want the chart to have one set of labels on top of the bars (for % remaining), and a

Create a new Date for any specific timezone

I am using Google Apps Script to check and re-format date data from some Google Sheets. But the problem is the result shows the times for the user who run the c

sort unique values on the same line

If I have a list of items like this in any text-area, I can use a bookmarklet to sort the unique values. a b d c c I click on the bookmarklet and the list is c

Integrate Phaser Game with React as component

I'm new to React, I want to make a component for my phaser game to insert it into a react project. My Game component: import React, { Component } from 'react' i

I want to highlight the Specific word in my ajax response loop

I want to highlight the word which user has searched. I am getting an array in response which will shows the occurrence of that word. I want to highlight that w