Giter VIP home page Giter VIP logo

slight's People

Contributors

mariogarridopt avatar recked avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

slight's Issues

Export the default page

If you clear all the cookies and sections and stuff. You get the default page.
If you try to click on the download button it will generate the text:

null
null

Since the cowries user will try to click on everything first he will not understand why it gets null null.
I will fix that in arder to convert the default text instead of null null.
28f14a9fb67d00b0f9cdb4bee330d15b

Semantic

Hi guys,
What about doing something more semantic ?

For example

<button class="download" id="download"></button>
<button class="font" id="font"></button>
<button class="contrast" id="contrast"></button>

this isn't very semantic and understandable if the project grows.

Base on BEM syntax, we should do

<button class="js-action-button js-download-code"></button>
<button class="js-action-button js-toggle-font"></button>
<button class="js-action-button js-toggle-contrast"></button>

It will be

  • easier to update
  • easier to understand what any button do
  • more semantic (obviously)
  • more performant (IDs are evil)

Tell me what you think about that,
I can do a pull request if it's ok for you.

Named character references

If a user types certain characters (like <, >, &, or ") while using Slight then opens up the txt file, they will see &lt;, &gt;, &amp;, or &quot; instead because these characters have a special meaning in HTML.

Named character references

Div insert

Whenever a new line is inserted (enter key press) in the body text, and then saved, the contents of the line (and any additional lines after it) are saved in div wrappers.

Here's an example, tested in Safari 8.0:
Screencast

Remove the possibility to get empty fields

At the moment its possible to delete all the text from body and head and if you go away from the webpage it turns hard of click on the right think because its hard to see when the boxes start and end.

I propose that we should treat that problem as we have treated the null. When you abandone the page with the text blank we should fill the text with the default info.

Just the same comportment as when you type null in the title and refresh.
bec5fdd1490deff5fd10e4eaf55efb0b

Slight executes arbitrary scripts upon load from storage

I found a potential security problem. If you put this into the editor asdf<script>alert('hello');</script> blah, then close the page and then open it again, you can see the alert pop-up. I don't know if this is important since it is just being stored locally and it can't be transmitted to other people.

Store user's preferences

We may also store user's preferences, like the font/contrast he has chosen while clicking on the action buttons.

Slight visual identity

Just wondering about the fact that Slight has nothing like a logo to display as a favicon - I'm gonna work on this.

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.