Commit 030c2d18 by doszhang

dos

parent 532e40a6
...@@ -128,8 +128,7 @@ function randomFlagArr(length) { ...@@ -128,8 +128,7 @@ function randomFlagArr(length) {
function createItem(flag, no) { function createItem(flag, no) {
let item = flagTemplate.clone(); let item = flagTemplate.clone();
item.find('.flag-no').text(no); item.find('.flag-no').text(no);
item.find('.flag-text').text(flag); item.find('.flag-text').text(flag).addClass('flag' + no);
item.addClass('flag' + no);
$('.flag-frame').append(item); $('.flag-frame').append(item);
} }
......
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