From b3e94fa84cb9212fdce121af03305374adde74eb Mon Sep 17 00:00:00 2001 From: xrr2016 <13286904669@163.com> Date: Fri, 23 Dec 2016 22:59:08 +0800 Subject: [PATCH 1/4] :zap: another way --- 15 - LocalStorage/index-FINISHED.html | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/15 - LocalStorage/index-FINISHED.html b/15 - LocalStorage/index-FINISHED.html index 2c492b1088..86b553e58e 100644 --- a/15 - LocalStorage/index-FINISHED.html +++ b/15 - LocalStorage/index-FINISHED.html @@ -45,14 +45,13 @@

LOCAL TAPAS

} function populateList(plates = [], platesList) { - platesList.innerHTML = plates.map((plate, i) => { - return ` -
  • - - -
  • - `; - }).join(''); + //once insert a node + if(platesList.childNodes[1].textContent === 'Loading Tapas...'){ + platesList.removeChild(platesList.childNodes[1]) + } + const plate = document.createElement('li') + plate.innerHTML = `` + platesList.appendChild(plate) } function toggleDone(e) { @@ -74,4 +73,3 @@

    LOCAL TAPAS

    - From 59d6cedbf2d3b40f379552437616534efaccde5b Mon Sep 17 00:00:00 2001 From: leo <13286904669@163.com> Date: Fri, 23 Dec 2016 23:18:33 +0800 Subject: [PATCH 2/4] Update index-FINISHED.html --- 15 - LocalStorage/index-FINISHED.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/15 - LocalStorage/index-FINISHED.html b/15 - LocalStorage/index-FINISHED.html index 86b553e58e..153f182b8a 100644 --- a/15 - LocalStorage/index-FINISHED.html +++ b/15 - LocalStorage/index-FINISHED.html @@ -50,7 +50,10 @@

    LOCAL TAPAS

    platesList.removeChild(platesList.childNodes[1]) } const plate = document.createElement('li') - plate.innerHTML = `` + plate.innerHTML = ` + + + ` platesList.appendChild(plate) } From 99e2d107486cd70c7976702441e3e7c8aecd6252 Mon Sep 17 00:00:00 2001 From: xrr2016 <13286904669@163.com> Date: Fri, 23 Dec 2016 23:23:46 +0800 Subject: [PATCH 3/4] :zap: --- 15 - LocalStorage/index-FINISHED.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/15 - LocalStorage/index-FINISHED.html b/15 - LocalStorage/index-FINISHED.html index 86b553e58e..8e7f1d25ba 100644 --- a/15 - LocalStorage/index-FINISHED.html +++ b/15 - LocalStorage/index-FINISHED.html @@ -50,7 +50,10 @@

    LOCAL TAPAS

    platesList.removeChild(platesList.childNodes[1]) } const plate = document.createElement('li') - plate.innerHTML = `` + plate.innerHTML = ` + + + ` platesList.appendChild(plate) } From 565435313bcbdd28668f211f0f613afa56d27ca9 Mon Sep 17 00:00:00 2001 From: xrr2016 <13286904669@163.com> Date: Fri, 23 Dec 2016 23:28:25 +0800 Subject: [PATCH 4/4] :zap: --- 15 - LocalStorage/index-FINISHED.html | 6 ------ 1 file changed, 6 deletions(-) diff --git a/15 - LocalStorage/index-FINISHED.html b/15 - LocalStorage/index-FINISHED.html index 47da36fa12..153f182b8a 100644 --- a/15 - LocalStorage/index-FINISHED.html +++ b/15 - LocalStorage/index-FINISHED.html @@ -51,15 +51,9 @@

    LOCAL TAPAS

    } const plate = document.createElement('li') plate.innerHTML = ` -<<<<<<< HEAD - - - ` -======= ` ->>>>>>> 59d6cedbf2d3b40f379552437616534efaccde5b platesList.appendChild(plate) }