-
Notifications
You must be signed in to change notification settings - Fork 359
JavaScript
Jason Rosa edited this page Dec 22, 2020
·
3 revisions
The JavaScript for the HubSpot CMS Boilerplate is split up into two main files. The first is the main.js
file and the second is the JavaScript found in the Menu section
module. The main.js
file controls the toggles for the mobile menu, the language switcher, and the search bar. The Menu section
module's JavaScript controls mobile toggles within the menu such as child menu toggles.
The HubSpot CMS Boilerplate uses vanilla JavaScript for our JavaScript files. HubSpot comes built in with jQuery which can be disabled in your portal if it is not needed or if you wanted to use a different version of jQuery.