diff --git a/boards.php b/boards.php index f5d440d4..85559958 100644 --- a/boards.php +++ b/boards.php @@ -94,6 +94,8 @@ if ($admin) { echo $html; } else { file_write("boards.json", json_encode($boards)); + array_splice($boards, 20); + file_write("boards-top20.json", json_encode($boards)); file_write("boards.html", $html); echo 'Done'; } diff --git a/js/update_boards.js b/js/update_boards.js index 91194225..9e77fbf8 100644 --- a/js/update_boards.js +++ b/js/update_boards.js @@ -14,7 +14,7 @@ function handle_boards(data) { } -$.getJSON("/boards.json", handle_boards) +$.getJSON("/boards-top20.json", handle_boards) });