mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2025-01-07 13:43:03 +03:00
4f18e21659
Part of #443
32 lines
963 B
HTML
32 lines
963 B
HTML
<html>
|
|
<head>
|
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
// Global variable, so a user can play with it via the JS console
|
|
var fm;
|
|
function play() {
|
|
console.log("Rust module not loaded yet!");
|
|
}
|
|
</script>
|
|
<script src='./index.js'></script>
|
|
|
|
<input type="button" value="Click me first to turn on audio" onclick="javascript: play();" />
|
|
(headphone users, please make sure your volume is not too loud!)
|
|
|
|
<div>
|
|
Primary frequency: <input type="range" min="30" max="80" value="50" style="width: 400px" id="primary_input"/>
|
|
</div>
|
|
|
|
<div>
|
|
Modulation frequency: <input type="range" min="0" max="3" value="0" step="0.05" style="width: 400px" id="fm_freq"/>
|
|
</div>
|
|
|
|
<div>
|
|
Modulation amount: <input type="range" min="0" max="3" value="0" step="0.05" style="width: 400px" id="fm_amount"/>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|