diff --git a/index.html b/index.html index e08f68e..d5bb603 100644 --- a/index.html +++ b/index.html @@ -48,16 +48,6 @@ gui.add(fizzyText, "explode").setName('Explode!'); // Specify a custom name. }; - - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-20996084-1']); - _gaq.push(['_trackPageview']); - - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); @@ -81,24 +71,25 @@ window.onload = function() { var fizzyText = new FizzyText("gui-dat"); - GUI.start(); + var gui = new GUI(); + document.body.appendChild( gui.domElement ); // Text field - GUI.add(fizzyText, "message"); + gui.add(fizzyText, "message"); // Sliders with min and max - GUI.add(fizzyText, "maxSize", 0.5, 7); - GUI.add(fizzyText, "growthSpeed", 0.01, 1); - GUI.add(fizzyText, "speed", 0.1, 2); + gui.add(fizzyText, "maxSize", 0.5, 7); + gui.add(fizzyText, "growthSpeed", 0.01, 1); + gui.add(fizzyText, "speed", 0.1, 2); // Sliders with min, max and increment. - GUI.add(fizzyText, "noiseStrength", 10, 100, 5); + gui.add(fizzyText, "noiseStrength", 10, 100, 5); // Boolean checkbox - GUI.add(fizzyText, "displayOutline"); + gui.add(fizzyText, "displayOutline"); // Fires a function called "explode" - GUI.add(fizzyText, "explode").setName('Explode!'); // Specify a custom name. + gui.add(fizzyText, "explode").setName('Explode!'); // Specify a custom name. };