Simple take note app

Taking note is so easy. This is the first app that I created in open source course. 
Here is the Demo.
1) filer.js to save data and read data to screen.
Add filer.js script:
<script src="https://unpkg.com/filer/dist/filer.min.js"></script>
readFile()
fs.readFile("/note", "utf8", function(err, data) {
        if (err) {
          throw err;
        } else {
          if (data) {
            document.querySelector("#note").innerHTML = data;
          } else {
            document.querySelector("#note").innerHTML =
              "Welcome to my notepad!";
          }
        }
      });
fs.writeFile("/note", document.querySelector("#note").innerHTML, function(
        err
      ) {
        if (err) throw err;
        else alert("data saved!");
      });
2) Use Google Fonts:
  <link
      href="https://fonts.googleapis.com/css?family=Modak&display=swap"
      rel="stylesheet"
    />
3) Use Hotkeys.js to create key to save:
<script src="https://unpkg.com/hotkeys-js/dist/hotkeys.min.js"></script>
4) Use PaperCSS for style:
 <link
      rel="stylesheet"
      href="https://unpkg.com/papercss@1.6.1/dist/paper.min.css"
    />
Previous: Forking hexo-theme-matery
 
 
Comments
Post a Comment