浏览代码

Some tweaks before diving in

dev-tmpl
Bryan Miller 6 年前
父节点
当前提交
b100b95ee9
共有 3 个文件被更改,包括 8 次插入3 次删除
  1. +7
    -1
      app/css/nespaint.css
  2. +0
    -1
      app/js/main.js
  3. +1
    -1
      index.html

+ 7
- 1
app/css/nespaint.css 查看文件

body{ body{
background-color:#000;
background-color:#666;
}

#painter{
background-color:#444;
width: 75%;
height: 75%
} }

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





function initialize(DOC){ function initialize(DOC){
console.log(DOC);
var canvas = DOC.getElementById("painter"); var canvas = DOC.getElementById("painter");
if (!canvas){ if (!canvas){
throw new Error("DOM Missing painter canvas."); throw new Error("DOM Missing painter canvas.");

+ 1
- 1
index.html 查看文件

</head> </head>
<body> <body>


<canvas id="painte"></canvas>
<canvas id="painter" width:"128" height:"256"></canvas>


</body> </body>
<script src="app/js/main.js"></script> <script src="app/js/main.js"></script>

正在加载...
取消
保存