Git Product home page Git Product logo

noob's Introduction

Never Out Of Beta Audio Player

Introduction

A jQuery plugin that adds a HTML5 audio player to an MP3 and provides a list of bookmarks.

By providing a <dl /> of timecodes and links, the player will highlight them at the appropriate time. Each <dt /> becomes a link that will seek the <audio /> player appropriately.

Usage

The player expects HTML in the following format:

<div class="bookmarked-audio">
    <div class="metadata">
        <h1 class="title">Friendly and possibly verbose title</h1>
        <h2 class="timestamp">August 27, 2011</h2>
        <div class="description">
            <p>A description of the audio. Can contain as much or a little markup as required.</p>
        </div>
    </div>
    <a class="source" href="http://www.example.com/source-audio-file.mp3">Download audio.</a>

    <dl class="bookmarks">
        <h3>Bookmarks in this podcast:</h3>
        <dt>00:01</dt>
        <dd>
            <a class="link" href="http://www.google.com">Google</a>
        </dd>
        <dt>00:02</dt>
        <dd>
            <a class="link" href="http://www.bbc.co.uk">BBC</a>
        </dd>
    </dl>
</div>

Each <dt /> should be a timestamp in the format mm:ss

The corresponding <dd /> may contain any number of <p /> and <a /> elements relevant to that bookmark.

To transform the player, simply call $.noobPlayer(), for example:

$(document).ready(function() {
    $('.bookmarked-audio').each(function(index, value) {
        $(this).noobPlayer();
    });
});

Contributions

If you find any bugs or have a feature suggestion, please feel free to use the GitHub tracker. In the spirit of things, you're encouraged to fork this repository and do whatever you like with it.

Win the game by raising a pull request and having your changes accepted.

noob's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

gavd

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.