mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Merge branch 'master' of github.com:jonobr1/GUI-DAT
This commit is contained in:
commit
0554c7ea98
@ -1,31 +0,0 @@
|
|||||||
<!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>
|
|
Loading…
Reference in New Issue
Block a user