Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18a3449
commit 0e28fa0
Showing
2 changed files
with
52 additions
and
6 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 |
---|---|---|
@@ -1,8 +1,54 @@ | ||
<audio controls> | ||
<source src='ihaveadream.mp3' type='audio/mpeg'/> | ||
</audio> | ||
<style> | ||
body { font-family: 'helvetica' } | ||
#intro { | ||
color: #555; | ||
margin-bottom: 20px; | ||
} | ||
.pane { | ||
width: 320px; | ||
float: left; | ||
overflow: hidden; | ||
margin-right: 20px; | ||
} | ||
.pane .wrap { | ||
position: relative; | ||
} | ||
.pane .wrap audio { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
} | ||
.notification { | ||
text-align: center; | ||
padding: 5px; | ||
} | ||
.notification::before { | ||
content: "● "; | ||
color: red; | ||
text-shadow: 0px 0px 3px rgba(255,0,0,0.5); | ||
} | ||
|
||
<video width=320></video> | ||
<div id='mlkSpeaking' style='display:none'>Mlk is Speaking</div> | ||
<div id='userSpeaking' style='display:none'>You are Speaking</div> | ||
</style> | ||
|
||
<div id='intro'> | ||
<h1>A basic demo of <a href='http://github.com/latentflip/hark'>hark.</a></h1> | ||
|
||
<h2>Either speak into your microphone, or play the audio clip</h2> | ||
Requires Chrome 27+. By <a href='http://twitter.com/philip_roberts'>@Philip_Roberts</a>. | ||
</div> | ||
|
||
<div class='pane'> | ||
<div class='wrap'> | ||
<img src='mlk.png'> | ||
<audio controls> | ||
<source src='ihaveadream.mp3' type='audio/mpeg'/> | ||
</audio> | ||
</div> | ||
<div id='mlkSpeaking' class='notification' style='display:none'>Mlk is Speaking</div> | ||
</div> | ||
|
||
<div class='pane'> | ||
<video width=320></video> | ||
<div id='userSpeaking' class='notification' style='display:none'>You are Speaking</div> | ||
</div> | ||
<script src='demo.bundle.js'></script> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.