Skip to content

Instantly share code, notes, and snippets.

@w4ilun
Last active August 29, 2015 14:10
Show Gist options
  • Save w4ilun/ae5445bec820d086ef7b to your computer and use it in GitHub Desktop.
Save w4ilun/ae5445bec820d086ef7b to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.socket.io/socket.io-1.2.1.js"></script>
<script>
$(function(){
var socket = io.connect('http://INTEL_EDISON_IP_ADDRESS:3000');
$('#slider').on('input change',function(){
socket.emit('changeBlinkInterval',$(this).val());
});
});
</script>
</head>
<body>
<h1>Slide to change blink interval!</h1>
<input id="slider" type="range" min="100" max="1000" value="1000" />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment