Permalink
Browse files

add zepto

  • Loading branch information...
1 parent c9bebb0 commit ee492492387fb9a652d1c799c80cef3fc2e0c836 @newdumdum committed Mar 27, 2013
View
BIN .DS_Store
Binary file not shown.
View
Binary file not shown.
View
@@ -6,20 +6,23 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
- <link rel="apple-touch-icon" sizes="72x72" href="images/ipadicon.png" />
- <link rel="apple-touch-icon" sizes="114x114" href="images/retinaicon.png" />
+ <link rel="apple-touch-icon" sizes="72x72" href="src/images/ipadicon.png" />
+ <link rel="apple-touch-icon" sizes="114x114" href="src/images/retinaicon.png" />
<title>Numb</title>
- <link rel="stylesheet" type="text/css" href="mob.css" />
+ <link rel="stylesheet" type="text/css" href="src/mob.css" />
+ <script src="src/lib/zepto.min.js"></script>
<script>
- function playSound(){
- document.querySelector("#audioCtrol").play();
- }
+ Zepto(function(){
+ $('#play').on('click', function(){
+ $("#audioCtrol")[0].play();
+ });
+ });
</script>
</head>
<body>
<div class="btnBox">
- <div id="play" onclick="playSound();">
+ <div id="play">
<div>
<span></span>
</div>
@@ -33,7 +36,7 @@
</div>
<div class="audioBox">
<audio id="audioCtrol" controls="controls" preload="auto">
- <source src="sound/numb.mp3" type="audio/mp3" />
+ <source src="src/sound/numb.mp3" type="audio/mp3" />
Your browser does not support the audio element.
</audio>
</div>
View
Binary file not shown.
File renamed without changes
File renamed without changes
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit ee49249

Please sign in to comment.