Skip to content

Tag: javascript

How to filter HTML Collection in JavaScript?

Hi I have problem with filtering HTML collection. I obtained list of classes as html collection. One of those class have .active class. I need to remove all other classes from this list and left only next one AFTER active class. Please how to do that? Example of my list: My code: Answer You can directly query…

cant get length of m4a audio file on webpage

I am trying to make a nodejs website that will return the length in seconds of any audio file a user chooses. So far I have it working with mp3, wav, and flac files. But it doesn’t work for all .m4a or .aif files The code for my HTML page with javascript is below: I gathered 6 different files for

The HTML file dont hit the CSS file

I am beginner in express, js and node.js I have followed lot of tutorials about express, and i dont understand why the index.html file dont call the corresponding CSS file: my server.js file: my index.html file: my CSS file: and the different folders of the project: when i type localhost:8081/0, the result is…