You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

notes_app.js 671B

123456789101112131415161718192021222324252627282930313233343536373839
  1. $(document).ready(function(){
  2. $("#addNoteDiv").on('click', function() {
  3. $("#noteFormDiv").toggle()
  4. })
  5. $("#saveNoteButton").click(getNoteObject);
  6. })
  7. const noteFolder = "C:\\Users\\wuest\\Desktop\\Studium\\Master\\MDT5\\Hofmann\\Praktikum\\WebApp\\notes\\";
  8. function saveNoteObject(){
  9. let noteTitle = document.getElementById('inputTitle').value;
  10. let noteText = document.getElementById('noteText').value;
  11. let noteObj = {
  12. title: noteTitle,
  13. text: noteText
  14. };
  15. let noteObj_serialized = JSON.stringify(noteObj);
  16. localStorage.setItem("noteObj", noteObj_serialized);
  17. }
  18. function getNoteObject(){
  19. }