Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function (tms, window, $) {
  2.   // Put any variables you need for the header stuff up here
  3.   const header = $('header-class')
  4.  
  5.   // Have your toggle class function here,
  6.   // then put any other functions related to the header in this area
  7.   function toggleBackground() {
  8.     header.toggleClass('class-to-add')
  9.   }
  10.  
  11.   // Any functions that you need available in your application elsewhere,
  12.   // put them inside of this
  13.   tms.header = {
  14.     showBackground: toggleBackground
  15.   }
  16. })(window.tms = window.tms || {}, window, jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement