Skip to content

selamanse/playits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Play-its HTML Soundboard

PlayIts


Play-its is a custom jQuery-ui widget that enables you to build your own web-based soundboard. Your favourite tracks at your fingertips!

Check out a demo at https://selamanse.github.io/playits

Features

Play-its can be configured with ogg and m4a soundfiles which allows for support for different browsers.

Usage

Import Play-its and its dependencies in your html file.

<head>
	...
	<link rel="stylesheet" href="vendor/jquery-ui.css" />
	<script type="text/javascript" src="vendor/jquery.js"></script>
	<script type="text/javascript" src="vendor/jquery-ui.js"></script>
	<script type="text/javascript" src="vendor/jquery-rotate.js"></script>
	
	<script type="text/javascript" src="js/jquery-playit.js"></script>
	...
</head>

To add a sound you need to create a new jQuery element, call the playit function and supply the desired values of the sound to play.

$("<div>").playit({
	sourcemp4: "sounds/applause.m4a", 
	sourceogg: "sounds/applause.ogg", 
	description: "A group of people applauding."	
});

Please see: index.html and js/script.js for a full example.

Credits

The showcase soundboard uses images from Sketchy-Icons Collection by AzureSol

About

playing sounds via html5

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published