2,526,026 questions
-1
votes
2
answers
66
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
72
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
45
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
34
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
66
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
119
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
86
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
95
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
45
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
35
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
34
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
60
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 ...
-12
votes
1
answer
122
views
products is not defined [closed]
I want to try to create a product detail page that will display the product details.
However, there is an error in my code. Can you help me?
This is my App.tsx code
import About from "./pages/...
Advice
0
votes
7
replies
63
views
External USB Fingerprint scanner
I am trying to build a react native app (Expo) which supports ios and Android in which i want to capture fingerprints of all my employees.
Is there any way that i can achieve it?