Created
February 7, 2016 17:51
-
-
Save smcl/a3cb464ab5ffcfd25643 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.1.6/zepto.min.js"> | |
</script> | |
<script> | |
function toggleLED() { | |
$.post("/", {}, function(response){ | |
location.reload(); | |
}); | |
} | |
</script> | |
<body> | |
<p> | |
LED is <button onclick="toggleLED()">%s</button> | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment