Commit 227d54f4 by doszhang

dos

parent 011e6274
...@@ -112,6 +112,15 @@ $(document).ready(function () { ...@@ -112,6 +112,15 @@ $(document).ready(function () {
function showPersonalPage() { function showPersonalPage() {
$('.flag-page').fadeOut(300); $('.flag-page').fadeOut(300);
$('.personal-page').fadeIn(300); $('.personal-page').fadeIn(300);
// 创建个性化页面的flag列表
createList(flag[0],1);
}
function createList(flag,no) {
let item = listTemplate.clone();
item.find('.flag-no').text(no);
item.find('.flag-text').text(flag);
$('.personal-page .flag-list').append(item);
} }
function addCustomizeFlag() { function addCustomizeFlag() {
...@@ -193,7 +202,7 @@ function createItem(flag, no) { ...@@ -193,7 +202,7 @@ 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').append('<span>' + flag + '</span>').addClass('flag' + no); item.find('.flag-text').append('<span>' + flag + '</span>').addClass('flag' + no);
$('.flag-frame').append(item); $('.flag-page .flag-frame').append(item);
} }
function fadeInTextUp(text, fadeTime, divName) { function fadeInTextUp(text, fadeTime, divName) {
......
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