mackeyguenther / slight Goto Github PK
View Code? Open in Web Editor NEWMinimal, in-browser notepad
Minimal, in-browser notepad
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.
Whenever the document is saved, body text is replaced by null in the .txt
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
Tell me what you think about that,
I can do a pull request if it's ok for you.
Buttons need to change to white when contrast mode is on.
If a user types certain characters (like <, >, &, or ") while using Slight then opens up the txt file, they will see <, >, &, or "
instead because these characters have a special meaning in HTML.
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.
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.
We may also store user's preferences, like the font/contrast he has chosen while clicking on the action buttons.
FileSaver.js and the function that saves the document as a .txt aren't working.
Just wondering about the fact that Slight has nothing like a logo to display as a favicon - I'm gonna work on this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.