Skip to content

Instantly share code, notes, and snippets.

@codingwithsara codingwithsara/index.html Secret
Created Jul 14, 2018

Embed
What would you like to do?
JavaScriptストップウォッチ(スペースキー)
document.onkeydown = function(event) {
if (event) {
if (event.keyCode == 32 || event.which == 32) {
if(status == 1) {
stop();
} else if (status == 0) {
start();
}
}
}
};
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.