BIT-101 [2003-2017]

MinimalCompsJS 0.1 Release


Well, it’s high time I got these out there so people can use them.

See them in action: http://www.bit-101.com/MinimalCompsJS/release/0.1/

I’ve combined all the files into one and minified it so you only need to include a single file, plus jQuery.

The html for the above example is simply:

[php lang=“html”]

[/php]

And test.js is as follows:

[php lang=“JavaScript”]$(function() {
var div = $("#comps").get(0);

new mc.VSlider(div, 10, 10)
.bindLabel(new mc.Label(div, 15, 125).setAlign(“center”), 0);

new mc.HSlider(div, 30, 10)
.bindLabel(new mc.Label(div, 145, 10), 0);

new mc.RadioButton(div, 30, 30, “Option 1”);
new mc.RadioButton(div, 30, 45, “Option 2”);
new mc.RadioButton(div, 30, 60, “Option 3”);
new mc.RadioButton(div, 30, 75, “Option 4”);

new mc.CheckBox(div, 100, 30, “Check 1”);
new mc.CheckBox(div, 100, 45, “Check 2”);
new mc.CheckBox(div, 100, 60, “Check 3”);
new mc.CheckBox(div, 100, 75, “Check 4”);

new mc.Label(div, 170, 10, “Enter name:”);
new mc.InputText(div, 235, 7);

new mc.Pushbutton(div, 170, 40, “Click me!”);
});[/php]

And here you can download all the source files, the test files, the combined js, and minified js files:

http://www.bit-101.com/MinimalCompsJS/release/0.1/MinimalComps-0.1.zip

I need to do some documentation, but looking through the source files should give you a pretty good idea of what’s going on. You’re smart people after all. If you make anything cool using them, be sure to share.