Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mike-zarandona/projectblocker

A handy jQuery solution for blocking responsive, IE, or incomplete bits from being seen while in development.
https://github.com/mike-zarandona/projectblocker

Last synced: about 2 months ago
JSON representation

A handy jQuery solution for blocking responsive, IE, or incomplete bits from being seen while in development.

Awesome Lists containing this project

README

        

# ProjectBlocker

[![Bower version](https://badge.fury.io/bo/project-blocker.png)](http://badge.fury.io/bo/project-blocker)
[![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)

A handy jQuery solution for blocking responsive, IE, or incomplete bits from being seen while in development.

[GitHub](https://github.com/mike-zarandona/ProjectBlocker) | [Demo](http://codepen.io/mike-zarandona/full/bNYvmw/)

_Features_:
- **Block responsive web design** - gives you the ability to demo coded previews without worrying about how the project might look on mobile devices.
- **Block the homepage** - show a polite message that a page isn't yet ready to be viewed to keep visitors out of broken or unfinished areas of preview sites.
- **Block Internet Explorer** - _duh_.
- **Customizable and friendly blocking messages** - because good UX is the right thing to do.
- **Bypass for developers** - for sanity.

![ProjectBlocker in Action](http://i.imgur.com/Vliy8dR.gif)


## Getting Started
1. Include jQuery.
1. Include `dist/jquery.projectblocker.min.js`.
1. When the `document` is `ready()`, initialize **`ProjectBlocker`**:

```javascript
$(document).on('ready', function() {
$.projectBlocker();
});
```

### Full Example
```javascript
$(document).on('ready', function() {
$.projectBlocker({
responsive: 'hide',
minWidth: 1200,

homepage: 'hide',
homepageSelector: '#wrapper.homepage',

ie: 'hide'
});
});
```

When all else fails, check out the `demo/`.


## A Note on Functionality
**`ProjectBlocker`** blocks responsive web design by throwing up the friendly blocking message plus overlay, but _also_ adds a CSS `max-width` property to the `