TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Timesheet.js

299 pointsby mparramonabout 10 years ago

19 comments

gildasabout 10 years ago
The code is potentially vulnerable to XSS injections[1].<p>[1] <a href="https://github.com/sbstjn/timesheet.js/blob/master/source/javascripts/timesheet.js#L39-L41" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sbstjn&#x2F;timesheet.js&#x2F;blob&#x2F;master&#x2F;source&#x2F;ja...</a><p>edit: Thanks for the downvotes, lesson learned! Never talk about vulnerabilities of a code which is #1 on HN and people will blindly put in production.<p>edit 2: So here is my new comment: &quot;Awesome library! The fact that users can easily enhance its behaviour by using &lt;script&gt; tags in labels is a great feature!&quot;
评论 #9127528 未加载
评论 #9127086 未加载
评论 #9126816 未加载
评论 #9126904 未加载
评论 #9127301 未加载
synx508about 10 years ago
Quite pretty but I can&#x27;t figure out why anyone would invent their own non-ISO date format and then have to write a parser for it. Is it <i>really</i> so hard to start with the year?
评论 #9131526 未加载
flixicabout 10 years ago
After we were acquired, I designed an extensive timeline of our company history, people and apps released. It sometimes looks bad on mobile, but in general works pretty well, loading data from JSON.<p><a href="http://lemonlabs.co/timeline.html" rel="nofollow">http:&#x2F;&#x2F;lemonlabs.co&#x2F;timeline.html</a>
评论 #9127191 未加载
hmottestadabout 10 years ago
1: I made this: <a href="http://imgur.com/pPMYqAB" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;pPMYqAB</a><p>Angularjs + SVG.<p>2: And this: <a href="http://imgur.com/JfNBd2o" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;JfNBd2o</a><p>Also Angularjs + SVG.<p>My first solution is a Gantt style graph where I input tasks I need to do and estimate how long they take. Then I click start on a task, and track the time I spend on it. My job needs me to track in high detail what I work on, so I made this system after getting bored of pen and paper.<p>The second solution I made was a real Gantt diagram, I used the same knowledge I had from the pervious solution, angularjs and svg, but this time I implemented dependencies between the activities. For the first solution I implemented a very simple scheduler based on the fact that I can&#x27;t possibly be working on two things at the same time (unless I work during a meeting), but for this second solution I didn&#x27;t make a scheduler so instead I just specify a start and duration for a task.
评论 #9130158 未加载
GordyMDabout 10 years ago
I found a similar solution few weeks back which is beautiful and scrolls horizontally.<p>Believe it is vanilla JS.<p><a href="http://cheeaun.github.io/life/" rel="nofollow">http:&#x2F;&#x2F;cheeaun.github.io&#x2F;life&#x2F;</a>
评论 #9126762 未加载
评论 #9130482 未加载
hirokioabout 10 years ago
Since you seem to care about good Javascript practices given you&#x27;re linting your code, I&#x27;m going to point out that all your modules are exposed in the global scope, which isn&#x27;t the best practice. I&#x27;ll suggest using something like browserify (as opposed to require.js due to the smaller overhead) to &quot;require&quot; smaller modules within closures to expose one final Timesheet constructor.
babyabout 10 years ago
You should put the .css and .js on the frontpage (some people don&#x27;t know how to use github). Also some basics explanation on how to use it would be nice as well. I&#x27;m using right now and I just see the background no event get displayed.<p>Also Haml is cool but it makes your project hard to understand if you do not use haml (like me).<p>edit:fixed halm-&gt;haml, thx :)
评论 #9127517 未加载
wodenokotoabout 10 years ago
It&#x27;s really cool, but why are there hover over effect, and curser change when it is not clickable anywhere?
dangoldinabout 10 years ago
Pretty cool - there&#x27;s a similar library at <a href="http://timeline.knightlab.com/" rel="nofollow">http:&#x2F;&#x2F;timeline.knightlab.com&#x2F;</a> that approaches the problem in a slightly different way. Rather than having an axis per event they try to present multiple events on the same axis.
nicolaskruchtenabout 10 years ago
I once made a declarative, pure XML XSL-T system like this, no Javascript at all: <a href="http://nicolas.kruchten.com/content/2010/09/context/" rel="nofollow">http:&#x2F;&#x2F;nicolas.kruchten.com&#x2F;content&#x2F;2010&#x2F;09&#x2F;context&#x2F;</a>
评论 #9128508 未加载
jjguyabout 10 years ago
I&#x27;ve been doing a lazy search (i.e., passively watching) for a library like this with per-second resolution vs the per-month resolution in both timesheet.js and Chee Aun&#x27;s Life.<p>Anyone have a recommendation?
评论 #9128084 未加载
confiscateabout 10 years ago
Looks pretty cool man. Thanks for sharing!<p>Just curious. What are some examples of the most interesting uses you&#x27;ve seen from users? Are they mostly using it for tracking work hours during the week etc.?
encodererabout 10 years ago
Please use standard date formats. This is needlessly confusing: 2002-09&#x2F;2002
wingerlangabout 10 years ago
Neat! I did something pretty much &quot;identical&quot; some time ago but I lost interest. It had different zoom levels.<p>Prints <a href="http://imgur.com/a/eOI39" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;eOI39</a>
antimoraabout 10 years ago
<a href="http://www.simile-widgets.org/timeline/" rel="nofollow">http:&#x2F;&#x2F;www.simile-widgets.org&#x2F;timeline&#x2F;</a> (Web Widget by MIT for Visualizing Temporal Data)
onion2kabout 10 years ago
The example has text overflowing to the right, but there&#x27;s no scroll mechanism. Seems like a problem..
评论 #9131519 未加载
juntoabout 10 years ago
I was recently looking for JS gannt style project diagrams. This would have been useful at the time.
评论 #9127621 未加载
zxcvgmabout 10 years ago
i quite like the interactive timeline component [1] at vis.js. it&#x27;s zoomable, scrollable, highly customizable and even editable.<p>[1] <a href="http://visjs.org/timeline_examples.html" rel="nofollow">http:&#x2F;&#x2F;visjs.org&#x2F;timeline_examples.html</a>
firefoxNX11about 10 years ago
This indeed is very useful. Won&#x27;t the name Gantt chart or similar be more suitable?
评论 #9127006 未加载