Skip to content

EugeneMH/Module-tabs-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

modules-tabs

The module allows the user to switch between different tabs on the web-page on click

tabsSelector - the names of all the relevant tabs from the HTML file tabcontent - the tabs themselves (divs) tabsParentSelector - a wrapper for all the tabs' names

functions hideTabContent and showTabContent hide all the tabs and show only the first one

adding an EventListener allows us to show a tab on click if the click's target corresponds with any of the tabs' names and related index

I also attach a CSS file to access the styles used ('show', 'fade', 'hide')

About

A short module allowing to switch between different tabs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published