Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (tms, window, $) {
- // Put any variables you need for the header stuff up here
- const header = $('header-class')
- // Have your toggle class function here,
- // then put any other functions related to the header in this area
- function toggleBackground() {
- header.toggleClass('class-to-add')
- }
- // Any functions that you need available in your application elsewhere,
- // put them inside of this
- tms.header = {
- showBackground: toggleBackground
- }
- })(window.tms = window.tms || {}, window, jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement