flaviusmatis / flaviusmatis/simplePagination.js
display current page
- Dominant language
- JavaScript
- Stars
- 777
- Forks
- 397
- PR merge metrics
- No merged PRs in 30d
Description
Hello, and thank you for good paginator!
I have an included footer and pagination on all blog pages:
``` javascript
$(window).load(function(){
$('#light-pagination').pagination({
pages: 15,
hrefTextPrefix: 'blog-',
hrefTextSuffix: '.php',
prevText: '<',
nextText: '>',
cssStyle: 'light-theme',
});
});
```
How to make active current page without manually change currentPage on each page?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the $('#light-pagination').pagination initialization shown in the issue and trace how the plugin selects the active page when hrefTextPrefix and hrefTextSuffix are used. Determine whether the requested current-page behavior is already configurable or needs a documented change, then verify it across the blog page links.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100