Commit cc8f6b80 by doszhang

dos

parent 9ef50e4b
......@@ -5,13 +5,13 @@ body {
font-family: "Microsoft YaHei";
}
.page1 canvas {
.page1 #fireworkCanvas {
width: 640px;
height: 1400px;
z-index: 2;
}
.page7 #fireworkCanvas,
.page7 canvas,
.page7 .posterimg {
width: 640px;
height: 1238px;
......
......@@ -217,7 +217,7 @@ function init() {
function onLoad() {
$('.canvas-block').html('<canvas id="fireworkCanvas"></canvas>');
fireworkCanvas = document.getElementById("fireworkCanvas");
fireworkCtx = canvas.getContext("2d");
fireworkCtx = fireworkCanvas.getContext("2d");
resizeCanvas();
window.requestAnimationFrame(updateWorld);
......
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