Last active
March 22, 2019 08:51
-
-
Save akira1908jp/5001459 to your computer and use it in GitHub Desktop.
knob サンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="Pragma" content="no-cache" /> | |
<meta http-equiv="Cache-Control" content="no-cache" /> | |
<meta http-equiv="Expires" content="0" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script src="js/jquery.knob.js"></script> | |
<style type="text/css"> | |
div.demo { | |
text-align: center; | |
width: 114px; | |
float: left; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="demo"> | |
<p>VOLUME</p> | |
<input data-linecap="round" data-cursor="true" data-width="100" type="text" data-min="0" data-max="10" value="0" data-angleOffset="-135" data-angleArc="270" class="volume"> | |
</div> | |
<div class="demo"> | |
<p>GAIN</p> | |
<input data-linecap="round" data-cursor="true" data-width="100" type="text" data-min="0" data-max="10" value="0" data-angleOffset="-135" data-angleArc="270" class="gain"> | |
</div> | |
<div class="demo"> | |
<p>BASS</p> | |
<input data-linecap="round" data-cursor="true" data-width="100" type="text" data-min="0" data-max="10" value="0" data-angleOffset="-135" data-angleArc="270" class="bass"> | |
</div> | |
<div class="demo"> | |
<p>MIDDLE</p> | |
<input data-linecap="round" data-cursor="true" data-width="100" type="text" data-min="0" data-max="10" value="0" data-angleOffset="-135" data-angleArc="270" class="middle"> | |
</div> | |
<div class="demo"> | |
<p>TREBLE</p> | |
<input data-linecap="round" data-cursor="true" data-width="100" type="text" data-min="0" data-max="10" value="0" data-angleOffset="-135" data-angleArc="270" class="treble"> | |
</div> | |
<div class="demo"> | |
<p>PRESENSE</p> | |
<input data-linecap="round" data-cursor="true" data-width="100" type="text" data-min="0" data-max="10" value="0" data-angleOffset="-135" data-angleArc="270" class="presense"> | |
</div> | |
<script> | |
$(function() { | |
$(".volume, .gain , .bass, .middle, .treble, .presense").knob({}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment