Search This Blog

Friday, January 16, 2015

HTML5 Misc




Types of Layout in HTML5

  • Fixed websites have a set width and resizing the browser or viewing it on different devices won’t affect on the way the website looks.
  • Fluid websites are built using percentages for widths. As a result, columns are relative to one another and the browser allowing it to scale up and down fluidly.

  • Adaptive websites introduce media queries to target specific device sizes, like smaller monitors, tablets, and mobile.

  • Responsive websites are built on a fluid grid and use media queries to control the design and its content as it scales down or up with the browser or device. 


Hide HTML5 video 'Controls' for Browser and iPad


<video id="video" controls src="video.mp4" poster="image.jpg" preload="auto" onplaying="this.controls=false"/></video>



HitTest on Transparent PNG Jquery plugin



This plugin allow to test dom objects collision and coordinates hitTest.The collision detection works on mobile and on desktop. It manage image and canvas transparency on rencent web browsers. The transparency is manage on canvas elements compatible web browsers.(on old web browsers, the tests are done on rectangular areas)
http://e-smartdev.com/en/#!jsPluginList/hittestJQuery

No comments:

Post a Comment