jonathan-fielding / SimpleStateManager

A responsive state manager which allows you to run different javascript at different browser widths
624 stars 36 forks source link
bower debounce javascript matchmedia-api npm simplestatemanager ssm

Simple State Manager 4

Build Status Code Climate

Simple State Manager (SSM for short) is a javascript state manager for responsive websites. It is built to be light weight, has no dependencies (except javascript of course) and aims to be really easy to simply drop into your project ready to use.

As a state manager, SSM allows you to target different javascript towards different states of your site. It allows you to define as many states as your site requires and allows you to have independent Enter, Leave and Resize events for each of the states.

Getting started

To get started with SSM the first step is to include it in your project, you can do this in two ways

Documentation

Documentation can be found at http://www.simplestatemanager.com

Browser Support

Version 4.x of SimpleStateManager is built in ES6 so for the majority of browsers will require being transpiled to work accross different browsers. In its transpiled form SimpleStateManager supports:

The library is tested across browser prior to each release and every commit is validated using TravisCI and BrowserStack.

If you need to support Internet Explorer 8 or below their are two options available:

Release Log

4.0.0 - 10th December 2017

In SimpleStateManager 4 the library is completely rewritten into ES6. I also updated the API so that there is less duplication.

3.2.0 - August 24th, 2016

3.1.2 - June 17th, 2016

3.1.1 - March 8th, 2016

3.1.0 - February 10th, 2016

3.0.0 - June 8th, 2015

2.4.1 - May 17, 2015

2.4.0 - December 29, 2014

2.3.0 - July 25, 2014

2.2.6 - June 23, 2014

2.2.5 - June 12, 2014

2.2.4 - March 12, 2014

2.2.3 - February 14, 2014

2.2.2 - February 12, 2014

2.2.1 - January 31, 2014

2.2.0 - January 29, 2014

2.1.0 - December 23, 2013

2.0.3 - October 7, 2013

2.0.2 - September 26, 2013

2.0.1 - September 18, 2013

2.0.0 - September 13, 2013

1.3.0 - August 10, 2013

1.2.0 - August 9, 2013

1.1.0 - August 9, 2013

1.0.2 - August 6, 2013

1.0.1 - June 24, 2013

1.0.0 - June 22, 2013

License

License: MIT (http://www.opensource.org/licenses/mit-license.php)