2,529,437 questions
-3
votes
1
answer
55
views
Why does my if statement that compares two characters return false when both characters are the same? [closed]
I wrote some code originally to test the eval() function, but now I'm turning it into a very basic calculator. Since it uses the eval() function to calculate the expressions entered in the input <...
0
votes
0
answers
16
views
vis.js shows items with no time starting at around 8PM instead of midnight
Just starting to play with vis.js, timeline mode. Going through the demos, and have everything working. However, when I zoom in on at object on CodePen, dates (without time) start at midnight, which ...
0
votes
0
answers
19
views
Using Docxtemplater horizontally expand nested loop in a MS Word Table
We have data that looks like this:
[
{
firstName: 'Susan',
lastName: 'Storm'
meta: [
{
age: 30,
email: '[email protected]'
}
]
},
{
...
0
votes
0
answers
19
views
Rotate a label in Plotly Treemap with JavaSctipt
Sometimes there're narrow bricks on treemaps. Plotly decrease the font size of such a labels, so you cannot read them. But another way is making thease labels horizontal. As far as I understood the ...
0
votes
0
answers
18
views
How to add own pathfinder in GitHub PathFinding.js repository?
I have forked PathFinding.js and have added the IDDFS pathfinder. (It is based on this Java implementation.)
I followed some arbitrary guidelines and made it visible in the visual/index.html, yet it ...
0
votes
1
answer
45
views
Registration form not displaying validation error messages for input fields
I'm building a user registration form using HTML, CSS, and JavaScript, with Firebase Authentication handling the registration.
I wanted to add a common feature where errors are prompted when using an ...
0
votes
0
answers
35
views
pushManager.subscribe return null on android firefox (not working at all on chrome)
i'm trying to create a simple web push notif using service worker, it works well on browsers in desktop, but on android device not working!
on firefox android: pushManager.subscribe() return null
on ...
0
votes
0
answers
31
views
Google Analytics not sending different pages aside from home page in ReactJS(Vite)
I'm using react-ga4 for my [portfolio[(https://vicentereyes.org). I have a PageViewTracker.jsx which has:
import { useEffect } from 'react';
import { useLocation } from 'react-router-dom';
import { ...
-2
votes
0
answers
17
views
Unable to open chrome in docker container due to websocket closed
I am hitting an issue where I am unable to open chrome via a docker container due to websocket closed.
Error: Unable to open the "chrome:headless --no-sandbox --disable-dev-...
2
votes
1
answer
46
views
How to add prefix to input?
I want to add prefix : 'https://' to input using ngx-mask *16.4.0.
I have component using signal inputs like this:
<input
[mask]="mask()"
[required]="required()"
[prefix]=&...
-3
votes
2
answers
88
views
LeetCode - 23. Merge k Sorted Lists algo issue [closed]
I was trying to solve this LeetCode Problem, and have been failing at it.
The problem
You are given an array of k linked-lists lists, each linked-list is
sorted in ascending order.
Merge all the ...
0
votes
0
answers
28
views
How to modify or remove default context menu items and how to create submenus in custom context menu?
I'm using Autodesk Forge Viewer version 7.x and I have two questions regarding the context menu behavior.
Is it possible to modify or remove the default context menu items?
By default, when right-...
0
votes
2
answers
51
views
How to block rendering of child component until a condition is met?
I have a component which is using several hooks to get data and then give it to a child component. I want the child component to re-render only when the hooks all had answered.
const [data1, loading1] ...
-2
votes
0
answers
27
views
How does useState work in React, and why is state not updating immediately? [duplicate]
I'm new to React and trying to understand how useState works. I'm using a simple counter to test state updates, but I'm confused by how setCount behaves.
Here's my code:
import React, { useState, ...
0
votes
0
answers
16
views
Why docx-preview js in not rendering docx file properly?
I'm using docx-preview.js for render my laravel project storage docx file in Livewire component. When I render the page it's not rending as expected. I've attached images for the reference. I've this ...