313 karma · joined Nov 21, 2013 (13y ago) · 290 submissions
comment 12y ago · link · parent
Do you have any first hand experience going between the two?
I've been in the stores and had a play with both but of course being in the store is completely different to being a couple of months down the line and thinking hmm I could've gone smaller or I could've gone bigger.
I mainly to be honest flick between sublime text and the browser and the terminal. I auto hide the dock and that's about it.
comment 12y ago · link · parent
If all you do is put a js file in and a theme file, how do you have control over what element, the progress bar is on without having to write css to do so and how do you say which requests to monitor and which ones to not? It seems like having full control isn't quite there.
You could simply add an AJAX prefilter that has an update function within it before making AJAX calls and that wouldn't be many lines of code at all and means one less dependency.
Just my 2 cents.
Thanks for the heads up though!
comment 12y ago · link · parent
I would have to say if your element is using both of it's pseudo elements, this may not be the one for you or you may have to introduce another element to use progre(c)ss.
My main scenario would be using it on a container element which in my use cases rarely is using it's pseudo elements already but I can see how this would be an issue.
Thanks for raising this :)
comment 12y ago · link · parent
Yes, I'd be more than happy to provide a SASS version, I'll look into that, hopefully this evening as it shouldn't be too long to make one at all.
Do you feel the documentation gets across what can be done with it clear enough?
For instance, This doesn't need a js dependency but you could easily mock progress using a keyframe animation on a particular progre(c)ss etc. I am going to try and make some clearer docs and try add some feature attributes, or classes.
I just want it to be clear to people that you can add it to existing elements I think without changing design.
Thanks again for the feedback and I'll get a SASS file in as soon as I can.
comment 12y ago · link · parent
Because on the js side you are still having to call a start function and a done function and whatever else you need which is the same as being able to do this with just CSS and then just doing a one liner in js that sets the attribute or adds a class.
Also with progre(c)ss you are only needing one file and people can quite easily change the attribute without having to load in a js file.
comment 12y ago · link · parent
"A nanoscopic progress bar. Featuring realistic trickle animations to convince your users that something is happening!"
You could do the same with progre(c)ss. And do it purely with CSS. Essentially that is what I am doing with the proge(c)ss bars on the page, I am using a keyframe animation and just setting different times on it.
Something like
@keyframes progress {
0% {width: 0%;}
100% {width: 100%;}
}
Then simply assign the animation to the :after element of a current progre(c)ss and there you have it without needing js.Thanks for the heads up on nprogess, hadn't seen it before.
comment 12y ago · link · parent
Using :after means you don't even need to factor it as an element into your existing design, you just place it on top.
comment 12y ago · link · parent
I wanted to make the demo page as minimalist as possible. Maybe I will just add (using js) after step three.
But yes you can use js, something like
$('.myprogrecss').attr('data-progrecss', <PERCENT>); (if using jQuery)
Or I believe Document.getElementById('myProgrecss').setAttribute('data-progrecss', <PERCENT>);
DISCLAIMER, this code just popped out of my head so it's probably not quite correct but near abouts.EDIT: I've added that little piece to the demo page.
201.
Show HN: progre(c)ss(jh3y.github.io ↗)
60 points · by codez · 12y ago · 39 comments
comment 12y ago · link · parent
I see no one else has put in any input but I'll give you my two cents.
For me personally, when I entered the site I wasn't ultra clear on what I was going to look at and it was all quite loud.
The in thing at the moment is definitely flat design and being minimal. I think your site is quite a cool idea, with the right styling it will be much more appealing to people I think.
Hope that helps a little. I'd be more than happy to help.
Best
comment 12y ago · link · parent
I'm sure most people are probably aware of : http://try.github.io/
which is a cool little resource for learning git.
comment 12y ago · link · parent
Best way to learn? use it!
Maybe just create a dummy repo and go from there with it. Maybe use the GUI tools until you're comfortable with the command line.
For me personally, it was command line first. If you aren't sure about something with git, googling it will pretty much always throw out your answer.