2,522,962 questions
0
votes
0
answers
27
views
The mobile hamburger menu isn’t displaying or styling correctly with the current CSS
Honestly, I am at my absolute wits' end with this. I’ve spent the last few hours trying absolutely everything to get this working. I'm trying to rework the dropdown menu of my site when it's in mobile ...
-1
votes
0
answers
43
views
Troubleshooting SoundtouchJS and web audio API, source does not play, pitch does not shift. Need assistance
I am trying a 100% frontend demo the example of soundtouchjs (formant correction worklet) (https://github.com/cutterbl/SoundTouchJS/tree/master/packages/formant-correction-worklet ( see the README) ): ...
2
votes
1
answer
49
views
Why doesn't registering a web component from the parent page in an un-sandboxed iframe work?
When
customElements.define(name, window.top.customElements.get(name))
is called inside a script (with type="module", in case that is consequential somehow) in an (un-sandboxed) iframe, it ...
-7
votes
0
answers
96
views
Opening links into new windows from JavaScript code [closed]
I have a block of JavaScript code that is responsible for a header bar on my website that scrolls from bottom or top. This header bar has both text and icon links embedded within. The icon links open ...
0
votes
1
answer
78
views
How to render a property-based Svelte snippet with a pre-defined property value?
If I have a Svelte file with two snippets, one of type Snippet<[]> and one Snippet<[string]>, and I want to dynamically render the latter with a pre-defined state variable.
Here is a ...
Best practices
0
votes
5
replies
90
views
Is fixing child.prototype.constructor necessary in ES5 if we solely rely on [[Prototype]] check methods like Object.getPrototypeOf()?
When implementing the parasitic combination inheritance pattern in ES5, almost every resource (including Nicholas Zakas' book) insists on fixing the constructor property like this:
function ...
1
vote
1
answer
95
views
Cannot change orientation of triangle in ThreeJS
I have an octahedron whose vertices coordinates came from a computation. I build the object using a BufferGeometry and a MeshStandardMaterial (see the code below).
The resulting object has 4 facets ...
0
votes
0
answers
168
views
Image mask is not fully transparent but rather semi-opaque [closed]
The issue as of right now is that the "logo-box" (the mask for the logo image) is currently not fully transparent like it is supposed to be. The idea for the logo is for it to be fully ...
0
votes
1
answer
58
views
How to implement webkit_web_view_evaluate_javascript() in C / gtk4 / GObject
I'm creating an application that has an embedded web browser. I've been writing Lisp and C (gtk4) for sometime, but I'm brand new with JavaScript. I need to execute JavaScript in the browser to find ...
-3
votes
0
answers
44
views
Why does React StrictMode create duplicate WebSocket subscriptions even when cleanup runs correctly? [duplicate]
I'm debugging a React 18 application that establishes a WebSocket connection inside a custom hook.
function useSocket(url) {
useEffect(() => {
const socket = new WebSocket(url);
socket....
Advice
0
votes
3
replies
72
views
Modifying web socket code at site startup using a proxy cloudflare worker
I've been trying to figure out how to send a message through another site's web socket, and ive heard the best way (WITHOUT AN EXTENSION) to do this would be to run the site through a proxy on a ...
1
vote
2
answers
112
views
Simple p5.js sound player, sound is forever 'undefined'
I started this project two days ago with the intent to slowly learn about audio features while building up a simple audio player, but I can't even get past step one: getting the audio to play. It just ...
1
vote
1
answer
79
views
Babylon.js + Vite: Failed to load module script and blank index.html in dist [closed]
I'm trying to deploy a Babylon.js game using Vite onto Github Pages and I'm running into a couple issues.
- index.html in the built folder is blank.
- Navigating to the deployed Github Page displays ...
-1
votes
0
answers
66
views
ESCPOS printer in NEXT JS [closed]
I'm creating a NextJS application that will have a screen for ESCPOS printer settings. Is there a way to set the printer as the default? Because when I click print in the application, it opens the ...
-5
votes
0
answers
93
views
Why Do Some WhatsApp Flows Media Files Decrypt Correctly While Others Fail? (Progressive JPEGs Usually Fail) [closed]
I'm debugging WhatsApp Cloud API encrypted media downloads and I'm seeing a very specific failure mode that I cannot explain.
The downloaded .enc file matches the encrypted_hash exactly, but HMAC ...