Facebook
From Sole Tern, 1 Week ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 38
  1. $(function() { //jquery ' de ads─▒z fonksiyon sayfa a├ž─▒l─▒nca ├žal─▒┼čan fonksiyondur
  2.     $(".emlak-cards").hide();
  3.     $(".pag-0").show();
  4.     for (var i = 1; i <= $(".emlak-cards").length/6; i++) { //uzunluk s─▒f─▒rdan ba┼člamaz
  5.         $("#pagButtons").append('<li class="page-item btnPag"><button class="page-link">' + i + '</button></li>');
  6.     }
  7. });
  8. $(document).on('click', '.btnPag', function(){
  9.     var index = $(this).index();
  10.     $(".emlak-cards").hide()
  11.     $(".pag-"+index).show();
  12. });