view service/deskArduino/index.html @ 1136:1e43ec4a5f23

build and import updates for rdfdb, etc Ignore-this: 233cb2b31f03be51695f0fff40eecca7 darcs-hash:92c1c526292f9013ad41d2e3b6d11add8fff02ae
author drewp <drewp@bigasterisk.com>
date Mon, 19 Feb 2018 04:21:28 -0800
parents 9e99114dde57
children
line wrap: on
line source

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>desk arduino</title>
    <style type="text/css" media="all">
      /* <![CDATA[ */
      body {
	  background: #000000;
	  color: #888;
      }
      h1 {
	  font-size:100%;
      }
      div.credit {
	  font-size: 80%;
	  margin-top:41px;
      }
      /* ]]> */
    </style>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://bigasterisk.com/bathroomLight/static/farbtastic/farbtastic.js"></script>
    <link rel="stylesheet" href="http://bigasterisk.com/bathroomLight/static/farbtastic/farbtastic.css" type="text/css" />

  </head>
  <body>
    <h1>desk arduino</h1>

    <div class="colorpicker" chan="0"></div>
    <div class="colorpicker" chan="1"></div>
    
    <script type="text/javascript">
      $(document).ready(function() {
	  $(".colorpicker").each(function (elem) {
	      var chan = $(this).attr("chan");
	      
	      var picker = $.farbtastic(this, function (newColor) {
		  $.post('brite/'+chan, newColor);
	      });
	      
	      $.get('brite/'+chan, picker.setColor);
	  });
      });
    </script>
    
    <div class="credit">
      Using the 
      <a href="http://acko.net/dev/farbtastic">Farbtastic color picker</a>
    </div>

  </body>
</html>