Commit b4b8c2dd by doszhang

dos

parent 29c9f98f
......@@ -352,9 +352,18 @@ function addCustomizeFlag() {
function addFlag() {
let text = $(this).find('.flag-text').text();
flagStack.push(text);
addFlagToList(text);
$('.flag-page .choose-num').text((chooseNum++) + 1);
}
function addFlagToList(text) {
let item = $('<div class="checked-item"></div>');
let flagNo = $('<div class="checked-flag-no">' + flagStack.indexOf(text) + 1 + '</div>');
let flagText = $('<div class="checked-flag-text">' + text + '</div>');
item.append(flagNo);
item.append(flagText);
}
function showFlagPage() {
$('.red-line').addClass('animate');
setTimeout(function () {
......
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