Commit 534fb950 by doszhang

dos

parent 3c5a6ccb
{:extends file="layout.tpl"}
{:block name='projectx'}
{:$projectId=364}
{:$projectId=370}
{:/block}
// css 文件导入
......
......@@ -69,12 +69,14 @@ $(document).ready(function () {
function init() {
inited = true;
$('.page1').show();
window.addEventListener("resize", resizeCanvas, false);
window.addEventListener("DOMContentLoaded", onLoad, false);
}
function onLoad() {
canvas = document.getElementById("canvas");
canvas.appendTo('.page1')
ctx = canvas.getContext("2d");
resizeCanvas();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment