Giter Site home page Giter Site logo

Config page about jetzt HOT 11 CLOSED

ds300 avatar ds300 commented on June 12, 2024
Config page

from jetzt.

Comments (11)

ds300 avatar ds300 commented on June 12, 2024

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.

ecsplendid avatar ecsplendid commented on June 12, 2024

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.

h0ru5 avatar h0ru5 commented on June 12, 2024

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.

ds300 avatar ds300 commented on June 12, 2024

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.

ds300 avatar ds300 commented on June 12, 2024

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.

h0ru5 avatar h0ru5 commented on June 12, 2024

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.

ds300 avatar ds300 commented on June 12, 2024

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.

peteruithoven avatar peteruithoven commented on June 12, 2024

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.

h0ru5 avatar h0ru5 commented on June 12, 2024

@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.

h0ru5 avatar h0ru5 commented on June 12, 2024

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.

ds300 avatar ds300 commented on June 12, 2024

👍

from jetzt.

Related Issues (20)

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.