UNPKG

cordova-plugin-nativeaudio

Version:

Cordova/PhoneGap Plugin for low latency Native Audio Playback, must have for HTML5 games

43 lines (39 loc) 2.18 kB
<!DOCTYPE html> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <html> <head> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 --> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, target-densitydpi=device-dpi" /> <link rel="stylesheet" type="text/css" href="index.css" /> <meta name="msapplication-tap-highlight" content="no" /> <title>DRUM MACHINE</title> </head> <body> <div class="drum" id="bass" ontouchstart="app.play('bass');" ontouchend="app.touchEnd(event);"><span>Bass</span></div> <div class="drum" id="highhat" ontouchstart="app.play('highhat');" ontouchend="app.touchEnd(event);"><span>Hihat</span></div> <div class="drum" id="snare" ontouchstart="app.play('snare');" ontouchend="app.touchEnd(event);"><span>Snare</span></div> <div class="drum" id="bongo" ontouchstart="app.play('bongo');" ontouchend="app.touchEnd(event);"><span>Bongo</span></div> <script type="text/javascript" src="cordova.js"></script> <script type="text/javascript" src="index.js"></script> <script type="text/javascript"> app.initialize(); </script> </body> </html>