mirror of
https://github.com/TotalFreedomMC/Website.git
synced 2024-12-22 08:15:14 +00:00
Update builders.js
Removed some comments
This commit is contained in:
parent
08e03dde24
commit
db158c9585
1 changed files with 5 additions and 5 deletions
|
@ -23,12 +23,12 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
$(function(){
|
||||
$(".build").slice(0, 6).show(); // select the first ten
|
||||
$("#load").click(function(e){ // click event for load more
|
||||
$(".build").slice(0, 6).show();
|
||||
$("#load").click(function(e){
|
||||
e.preventDefault();
|
||||
$("div:hidden").slice(0, 6).show(); // select next 10 hidden divs and show them
|
||||
if($("div:hidden").length == 0){ // check if any hidden divs still exist
|
||||
$("div:hidden").slice(0, 6).show();
|
||||
if($("div:hidden").length == 0){
|
||||
$("#load").hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue