I'm Jhey.
For enquiries, reach out @ [email protected] or over on Twitter.
enhance your HTML5 progress bars with minimal effort!
Home Page: http://jh3y.github.io/ep
License: Other
I'm Jhey.
For enquiries, reach out @ [email protected] or over on Twitter.
If I set a value on either the spread
style bar or standard
style bar in the demo by first deleting the input value and then changing it, the value in the code sample won't update again
No matter what I do with the input, the code sample should update if I input a valid number
Delete the input value then input some valid value
There are currently no tests in place for the optional JS helper.
It would be ideal to have tests in place that ensure attributes/classes are applied/removed when necessary using particular methods. Also, the ability to test that callbacks are being properly applied.
webpack
.mocha
and chai
along with js-dom
for testing.When the bar is fixed-bottom
in the demo, it disappears.
Should see it fixed to the bottom of the page.
Any.
Check the demo, and change the positional demo to fixed-bottom
.
Instead of setting to bottom: 0
, the bar position should be set to bottom: 6px
or whatever the height of the bar is.
It seems that a very small js helper could be added as an optional extra for mocking progress meters.
Something as simple as being able to provide (where progrecss is a variable instance of a progrecss);
progrecss.start();
And
progrecss.stop();
Can't see this being particularly hard to be honest.
src
folder structure is not intuitive. For example; style source living within src/script/entries
. Instead, have things like script
, style
under relative entries.
Will require paths across src
file imports and webpack
config updates.
In the title of the demo page, there's no r
, like there should be in progre(c)ss
, so it says proge(c)ss
. A quick look at the heading on the page tells me that there is an r
in it.
When changing the value in the demo for a mock
, staggered-mock
or timer
by deleting the value and then entering a new value, the entire code block becomes mangled.
Value in code should updated to number value in input if necessary.
Delete value in a number input, then input a number on demo.
Could you add a method that stop a timer at certain percentage? It might be helpful when someone will be creating an online test/survey —for example— and want the users to hurry up, then, as soon as they press a button, the timer will stop. Or maybe, like my case, if someone wants to show how much of something remains for the next step and timer is just perfect.
In IE, some of the progress bars are two toned as if the foreground doesn't match the background
Bars are colored properly?
IE
I'm not 100% sure without having a look around but I am pretty sure you can write a prefilter for AJAX requests which means you can make a custom update progress function be run everytime an AJAX request is made.
Thomas Davis does something similar in backbone for cross domain requests in one of his examples.
I'll look into it unless anyone has an idea of it.
Having to go into the ep folder after downloading it, and manually npm installing, and running make dist
is a pain in the ass...
Not to mention, building needs additional configuration, as the Class EP element can't be converted to javascript properly out of the box (not using webpack, just bower / npm / node).
I had to make another .babelrc file with the following contents:
{
"presets": ["es2015"]
}
in order to get make dist-script
to work.
So please, for the love of god, for those who aren't using your exact development environment, or don't have any knowledge of debugging this kind of thing... please either include dist files of the latest build, or at the very least also include a .babelrc
file so that make
works without a webpack compiler.
If I'm viewing the demo on desktop with the window at a small height. The intro and description for ep
get cut.
I should be able to scroll and see the rest of the content.
Any.
View the demo and resize the window to be a small height on desktop.
On the demo, if I change the duration to <4
, then the simulation doesn't show.
I should see the simulation with the new animation duration specified from the input.
Lower the value specified for duration in the demo.
Simply add a sass file for those using sass and not less.
From feedback on HN it seems that the ability to be able to mock progre(c)ss easily out of the box would be appreciated.
This can be easily done with keyframes
but I'd like to be able to do it with simply doing something like
<div class="progrecss" data-progrecss="0" data-progrecss-mocking="32"></div>
This would create a progrecss bar that completes it's journey in 32 seconds from render.
This shouldn't be too much effort but I think a maximum of say 120 seconds should be put in unless people want to add their own after that's fine.
Could also add a class like staggered
which would stagger the progrecss til completion time.
2.0.3
doesn't match package version 2.0.4
, update to 2.0.5
yarn
I love the idea, thanks for writing it ;)
I'm just curious - I didn't see on the website anywhere - What browsers does this require/work with?
I'm surprised that the standard <progress>
element isn't mentioned in your README.
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.