diff --git a/demo/wagon-hastec-launcher.js b/demo/wagon-hastec-launcher.js index 204b4d8..4dc7eb5 100644 --- a/demo/wagon-hastec-launcher.js +++ b/demo/wagon-hastec-launcher.js @@ -40,7 +40,5 @@ var select = makeSelect(controlPanel, "example program:", examplePrograms, function(option) { document.getElementById('prog').value = option.contents; }); - selectOptionByText(select, "reverse0.pail"); + selectOptionByText(select, config.initialOption); } - -launch({ container: document.getElementById('installation') }); diff --git a/demo/wagon.html b/demo/wagon.html index 38831f3..43da1b2 100644 --- a/demo/wagon.html +++ b/demo/wagon.html @@ -14,4 +14,10 @@ <script src="../eg/examplePrograms.jsonp.js"></script> <script src="wagon-hastec-launcher.js"></script> <script src="wagon.js"></script> +<script> +launch({ + container: document.getElementById('installation'), + initialOption: "reverse0.wagon" +}); +</script> </body>