File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 459
459
z-index : 1 ;
460
460
position : absolute ;
461
461
}
462
+
463
+ .ecosystem .pagination {
464
+ .page {
465
+ border : 1px solid #dee2e6 ;
466
+ padding : 0.5rem 0.75rem ;
467
+ }
468
+
469
+ .active .page {
470
+ background-color : #dee2e6 ;
471
+ }
472
+ }
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ $(".filter-btn").on("click", function() {
70
70
71
71
//Scroll back to top of hub cards on click of next/previous page button
72
72
73
- $ ( document ) . on ( "click" , ".page" , function ( ) {
73
+ $ ( document ) . on ( "click" , ".page" , function ( e ) {
74
+ e . preventDefault ( ) ;
74
75
$ ( 'html, body' ) . animate (
75
76
{ scrollTop : $ ( "#pagination-scroll" ) . position ( ) . top } ,
76
77
'slow'
Original file line number Diff line number Diff line change 19
19
</ div >
20
20
</ div >
21
21
22
- < div class ="main-content-wrapper ">
22
+ < div id =" pagination-scroll " class ="main-content-wrapper ">
23
23
< div class ="main-content ">
24
24
< div class ="container ">
25
25
60
60
</ div >
61
61
{% endfor %}
62
62
</ div >
63
+ < div class ="pagination d-flex justify-content-center "> </ div >
63
64
</ div >
64
65
65
66
< div class ="join-notice ">
122
123
} ) ;
123
124
</ script >
124
125
125
- < script src ="//cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js "> </ script >
126
- < script ecosystem ="true " star-count-call-date ="ecosystemStarCountCallDate " star-count-data ="ecosystemStarCountData " src ="{{ site.baseurl }}/assets/github-stars.js "> </ script >
127
126
< script src ="//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js "> </ script >
128
- < script id ="filter-script " list-id ="ecosystem-index-cards " display-count ="100 " pagination ="false " src ="{{ site.baseurl }}/assets/filter-hub-tags.js "> </ script >
127
+ < script src ="//cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js "> </ script >
128
+ < script list-id ="ecosystem-index-cards " display-count ="10 " pagination ="true " src ="{{ site.baseurl }}/assets/filter-hub-tags.js "> </ script >
129
+ < script ecosystem ="true " star-count-call-date ="ecosystemStarCountCallDate " star-count-data ="ecosystemStarCountData " src ="{{ site.baseurl }}/assets/github-stars.js "> </ script >
You can’t perform that action at this time.
0 commit comments