Testing usage function

This commit is contained in:
Tracker-Friendly 2024-02-14 18:03:31 +00:00
parent 708081b72b
commit db540c4792
1 changed files with 14 additions and 0 deletions

View File

@ -573,6 +573,18 @@ function exportNotes() {
}) })
} }
function isFirstTimeVisitor() {
if (document.cookie.indexOf("visited=true") !== -1) {
return false;
} else {
var expirationDate = new Date();
expirationDate.setFullYear(expirationDate.getFullYear() + 1);
document.cookie = "visited=true; expires=" + expirationDate.toUTCStrin>
return true;
}
}
exportNotesButton.addEventListener("click", (event) => { exportNotesButton.addEventListener("click", (event) => {
exportNotesButton.innerText = "Downloading..." exportNotesButton.innerText = "Downloading..."
exportNotes() exportNotes()
@ -601,3 +613,5 @@ removeBox.addEventListener("click", (event) => {
}) })
} }
}); });
displayError("To use PageBurger:\nSwipe Right on a note to open it\nSwipe left in the text boxes to return to notes\nClick on a note to highlight it")