Skip to content

Tag: html

Trying to duplicate flexible banner as seen in video

Im trying to duplicate something like what is shown in the video. I have 2 blocks of div. One containing a random image and another a video and im trying to make them flexible and identical as possible to the video. How can I approach this? I tried using flex box to align them horizontally then media query th…

how to disable a function

This code will alert hello world when i press space key. And when i execute the second function, i expect it to alert “hello” when i press space key but it executes both function and alerts “hello world” and “hello” instead, so i was wondering how can i disable the function…

How to change active class of the navbar on scroll

I tried every js code that I only could find, but nothing works, I don’t understand why, I checked console, no mistakes there. Maybe somebody can spot the mistake? Maybe I have to import some files or something else? Somehow code does not see the scroll, only when I click on the link. Is there a way to …

Convert NodeList to Array for a Stepper to work with IE

I want to create a simple Vanilla JS horizontal stepper without the addition of CSS or JS libraries. I have found this example but it doesnt work with IE browser. The problem is the following line: where he is converting the NodeList of ‘divs’ with class .bullet to Array. Is there any way to make …