Commit 38918889 by doszhang

dos

parent 25d763db
...@@ -152,6 +152,7 @@ let mainColor = 'red'; ...@@ -152,6 +152,7 @@ let mainColor = 'red';
let colorIndex = 4; let colorIndex = 4;
let checkedDecorate; let checkedDecorate;
let checkFlagListStatus = false; let checkFlagListStatus = false;
let firstChooseFlag = true;
const fontSize = parseFloat($('html').css('fontSize')); const fontSize = parseFloat($('html').css('fontSize'));
...@@ -381,6 +382,11 @@ function createList(flag, no) { ...@@ -381,6 +382,11 @@ function createList(flag, no) {
} }
function addCustomizeFlag() { function addCustomizeFlag() {
if (firstChooseFlag) {
$('.checked-flag-list').css('transform', 'scale(1)');
checkFlagListStatus = true;
firstChooseFlag = false;
}
let text = $('input[name=customize-flag]').val(); let text = $('input[name=customize-flag]').val();
if (text.match(/^\s*$/)) { if (text.match(/^\s*$/)) {
$('#notification_area').remove(); $('#notification_area').remove();
...@@ -392,6 +398,11 @@ function addCustomizeFlag() { ...@@ -392,6 +398,11 @@ function addCustomizeFlag() {
} }
function addFlag() { function addFlag() {
if (firstChooseFlag) {
$('.checked-flag-list').css('transform', 'scale(1)');
checkFlagListStatus = true;
firstChooseFlag = false;
}
$('.flag-choose-tip').removeClass('active'); $('.flag-choose-tip').removeClass('active');
let text = $(this).find('.flag-text').text(); let text = $(this).find('.flag-text').text();
flagStack.push(text); flagStack.push(text);
......
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