Last active
August 29, 2018 16:18
-
-
Save dackdel/a18c695d09c86e775f1e1cc3c6176c70 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> | |
<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