Commit eb63dd9a by doszhang

dos

parent 6db57e06

4 KB | W: | H:

4 KB | W: | H:

Public/static/image2/._flag-no.png
Public/static/image2/._flag-no.png
Public/static/image2/._flag-no.png
Public/static/image2/._flag-no.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -382,11 +382,27 @@ function createPoster() {
bottomHalf.onload = function () {
bottomHalfTop = pxToRem(487) + pxToRem(flagListHeight);
posterCtx.drawImage(bottomHalf, pxToRem(45), bottomHalfTop, pxToRem(550), pxToRem(238));
drawFlagItem(pxToRem(flagListHeight + 20));
}
}
}
function drawFlagItem(initialPosition) {
let noBg = new Image();
noBg.src = picUrl + 'flag-no.png';
noBg.onload = function () {
let redline = new Image();
redline.src = picUrl + 'flag-redline.png';
let nodeList = $('.poster-page .poster-list .flag-item');
for (let i = 0; i < flagStack.length; i++) {
let offsetTop = $('.poster-page .poster-list .flag-item')[i]
let top = initialPosition + $(nodeList[i]).offset().top;
posterCtx.drawImage(noBg, pxToRem(105), top, pxToRem(44).pxToRem(39));
}
}
}
function showPosterPage() {
createPoster();
}
......
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