incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bcur...@apache.org
Subject [1/2] spec commit: Reorganize buttons to make it easier to test.
Date Thu, 01 Mar 2012 19:44:13 GMT
Updated Branches:
  refs/heads/master 2ce446d91 -> 4c3fe61b7


Reorganize buttons to make it easier to test.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/commit/4c3fe61b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/4c3fe61b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/4c3fe61b

Branch: refs/heads/master
Commit: 4c3fe61b7c191568e57d807cde4d7d7544331a44
Parents: cb1394f
Author: Bryce Curtis <curtis.bryce@gmail.com>
Authored: Thu Mar 1 13:44:03 2012 -0600
Committer: Bryce Curtis <curtis.bryce@gmail.com>
Committed: Thu Mar 1 13:44:03 2012 -0600

----------------------------------------------------------------------
 audio/index.html |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/4c3fe61b/audio/index.html
----------------------------------------------------------------------
diff --git a/audio/index.html b/audio/index.html
index 4cf872e..acf9127 100755
--- a/audio/index.html
+++ b/audio/index.html
@@ -72,6 +72,7 @@
                     if (Media.MEDIA_STOPPED == status) {
                         clearInterval(media1Timer);
                         media1Timer = null;
+                        setAudioPosition("0 sec");
                     }
                 });
         }
@@ -262,12 +263,29 @@
         </table>
     </div>
     <h2>Action</h2>
-    <a href="javascript:" class="btn large" onclick="playAudio();">Play/Unpause Audio</a>
-    <a href="javascript:" class="btn large" onclick="pauseAudio();">Pause Playing Audio</a>
-    <a href="javascript:" class="btn large" onclick="stopAudio();">Stop Playing Audio</a>
-    <a href="javascript:" class="btn large" onclick="recordAudio();">Record Audio for
10 sec</a>
-    <a href="javascript:" class="btn large" onclick="playRecording();">Play/Unpause
Recording</a>
-      <h2>&nbsp</h2><a href="javascript:" class="backBtn" onclick="backHome();">Back</a>
+    <table>
+        <tr>
+            <th colspan=3>Play Sample Audio</th>
+        </tr>
+        <tr>
+            <td><a href="javascript:" class="btn large" style="width:100%;" onclick="playAudio();">Play</a></td>
+            <td><a href="javascript:" class="btn large" style="width:100%;" onclick="pauseAudio();">Pause</a></td>
+            <td><a href="javascript:" class="btn large" style="width:100%;" onclick="stopAudio();">Stop</a></td>
+        </tr>
+        <tr>
+            <th colspan=3><br><br>Record Audio</th>
+        </tr>
+        <tr>
+            <td colspan=3><a href="javascript:" class="btn large" onclick="recordAudio();">Record
Audio for 10 sec</a></td>
+        </tr>
+        <tr>
+            <td><a href="javascript:" class="btn large" style="width:100%;" onclick="playRecording();">Play</a></td>
+            <td><a href="javascript:" class="btn large" style="width:100%;" onclick="pauseAudio();">Pause</a></td>
+            <td><a href="javascript:" class="btn large" style="width:100%;" onclick="stopAudio();">Stop</a></td>
+        </tr>
+    </table>
+    
+    <h2>&nbsp</h2><a href="javascript:" class="backBtn" onclick="backHome();">Back</a>
     
   </body>
 </html>      


Mime
View raw message