瀏覽代碼

Entry point to application.

dev-tmpl
Bryan Miller 6 年之前
父節點
當前提交
db2e02d303
共有 1 個檔案被更改,包括 17 行新增0 行删除
  1. +17
    -0
      app/js/main.js

+ 17
- 0
app/js/main.js 查看文件

@@ -0,0 +1,17 @@


function initialize(DOC){
console.log(DOC);
var canvas = DOC.getElementByID("painter");
if (!canvas){
throw new Exception("DOM Missing painter canvas.");
}
var ctx = canvas.getContext("2d");
if (!ctx){
throw new Exception("Failed to obtain canvas context.");
}
}


//console.log(document.getElementByID("painter"));
//initialize(document);

Loading…
取消
儲存