dat.gui/proto/draggable-button.html

31 lines
847 B
HTML
Raw Normal View History

<!doctype html>
<head>
<title>Draggable Button Prototype</title>
<script type = "text/javascript" src = "../controller.js"></script>
<script type = "text/javascript" src = "../gui.js"></script>
<script type = "text/javascript">
var controllableObject = {
numberProperty: 20,
anotherNumberProperty: 0,
textProperty: "a string",
booleanProperty: false,
functionProperty: function() {
alert("I am a function!");
}
};
window.onload = function() {
GUI.start();
// Creates a number box
GUI.add(controllableObject, "numberProperty");
}
</script>
</head>
<body>
</body>
</html>