Skip to content

Commit 27ea7ba

Browse files
committed
fix display issue
1 parent d52ae1f commit 27ea7ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dynamicProjects.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function remainingProjects(){
103103
for (var i=1; i<all_projects.length; i++){
104104
project_to_add = all_projects[i];
105105

106-
document.getElementById("previous-projects").innerHTML += `
106+
document.getElementById("all-projects").innerHTML += `
107107
<div class="row">
108108
<div class="col s12 m6 l4">
109109
<div class="card medium">
@@ -142,7 +142,7 @@ function remainingProjects(){
142142
</div>
143143
</div>`
144144
};
145-
document.getElementById("previous-projects").style.display = "none"
145+
document.getElementById("load-more-button").style.display = "none"
146146

147147
}
148148

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ <h3 class="page-title white-text red">Recent Projects</h3>
355355

356356
<div class="container" id="latest-projects">
357357
</div>
358-
<button id="previous-projects" class="waves-effect waves-light btn red" onclick="remainingProjects()"> Load More</button>
358+
<button id="load-more-btn" class="waves-effect waves-light btn red" onclick="remainingProjects()"> Load More</button>
359359
</div>
360+
</section>
360361

361362
<!-- <div class="row">
362363
@@ -458,7 +459,6 @@ <h3 class="page-title white-text red">Recent Projects</h3>
458459
459460
</div>
460461
</div>-->
461-
</section>
462462

463463
<!-- Fifth Section: Skills -->
464464
<section id="skills" class="section scrollspy">

0 commit comments

Comments
 (0)