Skip to content

Instantly share code, notes, and snippets.

@dackdel
Last active August 29, 2018 16:18
Show Gist options
  • Save dackdel/a18c695d09c86e775f1e1cc3c6176c70 to your computer and use it in GitHub Desktop.
Save dackdel/a18c695d09c86e775f1e1cc3c6176c70 to your computer and use it in GitHub Desktop.
<html>
<head>
<!-- import jquery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<!-- import tramontana-->
<script src="https://rawgit.com/pierdr/tramontana/master/lib/tramontana_min.js"></script>
<!-- create a tramontana instance -->
<script>
var iphone=new tramontana();
</script>
</head>
<body>
<!-- add the ip address from the tramontana app on your ios/android/other device -->
<button onclick="iphone.start('192.168.1.2')">start</button><br/>
<!-- MAKE VIBRATE -->
<button onclick="iphone.makeVibrate()">vibrate</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment