Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function() {
- var projectsGrid = new FsLibrary('.reviews-list')
- /* FILTER COMPONENT */
- // define our filter group(s)
- var myFilters = [
- {
- filterWrapper: ".filters-source",
- filterType: "multi"
- },
- {
- filterWrapper: ".filters-paper",
- filterType: "multi"
- },
- {
- filterWrapper: ".filters-stars",
- filterType: "multi"
- }
- ]
- projectsGrid.filter({
- filterArray: myFilters,
- activeClass: 'fltr-active',
- filterReset:'.filter-reset-master',
- emptyMessage: '.empty-message',
- animation: {
- enable: false,
- }
- })
- /* LOAD MORE COMPONENT */
- if(window.innerWidth <= 568){
- // mobile script
- projectsGrid.loadmore({
- button: ".load-more-button",
- resetIx: true,
- loadAll: true,
- paginate: {
- enable: true,
- itemsPerPage: 1,
- insertPagination: '.pagination-container',
- bgColor: '#FFFFFF',
- bgColorActive: '#240c2e',
- textColor: '#240c2e',
- textColorActive: '#FFFFFF',
- borderColor: 'rgba(0, 0, 0, 0.1)'
- },
- animation: {
- enable: false
- }
- })
- } else if(window.innerWidth > 568 && window.innerWidth < 991) {
- // tablet script
- projectsGrid.loadmore({
- button: ".load-more-button",
- resetIx: true,
- loadAll: true,
- paginate: {
- enable: true,
- itemsPerPage: 3,
- insertPagination: '.pagination-container',
- bgColor: '#FFFFFF',
- bgColorActive: '#240c2e',
- textColor: '#240c2e',
- textColorActive: '#FFFFFF',
- borderColor: 'rgba(0, 0, 0, 0.1)'
- },
- animation: {
- enable: false
- }
- })
- } else if(window.innerWidth >= 991) {
- // desktop script
- projectsGrid.loadmore({
- button: ".load-more-button",
- resetIx: true,
- loadAll: true,
- paginate: {
- enable: true,
- itemsPerPage: 3,
- insertPagination: '.pagination-container',
- bgColor: '#FFFFFF',
- bgColorActive: '#240c2e',
- textColor: '#240c2e',
- textColorActive: '#FFFFFF',
- borderColor: 'rgba(0, 0, 0, 0.1)'
- },
- animation: {
- enable: false
- }
- })
- }
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment