
“Content material Swapper” is a JavaScript class that helps set up content material on a single web page in a method that navigating by means of it turns into very straightforward and user-friendly. It does so by swapping content material primarily based on a Fragment Identifier hyperlink (e.g. #some-id) that refers to an anchor ingredient on the identical web page which has an attribute string equal to the fragment worth (e.g. id=”some-id”). This script could be very helpful for creating assist recordsdata, faq pages, displays and so forth.