Scripts
Re: Scripts
We use a few different scripts. Some turn up in each topic, others are used for specific topics.
Our specific ones:
Our specific ones:
- https://datatables.net/ lets users filter and sort tables.
- Some custom scripts that let users filter divs on a page to search for specific videos or to find a particular type of video. The search works as the user types a search term to display videos that use that term. The video type script uses some buttons to display groups of related videos.
- We use a customized version of https://github.com/gestixi/pictarea that adds borders to the actionable areas of an image map on hover.
- And another that we add to the help sites for our unsupported versions that displays a popup modal to direct people to the latest version of the help or let them stay on the older version. This uses cookies to check if they have already made a choice, so the popup isn't triggered on each page they visit.
- We have a script that adds a back-to-top button that displays when the users scroll down the page.
- Another script checks the user's browser settings to automatically display Vimeo video captions that match the browser language.
- And another (from https://www.madcapsoftware.com/blog/lef ... resizable/) that lets the user resize the ToC panel.