Refactors SpHelloBar into a reusable script without JS or CSS dependencies (other than a throttle function)
- SpHelloBar.js is designed to be a reusable and extendable base that could be used on any site
- cookieManager.js, getRandomContent.js and trackEvent.js are used as mixins extending the basic SpHelloBar
- as they are specific to this site they make use of jquery for ajax and cookies
- they could easily be refactored to use other libs (without touching SpHelloBar.js) if jQuery was not available
WP Admin