Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Vibrate Test</title>
- <style type="text/css">
- body { background:#fff; padding-top:30px; }
- input { font-size:30px; }
- </style>
- <script type="text/javascript">
- function getVolume() {
- if (window.Widget && Widget.Multimedia) {
- try {
- var v = Widget.Multimedia.getVolume();
- alert('Volume level: ' + v.toString());
- }
- catch (e) {
- alert(e.toString());
- }
- }
- }
- </script>
- </head>
- <body>
- <input type="button" value="Get Volume" onclick="getVolume();" />
- </body>
- </html>
Add Comment
Please, Sign In to add comment