Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 1.19 KB

README.md

File metadata and controls

16 lines (11 loc) · 1.19 KB

discourse-sp-hello-bar

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

screen shot 2015-09-18 at 9 22 41 am

screen shot 2015-09-18 at 9 23 09 am

screen shot 2015-09-18 at 9 32 49 am

WP Admin

screen shot 2015-09-18 at 10 00 46 am