Skip to content

Commit

Permalink
done?
Browse files Browse the repository at this point in the history
  • Loading branch information
dmk14013 committed Apr 25, 2018
1 parent 92188b4 commit 0dbf1c4
Showing 1 changed file with 23 additions and 27 deletions.
50 changes: 23 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,28 @@
<smile-to-unlock api-key="cccbaa84b9b4408cb88b235d70d7ee0a"></smile-to-unlock>
</div>-->
<div id="hide-after-smile" class="contentarea">
<h1>
Smile for me!
</h1>
<p>
This example will show your webcam stream. When you're ready, click "I'm smiling!"
</p>

<h2>For developers:</h2>
<p>Once the service detects a smile, it will fire a browser event that you can listen for, called <code>userHappy</code>. You can listen for that event to do anything you want.</p>
<div class="camera">
<video id="video">Video stream not available.</video>
<button id="startbutton">I'm Smiling!</button>
</div>
<canvas hidden id="canvas">

</canvas>
<div class="output">
<img hidden id="photo" alt="The screen capture will appear in this box.">
</div>

</div>


<div id="smile-to-unlock" class="hidden">
Expand All @@ -57,32 +79,7 @@ <h3>Add a student</h3>
</div>


<div id="hide-after-smile" class="contentarea">
<h1>
Smile for me!
</h1>
<p>
This example will show your webcam stream. When you're ready, click "I'm smiling!"
</p>

<h2>For developers:</h2>
<p>Once the service detects a smile, it will fire a browser event that you can listen for, called <code>userHappy</code>. You can listen for that event to do anything you want.</p>
<div class="camera">
<video id="video">Video stream not available.</video>
<button id="startbutton">I'm Smiling!</button>
</div>
<canvas hidden id="canvas">

</canvas>
<div class="output">
<img hidden id="photo" alt="The screen capture will appear in this box.">
</div>

</div>

<div class="hidden" id="">
<p>This text doesn't appear until you smile at the camera. See `main.js` for usage example.</p>
</div>




Expand Down Expand Up @@ -119,7 +116,6 @@ <h2>For developers:</h2>

<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.12.0.min.js"><\/script>')</script>
<script src="js/script.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>

Expand Down

0 comments on commit 0dbf1c4

Please sign in to comment.