Commit 71ca3ed9 by doszhang

dos

parent 39bb919a
...@@ -66,6 +66,7 @@ $(document).ready(function () { ...@@ -66,6 +66,7 @@ $(document).ready(function () {
let canvasinfo = initCanvas('.black', 'uploadCanvas', 257, 257); let canvasinfo = initCanvas('.black', 'uploadCanvas', 257, 257);
uploadCanvas = canvasinfo[0]; uploadCanvas = canvasinfo[0];
uploadCtx = canvasinfo[1]; uploadCtx = canvasinfo[1];
console.log(black)
$('.logo').css('top', getTranslateDistance(20)); $('.logo').css('top', getTranslateDistance(20));
$('.music').click(function () { $('.music').click(function () {
if ($('#music')[0].paused) { if ($('#music')[0].paused) {
...@@ -216,6 +217,7 @@ function initCanvas(target, id, canvasWidth, canvasHeight, useRem = false) { ...@@ -216,6 +217,7 @@ function initCanvas(target, id, canvasWidth, canvasHeight, useRem = false) {
canvasHeight = pxToRem(canvasHeight); canvasHeight = pxToRem(canvasHeight);
} }
black = loadedImages[blackUrl]; black = loadedImages[blackUrl];
console.log(black)
$(target).append($('<canvas id="' + id + '" width="' + canvasWidth + '" height="' + canvasHeight + '"></canvas>')); $(target).append($('<canvas id="' + id + '" width="' + canvasWidth + '" height="' + canvasHeight + '"></canvas>'));
canvas = $('#' + id)[0]; canvas = $('#' + id)[0];
ctx = canvas.getContext("2d"); ctx = canvas.getContext("2d");
......
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