Update builders.js

Removed some comments
This commit is contained in:
XenVoltz 2020-07-31 13:26:36 -07:00 committed by GitHub
parent 08e03dde24
commit db158c9585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,12 +23,12 @@ $(document).ready(function() {
}); });
$(function(){ $(function(){
$(".build").slice(0, 6).show(); // select the first ten $(".build").slice(0, 6).show();
$("#load").click(function(e){ // click event for load more $("#load").click(function(e){
e.preventDefault(); e.preventDefault();
$("div:hidden").slice(0, 6).show(); // select next 10 hidden divs and show them $("div:hidden").slice(0, 6).show();
if($("div:hidden").length == 0){ // check if any hidden divs still exist if($("div:hidden").length == 0){
$("#load").hide(); $("#load").hide();
} }
}); });
}); });