Skip to content

Tag: javascript

How to load all audio files on my page with js

i am trying to generate file paths to all audio files with js, but my script isn’t work as i expected. Here is my file structure: https://github.com/TonnyHawk/solfege/tree/main/%23src/audio/36 As you can see there are only 12 filenames that repeated and only folder names change. i collected all posible …

html – track mouse position within element

I wish to show current position within element with a text box under cursor position. below code looks like has some offset between mouse and text box. how can I fix it to show current position within the slides box? Answer Check these changes: the text now will be under the cursor but will not go outside you…

How to iterate over js elements

I have this java class: Objects of this class are in List: I am adding this element to the page and want to display the sum of the quantity parameters for the entire List. Similar Java code: I am trying to do this now, but my attempts fail because I don’t know much Js. The logic is as follows: there