I have designed a calendar timeline using html. My goal is to implement a vertical line that moves from left to right as time progresses, overlaying all other html elements. This functionality is similar to Google Calendar's way of indicating the current time of day.
Here is an example of what I am trying to achieve:
https://i.stack.imgur.com/lnjRP.png
The black vertical line in the image above is what I am aiming to create using javascript. It should be displayed on top of all other elements on the page.
This task is part of a university project and I am unsure where to begin with this implementation.
Currently, I have a progress bar element (built with twitter bootstrap) and some javascript code that updates the width percentage of the progress bar based on the calculated value of currentTime/(end-start).