2,524,481 questions
0
votes
0
answers
8
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 ...
0
votes
0
answers
11
views
Web audio API strange behavior across browsers
There are 2 checkpoints at 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
1
replies
39
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
59
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
35
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
66
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
32
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
72
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
39
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 ...
-1
votes
0
answers
33
views
problem with electron app and docker container on localhost
Ok 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 ...
-3
votes
0
answers
88
views
After logging in, the user is not updated in the UI until a reload
I have a separate backend I'm building, and I basically have the main auth endpoints. I was making a frontend for it with Next.
The thing is, there's a problem with after I login. When I login, it ...
-3
votes
0
answers
75
views
Immersive cards effect
I'm using assets from https://quaternius.itch.io/3d-card-kit-fantasy in a react project, with r3f.
Assets pack is composed of different elements, shown in the image left to right:
container (with ...
-4
votes
0
answers
34
views
Profile page not updating in real-time (sidebar name + active highlight) and avatar not showing after upload in ReclaimX [closed]
I am working on ReclaimX, a full-stack campus lost & found platform (Final Year Project).
GitHub: https://github.com/SniperRavan/RECLAIMX
Problem
On the Profile page (pages/profile.html), after ...
Advice
0
votes
3
replies
70
views
Object Look-up in JS Doesn't Work with WebGL2RenderingContext API Constants
For debug purposes in JS I decided to create a set of integer->string look-up tables which would allow me to re-interpret WebGL system constants back with their symbolic names. I used the "...
Tooling
1
vote
1
replies
107
views
Why does npm install most of the time corrupted?
When I run npm install, most of the time it is corrupted, missing dependencies, and critical files. Is there any way to bypass this and install without errors?