Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Javascript class, initialize with object & optional values

I have a few questions regarding the code below: export class Person { constructor(obj = { id: 0, name: '', lastName: '', eyeColor: '', age: 0 }) { this.id = obj.id; this.name =...
Werner Venter's user avatar
0 votes
0 answers
4 views

Referencing Json files in Storyline 360

Storyline gives advice on how to add external Javascript to a course: https://access.articulate.com/support/article/Articulate-Storyline-360-JavaScript-Best-Practices-and-Examples By adding the ...
Sentient Onion's user avatar
0 votes
1 answer
13 views

Error [ERR_REQUIRE_CYCLE_MODULE]: Cannot require() ES Module...but I'm not

Trying to run my node app, with node main.js, but getting this error: Error [ERR_REQUIRE_CYCLE_MODULE]: Cannot require() ES Module. I have also tried node --experimental-specifier-resolution=node main....
nerdlinger's user avatar
  • 2,117
0 votes
1 answer
25 views

How do you pass a bound method as a parameter in javascript?

I'm trying to pass a bound method to a function, but I can't quite figure out the syntax. It seems like javascript wants to somehow differentiate between an unbound method and a bound method, but ...
xaviersjs's user avatar
  • 1,725
0 votes
1 answer
25 views

Combine data from different cells in a table

I'm trying to read data stored in a csv file and present it in a table, using JavaScript. The csv data (comma delimited) is (I reduced it to be much smaller than the actual one): Number, PDF1, PDF2, ...
Georgiy Shoulga's user avatar
0 votes
0 answers
15 views

JS, Is there a way web client access file cached date of image url?

I have a react component for thumbnails in client, export default function Thumbnail({ url, updatedDate, // updatedDate is from server api }) { const cachedDate = new Date(.....); const ...
user367942's user avatar
0 votes
0 answers
21 views

mouse drag function in javascript

I am not familiar with javascript coding to deal with the problem of the source code on my own. I downloaded a nice Linkage Simulator code written in Javascript from this website https://edu-mat....
Aschoolar's user avatar
  • 355
0 votes
0 answers
11 views

Problems with some glowing style on safari

Im having trouble with safari, that makes me that square effect, I don't remember how to fix it! const getGlowingStyles = (theme: Theme) => { const glowing = keyframes` 0% { background-...
Roberto Orazi's user avatar
0 votes
0 answers
17 views

Run Cypress 13 on a machine without Internet connection

We would like to run Cypress tests on a machine that has no connection to the Internet. The machine runs an Ubuntu 22.04.5LTS operating system. Steps to reproduce: On an Ubuntu machine with Internet ...
Gridders's user avatar
0 votes
0 answers
16 views

getComputedStyle wrong for placeholder on some mobile devices

This seems like a browser bug to me but I couldn't find anyone else seeing the same problem. It seems like getComputedStyle isn't getting the right font-size for an input placeholder for some mobile ...
kerfuffly's user avatar
0 votes
0 answers
8 views

Arabic "Majed" voice randomly not showing in SpeechSynthesis (TTS) API

Browsers with the SpeechSynthesis provide Arabic through one voice "Majed" as ar-001 or ar-SA and it usually works on all browsers except ones that use WebKit I noticed. On Webkit based ...
Saamer's user avatar
  • 5,114
0 votes
2 answers
29 views

Show / hide div using checkbox and addEventListener click event

The following javascript works but not in my application as a product filter. In my case, clicking the checkbox displays the div but unchecking does not hide the div. Applying, onclick event to the ...
Bill's user avatar
  • 81
0 votes
0 answers
10 views

Chart.js barplot keeps getting bigger without stopping

Just like the title says. I have a chart that when I open the page it keeps getting bigger and bigger and bigger. I genuinely don't understand why because I have another plot pretty similar with the ...
Lucas Varela's user avatar
0 votes
0 answers
12 views

Custom VueJS ESLint rule for parsing <tempate> section does not work

I have the following config, custom rule, and template: export default [ { files: ['**/*.{js,vue}'], languageOptions: { ecmaVersion: 'latest', sourceType: 'module', parser: ...
1192805's user avatar
  • 1,026
0 votes
0 answers
18 views

Binding scalar data to HTML element - JavaScript Proxies

I may be guilty of a bit of an XY question here, but I'm doing this out of theoretical interest rather than any immediate need. My goal is, ultimately, to build a lightweight framework that allows me ...
Tom Auger's user avatar
  • 20k

15 30 50 per page
1
2 3 4 5
…
168861