Interesting task, lots of details to work out. At first it seems simple, but if you study the layouts, many things need to be transferred from CSS to JS and additional conditions need to be written.
What specific areas of your project would you like help with?JS code can probably be written shorter without losing logic.