Commit 4be44472 by doszhang

dos

parent e436ea61
......@@ -77,7 +77,8 @@ let posterCanvas, posterCtx;
let scrollTimer,
showItemStatus = false,
nowShowIndex = 1;
nowShowIndex = 1,
createPosterLock = false;
const guardian = [
'事事顺意守',
......@@ -170,8 +171,12 @@ function toPage3() {
}
function showResult(event) {
const resultFlag = /-(\d)\s/g.exec($(event.target).attr('class'))[1]
createPoster(resultFlag)
if (!createPosterLock) {
const resultFlag = /-(\d)\s/g.exec($(event.target).attr('class'))[1]
createPoster(resultFlag)
createPosterLock = true;
}
}
function retry() {
......
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