Author Archive

CSS4 Today: Address Parent Elements Using cssParentSelector.js


  
CSS makes it easy to address child and sibling elements. Parent elements cannot be addressed by the use of CSS though, at least not today. CSS4 will introduce this possibility, but do not hope to see any browser supporting that any time soon. The jQuery plugin cssParentSelector allows the use of the new CSS4 parent selector today.

Tear Down This Wall: HTML_CodeSniffer Checks Websites For Accessibility


  
Accessibility is a major societal task that is constantly gaining in importance. Websites are no exception here. Even more so, online services for some people are their sole possibility of taking part in social life. Thus accessibility is a vital precondition to allow handicapped people to claim their share of the information age. HTML_CodeSniffer is a tool to check any given website for compliance to given standards. The tool generally works as a bookmarklet and can be invoked while surfing around any given website easily.

Heyoffline.js Notifies Your Users When They Go Offline


  
The new features of HTML5 offer online and offline events that can be queried to check for an existing internet connection. Especially web apps need to be able to rely on the proper transmission of the state of the web connection to avoid losing data. The JavaScript library Heyoffline.js provides functionality to achieve just that.

New Era: Computation of Time with Moment.js


  

Calculating time values and displaying them correctly is not child's play. There are lots of different units (Year, Month, Day, Hour etc.) and - more disturbing - different systems of numeration, none of which is decimal. But you need not fall into despair. Moment.js is there to help you. The small JavaScript library comes equipped with lots of nifty features for calculating time spans, converting international time formats and also cares for the output of the results. Needless to say that Moment.js works for different languages and time zones.


HTML 5: Speed Up Your JavaScript-Animations with requestAnimationFrame


  
Thanks to CSS3 we no longer need Flash to produce good-looking animations. In general we do not even need JavaScript. But CSS3 falls short for some use cases. If you need to calculate or recalculate your animations, there's no getting round JavaScript. You do not have to use setTimeout and setInterval though. These do carry the disadvantage of simply repeating a function in defined intervals. Looking at animations, defined intervals are not the best way to make them work. If you have been using these two functions, you probably already experienced difficulties in finding the values for intervals in match with the required animation steps. Furthermore, setTimeout and setInterval rarely are in sync with the display refresh rate, which leads to the effect, that animations cannot be precisely presented. It doesn't have to be that way, though...

  •   
  • Copyright © 1996-2010 BlogmyQuery - BMQ. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress