Copyright Silex Labs 2014. Licensed under the MIT license.
Responsize can be used as an online tool, like the Responsize app hosted by Silex Labs. See the instructions bellow to host an instance on your servers.
Responsize can be used as a library, providing app developers with the individual components used in Responsize, such as the resizeable Stage component.
Use as a library
Install with bower
$ bower install responsize
Link the js and css files in your app
<!-- somewhere in your head tag -->
Use Responsize components in your app
var stage = element;// load a website in the stage, beware of the cross site scripting,// security has to be met here// or you can load the HTML content with an ajax call// and then use stage.setHtml() to set the iframe HTML content// (note: use the HTML <base> tag if needed to make sure the relative paths are loaded correctly)stage;// set the stage size to 1920x1024// if your screen is smaller than that,// Resonsize will load it with the desired size// and then scale it using css3 transform, to fit the #stage element.// you could simply let the stage auto size to loaded content: do not call Stage::setSize// or set stage.autoSize to true before calling stage.setUrlstage;// add WYSIWYG feature (optional)var wysiwyg = ;// skin the selection marker and morewysiwyg;// activate the mode where the user clicks are used to select elementswysiwyg;// optional: you can provide a function// to determine if the element can be selected by the userwysiwyg;// provide a callback in order to be notified when the user has selected an elementwysiwyg;
To remove the useless css classes and elements used during edition, use
Installation of the online tool
$ npm install $ bower install $ grunt build $ npm start
$ npm start $ grunt watch
Then open a browser at http://0.0.0.0:6969
Responsize has a goal: allow web designers to be more efficient at handling responsiveness.
The user opens an HTML page and manage bootstrap css classes or [Simple Grid ones](https://github.com/ThisIsDallas/Simple-Grid] for example. And also hides or shows elements depending on the window size, or goup them into a hamburger menu.
ResponSize is an amazing tool that enables the user to generate a responsive style sheet for a website. ResponSize can help you to have an optimal viewing experience for your website!
Unlike bootstrap builders, Responsize does not let the user add elements or edit content. But it goes along with other free tools: