2,522,115 questions
Score of 0
0 answers
12 views
Null is not an object for DOM
I am trying to make a website that works as a task list.
When I click the Add button, I expect the typed input to be added to the chosen list, there should be a remove button next to it, and when I ...
Score of 0
1 answer
91 views
Are object URLs now cached on disk instead of memory only?
Looking at the cache on disk for the active profile, it appears that object URLs are being stored in the cache; and @Kaiido stated (at the end of a comment to Audio blobs and objectURL: is there a ...
Score of -2
0 answers
110 views
I've got an error with my upgrade buttons [closed]
I have 2 upgrade buttons: a click upgrade, and an auto clicker. When you try to buy an upgrade without enough money, you get a confirmation. But if you successfully buy an upgrade after getting that ...
Score of -4
0 answers
63 views
Reorder the properties in each object in an array [duplicate]
I have an array of objects where the properties of each object are sorted alphabetically. I want to change each object so the properties appear in a custom order: ["fname", "lname",...
Score of -6
1 answer
106 views
How do i put a image (that isn't in the project page) on a canvas in Js? [closed]
I'm trying to create a Miro/Freeform for personal use, but, for that I need a image.
I already tryed here, Stack, Github Copilot and more and nothing worked.
image code thing:
if (currentTool === '...
Score of -4
1 answer
71 views
How to interop with JavaScript DOM and handle static typing in Virune?
I am not the developer or maintainer of Virune; I am using it in my own project.
I am currently trying to write code for a project I am working on using a programming language called Virune.
Virune is ...
Score of 4
1 answer
96 views
YouTube iframe always overlays the video for ~3 seconds before disappearing
I am building a Netflix-style hover preview: hovering a poster opens a card that
plays that title's YouTube trailer as a background video. The card must
show no YouTube UI at all and draws its own ...
Score of 2
0 answers
126 views
How to ensure that PDF is restored to same scroll position when navigating within same web page?
In this example, there is something like a notebook display within the web page, two tabs of which include an embedded PDF. My objective is to ensure that when a user navigates away from a tab with a ...
Score of 2
0 answers
61 views
How can a Chrome extension automatically initialize a Supabase database schema for users without requiring them to run SQL manually?
I am developing a Chrome extension that uses Supabase as its backend. I want to use a BYOK (Bring Your Own Key) architecture, where each user provides their own Supabase project URL and API key.
...
Score of 2
2 answers
116 views
Is /[\s\S]/ the same as saying /.|\n/ in regex
I assumed in regex that saying:
/[\s\S]/
means the same as saying:
/.|\n/
But then I discovered that in JavaScript the line separator <0x2028> and the paragraph separator <0x2029> do not ...
Score of -1
1 answer
83 views
Generating grouped PDF from paginated API data in React/jsPDF without loading all rows into memory
I am generating a financial report PDF in a React application using jsPDF + jspdf-autotable.
The report is grouped by Account Head and has three levels of totals:
Account total (same account number)
...
Score of 2
2 answers
144 views
Avoid synthetic sounds overlapping
I have the following simple program in HTML and JavaScript:
let Soundon = 0;
document.addEventListener('click', function(evt) {
let Key = evt.target.id;
if (Key == "btn1") frq = 200;
if (Key =...
Score of -4
0 answers
97 views
How can I prevent JavaScript from running before the DOM is fully loaded? [duplicate]
I'm working on a small JavaScript project where need to select an HTML element and add an event listener to it.
The script is currently loaded in the <head> section, and sometimes document....
Score of -6
0 answers
139 views
How can I automatically scale a web application for different screen resolutions and display scaling?
I am using Bootstrap via CDN, and I use my web application across three different monitors. Since the monitors have different resolutions and scaling settings, the application appears at different ...
Score of -4
2 answers
179 views
How do I make it so that the script responds differently for each element?
I'm trying to make it so that each button opens up a different dialog box.
The script I use only allows for one dialog box, but not the other.
<html>
<style>
body{
...