Category : HTML5 Reference

'The-M-Project' is a Mobile HTML5 Application Framework.

May 8, 2011

The-M-Project is an HTML5 Javascript framework for writing cross-platform mobile apps

MultiDeviceSupport

Showcases:

Screenshot ToDo app

ToDo App

The ToDo App is a simple mobile web application to manage your ToDo's. It uses HTML5 LocalStorage to persist the todo items.

Start App

Screenshot KitchenSink app This apps shows a general overview of features of the The M-Project. Every UI Element is shown with styling and interaction options. Also some of the core features are presented.

Start App

Twitter App Screenshot

Twitter Sample

This simple twitter demo application shows how to work with M.Request and M.ListView. We basically send a request to twitter.com, depending on the user's input. This request returns the first ten tweets matching this input, that are afterwards rendered inside a list view.

Start App
Charting App Screenshot

Charting Sample

This charting sample application demonstrates how to integrate a third-party framework with The-M-Project. Our sample app uses Raphaël JS to show a pie chart. This chart is rendered inside an M.ContainerView. There are lots of other frameworks out there, that could be included in the same way. Note, that your browser needs SVG support in order to work properly with Raphaël JS.

Start App
Map App Screenshot

Map Sample

This map sample application introduces our built-in map and location features. They are built on both the Geolocation API Specification and the Google Maps JavaScript API V3.

Start App

HTML5 Reference html5 mobile, html5 Javascript framework, The-M-Project,

Baker is an HTML5 ebook framework to publish books on the iPad using open web standards

May 8, 2011

Baker is an HTML5 ebook framework to publish on the iPad using open web standards.



Project Baker HTML5 Ebook framework for iPad/iPhone Copyright (C) 2011, Davide Casali, Marco Colombo, Alessandro Morandi Licensed under BSD Opensource License.

WHAT IS BAKER

To this day, ebooks have been limited by an old standard created in the pre-Kindle and pre-iPad era. Baker is the first stepping stone to show that we could already be using the powerful HTML5 language to create books with real typography, real layouts and high-quality design.

HOW TO USE BAKER

Creating an ebook in HTML5 to be used with Baker is a three-steps operation. It's easier done than said! ;)

  1. DESIGN . Create you book as one or more HTML5 documents . Limit the width to 768px (for portrait books) or 1024px (for landscape books) . You can constrain the height to match the page size or make it scrollable if you need longer pages. . You can use ANY feature in WebKit: HTML5, CSS3, JavaScript (video, audio, fonts, jQuery, Google Maps, etc). But remember: it's a book. If you want to build an app, check PhoneGap. . Consider having 1 HTML for each chapter/section/article and use the native scrolling.

  2. PACKAGE . The book must be contained in a single "book/" folder. . Each chapter (horizontally swiped on the iPad) should be in a single HTML file inside the "book/" folder. . The HTML files are alphabetically ordered. You can for example do: 01.html, 02.html, etc. or A.html, B.html, etc. . In this case, 01.html (or A.html) is going to be used as the first page of the book, so it'll probably be your cover. . All the assets must be contained (with a relative reference) within the "book/" folder. . Subfolders are allowed for assets, but the HTML files will be read only from the root of the "book/" folder itself. . Check the example book from the website for an hands-on example.

  3. PUBLISH . Download the Baker Framework Xcode project from http://bakerframework.com or GitHub. . Create an Apple iPhone Developer account to publish on the App Store. . Download Xcode 4 from the Mac App Store or from the Apple Developer website. . Open Baker in Xcode. . Add all the files of your book from your "book/" folder to the "book/" folder inside Baker. . If you used a CSS file to limit the width during testing, remove it. . Rename the project to the name of your book: click on the "Baker" name in the leftmost column of the project navigator. . Replace the icon files (ios-icon-*.png, check the Apple Guidelines for reference). . Change the bundle identifier in the plist file to the one you are going to use for your app. . Test your book compiling it. . Follow the instructions on the Apple iPhone Developer website to submit your book to the app store.

CREATE A BOOK FOR BOTH IPAD AND IPHONE

Since Baker Framework 2.0 you can create books and magazines for the iPhone too.

To compile your application for iPhone follow these steps: . Open the Baker Framework Xcode project with Xcode. . Click on the "Baker" project in the leftmost column of the project navigator. . On the column just left, click under Projects on "Baker" . In the "Build Settings" tab locate the section Deployment for the configuration you would like to use for compiling. . Under the Deployment section change the Target Device Family entry to match the devices you would like to target (only iPhone, only iPad or iPhone/iPad). . Compile and test the application.

DOWNLOADABLE BOOKS

From inside an existing book you make with Baker you can download other books, in the HPub format.

A book in the HPub format is like the default book that's inside Baker: . All the HTML files must be at root level (not in a subfolder, otherwise you'll get an empty book). . The HTML files are alphabetically ordered. You can for example do: 01.html, 02.html, etc. . In this case, 01.html is going to be used as the first page of the book, so it'll probably be your cover. . All the assets must be contained (with a relative reference) within the root folder. . Subfolders are allowed for assets, but the HTML files will only be read from the root of the folder itself.

When it's ready: 1. Zip all the files (not the folder, remember!). 2. Change the extension of the file from ".zip" to ".hpub". 3. Upload the .hpub file on a server. 4. Link from a Baker book the book on the server, with the syntax: book://example.org/path/bookname (with or without extension, Baker will add ".hpub" by itself).

HTML5 Reference HTML5 ebook, html5 iphont ipad, Baker 2.0,

Modernizr & HTML5

April 17, 2011

What is Modernizr?

Modernizr adds classes to the <html> element which allow you to target specific browser functionality in your stylesheet. You don't actually need to write any Javascript to use it.

Have you ever wanted to do if-statements in your CSS for the availability of cool features like border-radius? Well, with Modernizr you can accomplish just that! The syntax is very intuitive, too:

.multiplebgs div p {
  /* properties for browsers that
     support multiple backgrounds */
}
.no-multiplebgs div p {
  /* optional fallback properties
     for browsers that don't */
}

Modernizr is a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies.

Modernizr uses feature detection to test the current browser against upcoming features like rgba(), border-radius, CSS Transitions and many more. These are currently being implemented across browsers and with Modernizr you can start using them right now, with an easy way to control the fallbacks for browsers that don’t yet support them.

Additionally, Modernizr creates a self-titled global JavaScript object which contains properties for each feature; if a browser supports it, the property will evaluate true and if not, it will be false.

Lastly, Modernizr also adds support for styling and printing HTML5 elements. This allows you to use more semantic, forward-looking elements such as <section>, <header> and <dialog> without having to worry about them not working in Internet Explorer.

What Modernizr doesn't do

Modernizr does not add missing functionality to browsers; instead, it detects native availability of features and offers you a way to maintain a fine level of control over your site regardless of a browser’s capabilities.

However if you're interested in that, you'll probably want to look here: HTML5 Cross browser Polyfills.

Who uses Modernizr?

Twitter, American Eagle, Burger King, The Knot, Capital One, Posterous, NFL, The State of Texas, Good Magazine, UC Santa Cruz, Made By Many, Hardboiled Web Design, Lost World’s Fairs, Clusterr, LittleIpsum, and Strategy Design & Advertising


Modernizr detects support for:

  • @font-face
  • Canvas
  • Canvas Text
  • HTML5 Audio
  • HTML5 Video
  • rgba()
  • hsla()
  • border-image:
  • border-radius:
  • box-shadow:
  • text-shadow:
  • opacity:
  • Multiple backgrounds
  • Flexible Box Model
  • CSS Animations
  • CSS Columns
  • CSS Gradients
  • CSS Reflections
  • CSS 2D Transforms
  • CSS 3D Transforms
  • CSS Transitions
  • Geolocation API
  • localStorage
  • sessionStorage
  • SVG
  • SMIL
  • SVG Clipping
  • Inline SVG
  • Drag and Drop
  • hashchange
  • X-window Messaging
  • History Management
  • applicationCache
  • Touch events
  • Web Sockets
  • Web Workers
  • Web SQL Database
  • WebGL
  • IndexedDB
  • Input Types
  • Input Attributes

A green checkmark behind a feature indicates your current browser supports this.

Modernizr also enables you to use more semantic elements from the HTML5 spec, even in Internet Explorer. See the documentation for details.

  • Version: 1.7
  • Compressed size: 3.7 kb gzipped

Download 41kb uncompressed version

... or create a custom Modernizr build

HTML5 Reference Modernizr,

jQuery Visual Cheat Sheet

April 10, 2011

jQuery Visual Cheat Sheet is an useful and practical reference to jQuery 1.3 for web designers and developers designed by me. This cheat sheet (6 pages) contains the full jQuery API reference with detailed descriptions and some sample code. The simple visual style I used to design this sheet allows you to find at a glance everything you are looking for. Here's a preview:



Download
You can download the full version for free at the following link.
jQuery 1.5 Visual Cheat Sheet

jQuery 1.6 Visual Cheat Sheet


Screen shoots
Here is a preview of this visual cheat sheet (click on each picture to enlarge):













By woork

HTML5 Reference CheatSheet,

HTML 5 Visual Cheat Sheet

April 10, 2011


HTML 5 Visual Cheat Sheet is an useful cheat sheet for web designers and developers designed by me. This cheat sheet is essentially a simple visual grid with a list of all HTML tags and of their related attributes supported by HTML versions 4.01 and/or 5. The simple visual style I used to design this sheet allows you to find at a glance everything you are looking for.
Here's a preview of my cheat sheet:



This is an example of listed tags and attributes:





HTML 5 Cheat Sheet is available in high quality for A3 paper format.

Download Cheat Sheet
Download Cheat Sheet (PDF)



HTML5 Reference CheatSheet, html 5 visual cheat sheet by woork,