Initial files

This commit is contained in:
George Michael Brower 2011-01-23 14:23:53 -07:00
parent e60bd784f8
commit c3021baa2f
2 changed files with 34 additions and 0 deletions

27
demo.html Normal file
View File

@ -0,0 +1,27 @@
<html>
<head>
<script type="text/javascript" src="gui.js"></script>
<script type="text/javascript">
var controllableObject =
{
"numberProperty": 20,
"anotherNumberProperty": 0,
"textProperty": "a string",
"booleanProperty": false
};
/*
GUI.number(controllableObject, "numberProperty");
GUI.number(controllableObject, "anotherNumberProperty", -100, 100);
GUI.text(controllableObject, "textProperty");
GUI.boolean(controllableObject, "booleanProperty");
*/
</script>
</head>
<body>
</body>
</html>

7
gui.js Normal file
View File

@ -0,0 +1,7 @@
var GUI = new function() {
this.add = function(a) {
console.log(typeof a);
}
}