A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
| 'use strict'; | |
| var Alexa = require("alexa-sdk"); | |
| exports.handler = function(event, context, callback) { | |
| var alexa = Alexa.handler(event, context); | |
| alexa.registerHandlers(handlers); | |
| alexa.execute(); | |
| }; | |
| var handlers = { |
| var canvas; | |
| var ctx; | |
| var x = 75; | |
| var y = 50; | |
| var WIDTH = 400; | |
| var HEIGHT = 300; | |
| var dragok = false; | |
| function rect(x,y,w,h) { | |
| ctx.beginPath(); |