Automatically scales any web app perfectly. For realzies, good dealzies.
Just drop the script in wherever you'd like. You can add config options into a file that's referenced by the data-scale-config attribute.
<script data-scale-config="scale-config.js" src="js/lib/scalable.js"></script>Scalable can be used without setting any config options by just not including the data-scale-config attribute. Otherwise, options can be set by creating a file and naming it the same thing as the path set in data-scale-config. In this case the file would be named "scale-config.js".
The config options are set much like RequireJS. Right now the only option is scaleType. It can be either a single string or an array of strings that define the type of scalableness desired.
Scalable.config({
scaleType: 'Web2'
});The current types of scalability are:
Web2for Web 2.0.BIGDATAfor big data.RWDfor responsive web design.HTML5for HTML5.Imagesfor images.SEOfor search engine optimization.
If no configurations are set Scalable will just scale for Web 2.0 by default.
Feel free to submit a pull request of any code that you've found to automatically scale JS code. We follow a super-strict coding standard documented here, but if you don't follow it it's no biggy.
This library is licensed under the WTFPL.
