Commit 383d48df by doszhang

dos

parent 2dfb8d91
......@@ -97,12 +97,23 @@ $(document).ready(function () {
$('.flag-page .btn-change').on('click', randomFlag);
//选择flag
$(document).on('click', '.flag-page .flag-block', addFlag);
//自定义flag
$('.flag-page .btn-submit-flag').on('click', addCustomizeFlag);
});
function addCustomizeFlag() {
let text = $('input[name=customize-flag]').val();
if (text.match(/^\s*$/)) {
$('#notification_area').remove();
my_notify('请填写flag');
return false;
}
flagStack.push(text);
}
function addFlag() {
let text = $(this).find('.flag-text').text();
flagStack.push(text);
console.log(flagStack);
}
function showFlagPage() {
......
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