Skip to content

Commit

Permalink
Merge pull request #5 from sangpire/master
Browse files Browse the repository at this point in the history
Vibration 예제
  • Loading branch information
sangpire committed Aug 9, 2013
2 parents 25ef798 + 6b2bc22 commit 99bbf01
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Vibration/index.html
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>

13 changes: 13 additions & 0 deletions Vibration/manifest.webapp
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"
}

0 comments on commit 99bbf01

Please sign in to comment.