Comments (11)
Sorry it's taken me so long to get around to this post.
I think the most important thing is to get a tabbed options page with keymap and color configuration. Speed modifiers would be easy too. Then we just need a framework for adding checkboxes for all these off-by-default features that keep popping up.
I'm planning an unobtrusive toolbar to display while the reader is open/paused for scale, wpm, and theme, along with play/pause/forward/back type controls.
from jetzt.
Font would be good.
Can you add colour-coding punctuation in.
Perhaps an option to load a custom word list "easily comprehend-able words" from a text file and a respective multiplier.
from jetzt.
So, we basically have 3 sections, right?
controls, visual and reading
I would add a 4th with something like "lab features", so that new, experimental features can be tested by power-users while not disturbing casual users.
Architectural, I would like to move some of the config and helper functions from jetzt.js to an own js-file that is shared between jetzt.js and options.js. (without having to expose them to window)
option pages are simple html pages that can be reached from the extensions menu
and there's a very nice dev guide.
I can provide a prototype, but probably someone css-gifted should beautify it then.
Google wants to provide a standard style - but that issue remained for 5 years already...
If its ok for all, I'll fix something up on a branch in my fork and provide and upstream PR when its daylight-proof. PRs to that branch are of course more than welcome.
from jetzt.
Font would be good.
yep. It's a must. Luckilly, this exists, so it should be easy. And we can look into bundling in some high-quality open fonts.
Architectural, I would like to move some of the config and helper functions from jetzt.js to an own js-file that is shared between jetzt.js and options.js. (without having to expose them to window)
That sounds good. I'd actually like to separate most of the pseudo-modules in jeztz.js into different files. The instruction generating and DOM parsing stuff can be separate from the view stuff, and the window controls can be separate too. It would make working on the codebase more pleasurable, especially as it gets bigger.
The only thing keeping this from happening is the bookmarklet, which would need to then load a bunch more files. @peteruithoven, is that much of a problem?
from jetzt.
I would add a 4th with something like "lab features", so that new, experimental features can be tested by power-users while not disturbing casual users.
That sounds good too.
from jetzt.
yes, the bookmarklet was also my concern.
But we can split up the code and have a build-step for the bookmarklet.
what do you think if we add a grunt.js-file that concats and minifies everthing needed for the bookmarklet?
would be better to use minified script anyway if you load it from remote.
from jetzt.
I think that's a splendid plan.
On 13 Mar 2014 22:22, "Johannes Hund" [email protected] wrote:
yes, the bookmarklet was also my concern.
But we can split up the code and have a build-step for the bookmarklet.
what do you think if we add a grunt.js-file that concats and minifies
everthing needed for the bookmarklet?
would be better to use minified script anyway if you load it from remote.Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-37594296
.
from jetzt.
It's no problem for the bookmarklet to load multiple files, I added general addScript and addStyle functions.
For performance in general it's better to combine files, using Grunt could be a great solution. I'm also using it in another project. When you have the grunt project file it's really easy for people to use it.
Maybe we can even generate the bookmarklet with grunt, so that it doesn't even need to externally load files... (although the fact that loading the files results in a kind of autoupdate is kind of nice right now)
from jetzt.
@peteruithoven yes, I thought to make it "solid", but that would also mean no updates. But at least we could pack everything into one minified script that the bookmarklet loads.
from jetzt.
I will send in two PRs the, to keep it a bit more apart:
- one splitting the single jetzt.js into several js-files + gruntfile to "compile" it back into a single file for the bookmarklet
- one for a prototypical options page reusing the config functions and default options, based on the PR above (probably needs some beautification then)
I'll probably have it this weekend.
from jetzt.
👍
from jetzt.
Related Issues (20)
- Scroll page while reading HOT 1
- Document where the main algorithm is implemented and how it works HOT 1
- how to install in my hard drive and modify the bookmarklet to keep my wpm values HOT 4
- Safari CSS and key binding errors HOT 6
- CSS in ds300.github.io is outdated HOT 1
- Strange dash behavior HOT 8
- Use hyphenization algorithm. HOT 5
- Mandarin/other languages feature? HOT 1
- Larger word area - feature request HOT 2
- Sin of David Sheldrick aka ds300 HOT 17
- Not working on Facebook. HOT 1
- Memory bug when trying to read a long text
- Firefox extension HOT 23
- Strip <code> & <img> tags HOT 2
- Suggestion: remove keyboard shortcut HOT 3
- Reanimate the project? HOT 2
- Feature: Set the Default Speed
- Breaks when using dark reader extension HOT 1
- Flip horizontally
- Manifest version 2 is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jetzt.