Skip to content

markusfisch/WebPie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebPie

WebPie is a pie menu for web pages. Its appearance is very similar to PieDock.

How to use

Place both files somewhere in your web project and add those two lines to the <head/> element of your web page:

<script type="text/javascript"
	src="path/to/WebPieIcon.js"></script>
<script type="text/javascript"
	src="path/to/WebPie.js"></script>

Next you'll have to set up the menu, for example:

<script type="text/javascript">

var wp = new WebPie( {
	icons: [
		new WebPieIcon(
			"path/to/icon.png",
			function(){ alert( "First" ); } ),
		new WebPieIcon(
			"path/to/icon.png",
			function(){ alert( "Second" ); } ),
		new WebPieIcon(
			"path/to/icon.png",
			function(){ alert( "Third" ); } )
		] } );

wp.create();

</script>

About

WebPie is a dynamic pie menu for web pages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published