how open wheelnav on button click , close if same button clicked again? used piemenu.removewheel() second case use wheel not appear
here code:
<script> var i=0; var piemenu = new wheelnav('piemenu'); piemenu.spreaderintitle = icon.plus; piemenu.spreaderouttitle = icon.cross; piemenu.spreaderradius = piemenu.wheelradius * 0.13; piemenu.clockwise = false; piemenu.sliceinitpathfunction = piemenu.slicepathfunction; piemenu.initpercent = 0.1; piemenu.wheelradius = piemenu.wheelradius * 0.83; piemenu.navitemscontinuous = true; piemenu.sliceangle = 36; function make(){ if(i==0){ i=1; piemenu.createwheel(); piemenu.settooltips(['help','friend request','create','privacy','settings','signout','download']); }else { i=0; piemenu.removewheel(); } </script>
i believe question wheel doesn't appear when clicked again. wheel reappear after clicking button if code modified below.
else { i=0; piemenu.removewheel(); }
Comments
Post a Comment