2,526,008 questions
0
votes
1
answer
23
views
How can I open an accordion with an external link?
I'm trying to link from one page on my website to content in an accordion on another page, and I can't get the javascript to work for opening that accordion automatically. I've looked at a lot of ...
0
votes
1
answer
25
views
Getting 401 Unauthorized with Vite environment variables - Keys visible in console but API calls fail
I'm working with Vite and trying to use API keys from my .env file. I'm experiencing a strange issue where the keys appear correctly in console.log(), but my API requests are failing with 401 ...
0
votes
0
answers
22
views
How to correctly use wp_enqueue_script and wp_enqueue_style in a WordPress child theme?
I am trying to add a custom CSS file (style.css) and a JavaScript file (custom-script.js) to my WordPress theme. I want to ensure I’m doing this the "WordPress way" to avoid conflicts with ...
-6
votes
0
answers
30
views
Dependencies pages_read_engagement pages_show_
Dependencies
pages_read_engage
header 1
header 2
cell 1
cell 2
cell 3
cell 4
ment
pages_show_
0
votes
1
answer
41
views
How can I enforce server-side step completion before allowing access to a route in Next.js?
I’m building a Next.js application where users must complete a required step (for example, identity verification or a comprehension step) before being allowed to access certain protected routes.
The ...
0
votes
1
answer
38
views
Uncaught TypeError: Failed to resolve module specifier "firebase/database" in client-side Firebase setup
I’m trying to configure Firebase Realtime Database on the client side using the following code:
import { initializeApp } from "firebase/app";
import { getDatabase } from "firebase/...
-1
votes
0
answers
62
views
Can you force a React state update?
I have a React project and in short I have a selector that selects projects. When a project is selected it should be set as selected and should start loading it's Revit version in the background (...
0
votes
0
answers
30
views
Interceptor failing to ingest localStorage variable and pass it to service
Problem
I have a token object stored in localStorage:
{
accessToken: string
idToken: string
refreshToken: string
}
When I resfresh the page I have the following interceptor built:
import {...
0
votes
0
answers
31
views
How to mock setTimeOut in a Jest unit test?
In my application I need to ensure that an array of Promises will be executed in the order as given in the array. Addtionally, the application shall "wait" a certain time after each Promise ...
0
votes
0
answers
129
views
Is it possible to use an HTML canvas as a CSS mask? [closed]
I am working on a website, and I want to make the headings have an underline with an animated fog mask so random parts gradually fade in and out. Below is a mock-up of what I want to achieve:
I was ...
0
votes
0
answers
38
views
Can't send the refresh cookie from my ReactJS frontend to the Django backend [duplicate]
when i login the refresh cookies is set like that :
response.set_cookie(
key="refresh",
value=str(refresh),
httponly=True,
secure=False,
samesite="None",
...
Advice
0
votes
4
replies
33
views
Need help regarding open source contribution as a beginner
I am in a phase where I select a repo that is perfect for me. A problem arises when I pick an issue from the repo, then I go blank on how to approach it. So my main question is how to solve that issue,...
1
vote
1
answer
53
views
Unable to get RECAPTCHA response properly
I'm trying to get a RECAPTCHA v2 request + response in my web project but so far I've got a lengthy g-recaptcha-response in my URL when I trigger the captcha action in my project. I'll provide the ...
Advice
0
votes
5
replies
51
views
What is my nameless "function"'s name in JavaScript?
Ok, let me start by stating some facts, then comes my question.
Functions in JavaScript can optionally have names themselves:
(function f1() {}).name
yields 'f1', because the function has a name when ...
-3
votes
0
answers
62
views
How can I implement Letter Boxed word validation in JavaScript? [closed]
I’m working on a small browser-based version of the NYT Letter Boxed game.
The game rules are:
Players create words using letters from a “box” of letters.
Each word must start with the last letter of ...