mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Split code into classes to make the codebase look cleaner
Added a new favicon/icon Add more checks before uploading a paste, changed alert to use the showNotification function Added password modal for private pastes instead of using alert Fix a paste page navigation in dashboard Improve auth css
This commit is contained in:
@@ -55,13 +55,13 @@ document.addEventListener("DOMContentLoaded", async function () {
|
||||
|
||||
await loadUserPastes(userData, 0);
|
||||
currentPage = 0;
|
||||
document.getElementById("user-prev-page").onclick = async function () {
|
||||
document.getElementById("previous-button").onclick = async function () {
|
||||
if (currentPage > 0) {
|
||||
currentPage--;
|
||||
await loadUserPastes(userData, currentPage);
|
||||
}
|
||||
};
|
||||
document.getElementById("user-next-page").onclick = async function () {
|
||||
document.getElementById("next-button").onclick = async function () {
|
||||
if (!lastPage) {
|
||||
currentPage++;
|
||||
await loadUserPastes(userData, currentPage);
|
||||
|
||||
Reference in New Issue
Block a user