2,524,481 questions
Advice
1
vote
3
replies
68
views
In JavaScript, what exactly does the array method map do, and how is it used?
I don’t really understand MDN’s explanation of it.
I am trying to understand the JavaScript Array.prototype.map() method. I have researched online, but most explanations feel very vague and academic. ...
0
votes
0
answers
21
views
Highcharts Accessibility module affect marker enabled
When the accessibility module is included. If you have the markers enabled set at the data point level, for example:
{x:1, y:1.61, marker: {enabled: false}}
Then the value will be stored as true for ...
0
votes
0
answers
36
views
How to implement CSP without 'unsafe-inline' in WordPress (Elementor) without breaking site?
I am working on securing a WordPress website that uses Elementor and several plugins.
I have implemented a Content Security Policy (CSP) via .htaccess like this:
Header always set Content-Security-...
1
vote
1
answer
73
views
How can I allow pointer events beneath an element that needs to detect mouse hover? (dHTML)
Overview
In html, css, and js I made a sidebar that can be hidden with a click. I have tried to make users able to hover their mouse over where the sidebar used to be, and showing a button that could ...
-3
votes
0
answers
38
views
how to create a express api that can trigger a deep learning model [closed]
I am new to Python and backend integration. i have knowledge about express backend.
I have a trained Convolutional Neural Network (CNN) model saved as a .keras file, which predicts plant leaf diseases ...
0
votes
0
answers
23
views
VSCode with TypeScript Native Preview does not highlight constants specially
When i switch to TypeScript Native Preview constants in my .ts files are not different from mutable identifiers.
Code is more difficult to read when there are too many mutable and immutable ...
-1
votes
0
answers
31
views
Web audio API strange behavior across browsers [closed]
There are 2 checkpoints about which I will be writing, wrt the user experience of my app
Checkpoint 1: after uploading of an audio track and pressing play, and
Checkpoint 2: clicking the button which ...
Advice
0
votes
2
replies
64
views
How to pause and play video using JavaScript in React web project?
How can I pause and play a video using JavaScript in my React web project? I'm developing it in VS Code.
-4
votes
0
answers
67
views
Trying to make a prompt calculator for my class but it doesn't alert the result [closed]
let a = Number(prompt("type number a"));
let b = Number(prompt("type number b"));
var o = String(prompt("type operator. Add=addition. Sub=subtraction. Mult=multiplication. Div=division.")....
0
votes
0
answers
42
views
WebXR + Unity build failing to render on Quest Browser after working previously
I am building a VR web app on Unity and using the WebGL platform with the WebXR export. I am not doing much special at the moment except using the WebGLTemplate HTML file to request an XR session when ...
3
votes
1
answer
84
views
How to sync UI state between a page and a fetched sidebar component in Vanilla JS?
I am building a multi-page application using Vanilla JavaScript (no frameworks). To avoid code duplication, I fetch a shared sidebar (sidebar.html) and inject it into a placeholder on every page (e.g.,...
-1
votes
0
answers
34
views
Enumeration warning when using VS Code debug console in a Vue project
I have a minimal Vue 3 application created using npm create vue@latest. The application contains a simple App.vue file with the following contents:
<script>
export default {
data: function(...
-4
votes
0
answers
80
views
Check for an empty string from a multiline block [closed]
I need to check for an empty string, however the regex doesn't seem to be doing what I think it should.
var ele = document.getElementById('theId');
console.log("Length of ele is " + ele.innerText....
-1
votes
0
answers
41
views
Why is my app applying a BiquadFilter without being prompted? [closed]
Im using JavaScript Web audio API.
The good news is that the filter I created works as expected.
The bad news is that my app applies the filter without being prompted.
The flow is like this: user ...
-2
votes
0
answers
62
views
Problem with Electron app and Docker container on localhost
I have an ongoing problem with a project I'm working on. I made an ElectronJS app that I'm going to be installing in the users desktop. This electron app will communicate with an MCP server via Axios. ...