Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = {
- initialize: function()
- {
- this.bindEvents();
- },
- bindEvents: function ()
- {
- document.addEventListener('deviceready',this.onDeviceReady(),
- false)},
- onDeviceReady: function () {
- canvas.width = window.innerWidth;
- canvas.height = window.innerHeight;
- window.addEventListener('touchstart', function(event){
- console.log(event.touches);
- touchX = event.touches[0].pageX;
- touchY = event.touches[0].pageY;
- console.log(touchX, touchY);
- if (touchX <= button1.x + button1.width && touchX >= button1.x)
- {
- if (touchY <= button1.y + button1.height && touchY >=
- button1.y) {
- check = 1; // Everything is fine until here.
- bluetoothSerial.isEnabled(success(), fail()); // the code
- here and below here is never executed.
- c.font = "80px Arial";
- c.fillText("here",50,50);
- }
- }
- serialBluetooth is not defined error.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement