er&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
   </div>
   <p>There's really not much to it, just 3 sliders and a button linked to JavaScript functions.</p>
   <h4>JavaScript</h4>
   <div>
       <pre><code>var rainbowEnable = false;
var connection = new WebSocket('ws://' + location.hostname + ':81/', ['arduino']);
connection.onopen = function () {
  connection.send('Connect ' + new Date());
};
connection.onerror = function (error) {
  console.log('WebSocket Error ', error);
};
connection.onmessage = func