Giter Site home page Giter Site logo

jquery.audioslideshow's Introduction

jQuery Audio Slideshow

Simple audio slideshow that requires jPlayer http://jplayer.org/.

Demo

http://tympanus.net/codrops/2012/04/24/audio-slideshow-with-jplayer/

Getting Started

In the browser:

<script src="http://code.jquery.com/jquery.js"></script>
<script src="jquery.audioslideshow.min.js"></script>

<script>
  // By default the plugin searches for a data-retina attribute on the image
	$('#test-1 img').retina();
</script>
<div class="audio-slideshow" data-audio="audio.mp3" data-audio-duration="161">
	<div class="audio-slides">
		<img src="image.jp" data-thumbnail="thumbnail.jpg" data-slide-time="0">
		<img src="image.jp" data-thumbnail="thumbnail.jpg" data-slide-time="1">
	</div>

	<div class="audio-control-interface">
		<div class="play-pause-container"><a href="javascript:;" class="audio-play" tabindex="1">Play</a><a href="javascript:;" class="audio-pause" tabindex="1">Pause</a></div>
     <div class="time-container"><span class="play-time"></span> / <span class="total-time"></span></div>

	<div class="timeline">
		<div class="timeline-controls"></div>
		<div class="playhead"></div>
	</div>

	 	<div class="jplayer"></div>
	</div>

</div>

Syntax:

$('.audio-slideshow').audioSlideshow({
	jPlayerPath: "/lib/swf",
  suppliedFileType: "mp3",
  playSelector: ".audio-play",
	pauseSelector: ".audio-pause",
	currentTimeSelector: ".play-time",
	durationSelector: ".total-time",
	playheadSelector: ".playhead",
	timelineSelector: ".timeline"
});

Release History

  • 2012/03/25 - v1.0 - Initial release

License

Copyright (c) 2012 Tyler Craft Licensed under the MIT, GPL licenses.

jquery.audioslideshow's People

Contributors

tylercraft avatar

Watchers

 avatar  avatar

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.