background preloader

HTML5

Facebook Twitter

How to build a web app from scratch. Safari Technology Demos - Safari Dev Center. Molecule Builder. The HTML5 test - How well does your browser support HTML5? Building a Touch-Friendly HTML5 Site | Clarity Blogs. It Looks and Acts like an App…but it’s a Website Over the past month I have been doing some experiments with html5 and JavaScript. Specifically, I wanted to see exactly how close I could come to making a website ‘feel’ like a native app. In a recent post I made a claim that “websites can take a lesson from apps”. By which I meant, that apps do a better job of delivering curated content and rich interactivity than most websites currently do.

So with that in mind I set out to create a sample website that featured some app-like functionality. Along the way I discovered some things I’d like to share: Avoiding jQuery has some perf benefits for mobile devicesAdding Touch support, and handling the default behaviors Getting around the lack of native scrolling in a fixed layout on iOS. Demo Site & Code If you’re like me and don’t have the patience to read the full post, I’ll cut to the chase. Avoiding jQuery for Better Performance Adding Touch Support [gist id=1104360] This isn’t really a new thing. Capturing Audio & Video in HTML5. Many browsers now have the ability to access video and audio input from the user. However, depending on the browser it might be a full dynamic and inline experience, or it could be delegated to another app on the user's device.

On top of that, not every device even has a camera. So how can you create an experience that uses a user generated image that works well everywhere? Start simple and progressively If you want to progressively enhance your experience, you need to start with something that works everywhere. The easiest thing to do is simply ask the user for a pre-recorded file. Ask for a URL This is the best supported but least satisfying option.

Though, if you want to manipulate the image in any way, things are a bit more complicated. File input You can also use a simple file input element, including an accept filter that indicates you only want image files. This method works on all platforms. FileInput.addEventListener('change', (e) => doSomethingWithFiles(e.target.files));</script> Tutorials.