Skip to content

Instantly share code, notes, and snippets.

@smcl smcl/led.html
Created Feb 7, 2016

Embed
What would you like to do?
<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
You can’t perform that action at this time.