58 lines
1.7 KiB
HTML
58 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>tick</title>
|
|
<meta name="description" content="B and A buttons with sounds">
|
|
<meta name="author" content="Ryan Westphal">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="../css/surii.css" rel="stylesheet" type="text/css" />
|
|
<style type="text/css">
|
|
.buttonvis
|
|
{
|
|
font-family: Impact;
|
|
font-size: 48px;
|
|
font-weight: bold;
|
|
margin: 0 32px;
|
|
}
|
|
p { margin: 8px; }
|
|
</style>
|
|
</head>
|
|
<body class="skinny">
|
|
<div>
|
|
<h1>"tick" sound</h1>
|
|
</div>
|
|
<div>
|
|
<p>Push the A to make a tick sound.</p>
|
|
|
|
<a id="cmdTick" href="javascript:void(0);">tick</a>
|
|
<!--style="position: absolute; left: -16px; bottom: -16px; width: 1px; height: 1px; border: none; padding: 0; z-index: -1; line-height: 0; font-size: 0; -webkit-user-select: none;" />-->
|
|
</div>
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
|
|
<script type="text/javascript" src="../js/surii.js"></script>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#cmdTick").focus();
|
|
/*
|
|
$("[name='buttoninput']").blur(function (e) {
|
|
$(this).focus();
|
|
clearTimeout(bTimeout);
|
|
$(".b").css("color", "red");
|
|
bTimeout = setTimeout(function () {
|
|
$(".b").css("color", "black");
|
|
}, 100);
|
|
}).keydown(function (e) {
|
|
if (e.which == 13) {
|
|
clearTimeout(aTimeout);
|
|
$(".a").css("color", "green");
|
|
aTimeout = setTimeout(function () {
|
|
$(".a").css("color", "black");
|
|
}, 100);
|
|
}
|
|
|
|
}).focus();
|
|
});
|
|
*/
|
|
</script>
|
|
</body>
|
|
</html>
|