-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from sangpire/master
Vibration 예제
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<title>Vibration API Example</title> | ||
</head> | ||
<body> | ||
<button id="Vibrate">Vibrate</button> | ||
<script type="text/javascript" charset="utf-8"> | ||
var vibrateButton = document.getElementById("Vibrate"); | ||
vibrateButton.addEventListener("click", function(){ | ||
console.log("Let's vibrate"); | ||
window.navigator.vibrate(1000); | ||
}); | ||
</script> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "Vibration", | ||
"description": "Vibration API test app", | ||
"launch_path": "/index.html", | ||
"icons": { | ||
"128": "nothing.png" | ||
}, | ||
"developer": { | ||
"name": "고윤지, 변상필, 정규용", | ||
"url": "" | ||
}, | ||
"default_locale": "ko" | ||
} |