mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 11:27:04 +03:00
Compare commits
No commits in common. "b3b4f7219362292d433bc5110e8a023e0d99c0bb" and "dff6808e94ab5a4b5370f154b1b12a1449c966cc" have entirely different histories.
b3b4f72193
...
dff6808e94
@ -3,9 +3,10 @@ const addLinkBtn = document.getElementById('addLinkBtn');
|
|||||||
const newLinksContainer = document.getElementById('newLinksContainer');
|
const newLinksContainer = document.getElementById('newLinksContainer');
|
||||||
const watchedLinksContainer = document.getElementById('watchedLinksContainer');
|
const watchedLinksContainer = document.getElementById('watchedLinksContainer');
|
||||||
|
|
||||||
|
const PER_PAGE = 8;
|
||||||
|
let currentPage = 1;
|
||||||
|
|
||||||
function loadLinks() {
|
function loadLinks() {
|
||||||
const PER_PAGE = 8;
|
|
||||||
let currentPage = 1;
|
|
||||||
fetch(`/api/links/?page=${currentPage}&per_page=${PER_PAGE}`)
|
fetch(`/api/links/?page=${currentPage}&per_page=${PER_PAGE}`)
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user