Giter Club home page Giter Club logo

my-note's People

Contributors

agarcia-caicedo avatar drwm-base avatar grommers00 avatar humphd avatar manekenpix avatar smilegodly avatar

Stargazers

 avatar

Watchers

 avatar  avatar

my-note's Issues

The page does not automatically save when refreshed

I have noticed your app has no auto-save feature , after typing some input.

Currently you must explicitly click "save file", but if you forgot to click "save" for some reason, you lose all the input in the notepad.

I'd like to add an "auto-save" feature if it's alright with you.

Thanks,

refactor: relocate script tag

The <script> tag is located at the beginning of <body>. It's usually recommended to have <script> tags at the end of <body> because, as explained here:

[s]cripts, historically, blocked additional resources from being downloaded more quickly. By placing them at the bottom, your style, content, and media could download more quickly giving the perception of improved performance

Fix for possible data loss bug with saving

I noticed that the code for saving always says "Saved!" even if it fails. The issue is in this async code:

        function saveFile() {
            fs.writeFile('/note', document.querySelector('#note').innerHTML);
            alertMsg("Saved!");
        }

I think the fix is to wrap this in a callback function. I'd like to work on this if it's ok?

Improve the UI

I think that the UI is difficult to use. It's hard to tell where the text box is and there is no confirmation that the file is actually saved. I won't know if it saved or not until I reload the page, at which point I will lose what I wrote if I didn't save correctly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.