2,526,005 questions
0
votes
1
answer
8
views
webAuthN registration not finishing
Here is my code for testing the registration of a user, this is temporary as it will be removed once 2 users are set up. This is the front end half.
const btn = document.getElementById('test');
btn....
0
votes
0
answers
19
views
Blob link does not work in iframe html content in local file [duplicate]
let url = (content, type) =>
URL.createObjectURL (
new Blob ([content], {type}));
let cssUrl = url ('#d1 { color: green; }',
'text/css');
let htmlUrl = url (`
<link rel=stylesheet ...
0
votes
2
answers
82
views
React Native can't correctly display number
I'm using React Native for write an application in Android, but it can't correctly display number, Order number is like:18,19,2 ,21,2 ,2 ,picture is below:
Some code is:
<View style={{ ...
-4
votes
0
answers
75
views
removing inline javascript failing [closed]
A rails 7.1 view file runs with in-line javascript as follows.
<script>
var autoComplete = (function(){
[ ... contents of .js file. see below]
</script>
<%= javascript_tag do %>
...
0
votes
0
answers
47
views
Calculate mouse position in rotated div [duplicate]
How to calc mouse position (ClientX, ClientY) in rotated and scaled DIV?
HTML structure:
SCALED DIV - transform: scale(0.8);
ROTATED DIV - transform: rotate(340deg);
ROTATED TARGET DIV - transform: ...
-3
votes
0
answers
35
views
How to enqueue CSS and JS properly in a WordPress theme? [closed]
I’m building a custom WordPress theme and currently adding CSS and JS directly in header.php.
I read that wp_enqueue_style and wp_enqueue_script should be used instead.
Can someone explain the correct ...
0
votes
1
answer
67
views
Javascript Import Variables
so I have an HTML page, a linked Javascript(jQuery actually) file that has functions linked to clicks, etc. Then I want to add Regular Expressions to check user input.
I want to maintain all JS ...
0
votes
0
answers
135
views
Hamburger menu button not working on my website
The hamburger menu button appears correctly on mobile screens, and when I resize the window on desktop, but clicking it does nothing. I doubled checked my code, but I still can't figure out it's not ...
-3
votes
1
answer
88
views
Why does clicking the button cause a white screen, and how can I fix this? [closed]
I'm building a portfolio website with React + TypeScript and Redux. I have a chat assistant component that should only appear after a user clicks an "Start" button (which sets app.ready to ...
-3
votes
1
answer
100
views
JavaScript - Why this multiplier closure function works? [duplicate]
I´m following the "Eloquent JavaScript" 4th edition book, and there is the following chunk of code:
function multiplier(factor) {
return number => number * factor;
}
let twice = ...
Advice
0
votes
2
replies
47
views
Learning MERN in 2026 is it relly worth it?
I am a student at Amity University, currently enrolled in BCA. I would like to take advice from you all should I learn MERN, or should I go for Cloud or AI/ML?
I am also keen to understand which path ...
-6
votes
1
answer
92
views
Code fails, don't know reason, also don't know fix [closed]
Leetcode problem 10. Regular Expression Matching
Given an input string s and a pattern p, implement regular expression matching with support for '.' and '*' where:
'.' Matches any single character....
1
vote
0
answers
36
views
Detecting history popstate event without triggering for anchor links
I'm working on an application which uses dynamicly loaded page elements, which use pushState to change the URL hash and add an entry to the browser's history. It will be too much work to refactor this ...
-2
votes
0
answers
35
views
vitest complains that "require is not defined" but I don't use require [closed]
I have a very simple test file:
import fs from "node:fs";
import {test, expect} from "vitest";
test("Creating store", () => {
expect(fs.existsSync("my-file.dat&...
0
votes
1
answer
61
views
Button hover state gets stuck on touch devices after tap (works fine for mouse)
I have a button hover animation that works correctly on desktop.
Problem:
With the mouse:
Hover works, and after clicking the button, the hover state gets stuck—this script fixes it.
With touch ...