Giter VIP home page Giter VIP logo

html5-api-demos's Introduction

HTML5 API demos

HTML5 API demos is a repository where you can find information about many JavaScript and HTML5 APIs.

For every API listed in this repository you'll find a link to the specifications, an article I've written on the subject, a link to CanIUse to discover what browsers support it, and to a demo I've developed as a complement for the articles. The demos are particularly valuable because they allow you to play with the these JavaScript and HTML5 APIs.

In this repository you can learn about the following APIs, listed in alphabetic order:

API Specifications Article Support Live demo
Ambient Light API Specifications Article Support Live demo
Battery Status API Specifications Article Support Live demo
classList API Specifications Article Support Live demo
Dataset API Specifications Article Support Live demo
Device Orientation API Specifications Article Support Live demo
Geolocation API Specifications Article Support Live demo
getUserMedia API Specifications Article Support Live demo
High Resolution Time API Specifications Article Support Live demo
Navigation Timing API Specifications Article Support Live demo
Network Information API Specifications Article Live demo
Page Visibility API Specifications Article Support Live demo
Proximity API Specifications Article Support Live demo
Resource Timing API Specifications Article Support Live demo
Speech Synthesis API Specifications Article Support Live demo
Screen Orientation API Specifications Article Support Live demo
User Timing API Specifications Article Support Live demo
Vibration API Specifications Article Support Live demo
Web Notification API Specifications Article Support Live demo
Web Speech API Specifications Article Support Live demo

Note

While the repository is called "HTML5 API demos", many of these APIs aren't part of the HTML5 specifications. So, technically speaking, many of them aren't HTML5 APIs. However, at the time I started this repository, I found the name to be useful as an umbrella to group them all and to... well, attract users (you know, SEO and the like).

License

HTML5 API demos is licensed under the CC BY-NC 4.0 ("Creative Commons Attribution NonCommercial 4.0")

Author

Aurelio De Rosa (Twitter: @AurelioDeRosa)

html5-api-demos's People

Contributors

aurelioderosa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

html5-api-demos's Issues

SpeechSynthesisVoice bug

Per the latest spec, https://dvcs.w3.org/hg/speech-api/raw-file/tip/webspeechapi.html#speechsynthesisvoice, the following is expected to throw a TypeError:

utterance.voice = selectedVoice.getAttribute('data-voice-uri');

   [Constructor,
    Constructor(DOMString text)]
    interface SpeechSynthesisUtterance : EventTarget {
        attribute DOMString text;
        attribute DOMString lang;
        attribute SpeechSynthesisVoice voice;
        attribute float volume;
        attribute float rate;
        attribute float pitch;

        attribute EventHandler onstart;
        attribute EventHandler onend;
        attribute EventHandler onerror;
        attribute EventHandler onpause;
        attribute EventHandler onresume;
        attribute EventHandler onmark;
        attribute EventHandler onboundary;
    };

See how the voice attribute isn't a DOMString but: attribute SpeechSynthesisVoice voice;

To fix this you could just pass in the index of the selected <option> into the SpeechSynthesisVoiceList returned by var voicesAvailable = speechSynthesis.getVoices();

(I don't know if this site is even maintained, but thought I should document this)

Web Speech api

I have trued to run the code for voice recognition with web speech api but the results are not showing in the text area. I changed the text area to a text box and it is still the same. How can I get it to display the results in a text box?

LightSensor

How do I use the sensor on my mac.

I mean how do I use this example in a local server environment. I want a video to play when the sensor senses enough light.

Your example is the closest comprehensive example I found. But when I run it in a virtual environment it doesn't seem te work.

If you could help me out even if this is not a real issue for this git, it would be majorly appreciated.

Update the Web Notifications API demo

Chrome 38 and Opera 25 support the Web Notifications API but their implementation adheres to the WHATWG specs. This is an important change for Chrome because until version 37 it implemented the W3C specs that are also implemented by Safari 6+ and Firefox up to version 33. So, the current demo doesn't work partially in Chrome 38 and Opera 25.

Api not supported

Hi,

I'm really interested in this project, but as for the 29/03/2014, on Google Chrome 33.0.1750.152, I get an error that states:

API not supported.

There are no problems on FireFox

Doubt regarding page visibillity api

Hi,
Isn't the function of page visibillity similiar to window.onblur. The only difference I could see was that for onblur to trigger the page needs to be clicked and then it's focus must be lost but in page visibillity the page simply needs to come out of view without being active. are there any other differences ?
Thanks
Saikat

Update the getUserMedia API article and Demo

When I try to run the demo on the provided link I get some errors and warnings on the console when I click Play Demo button.

On clicking Play Demo Button:
Warning:(line no. 82 getusermedia-api-demo.html)
navigator.mozGetUserMedia has been replaced by navigator.mediaDevices.getUserMedia
Error:(line no. 89 getusermedia-api-demo.html)
TypeError: URL.createObjectURL: Argument 1 is not valid for any of the 1-argument overloads.

On clicking Stop Demo Button:
Error:(line no. 100 getusermedia-api-demo.html)
TypeError: videoStream.stop is not a function

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.