Skip to content

Commit

Permalink
see if it works online
Browse files Browse the repository at this point in the history
  • Loading branch information
dmk14013 committed Apr 24, 2018
1 parent ba7f9e2 commit 590af43
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ body{
text-align:center;
}

p.middle{

}

#tupperware{
margin:0 auto;
width:100%;
Expand Down
13 changes: 9 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@


<div id="password" class="">
<smile-to-unlock-hider></smile-to-unlock-hider>
<smile-to-unlock api-key="1fd73c6345e449ee8f8b0febc33cf300"></smile-to-unlock>
<!-- some webcam video link -->
<h1>How 'bout a smile?</h1>
<p>Smile for the camera to enter the page</p>
<!--<h1>How 'bout a smile?</h1>
<p>Smile for the camera to enter the page</p>-->

</div>


<div id="tupperware" class="hidden">

<smile-to-unlock-hider></smile-to-unlock-hider>
<smile-to-unlock api-key="1fd73c6345e449ee8f8b0febc33cf300"></smile-to-unlock>


<div id="content" class="clearfix">
<header>
Expand Down Expand Up @@ -67,6 +68,10 @@ <h3>Add a student</h3>
// This event is sent when the user has smiled
locker.addEventListener("userSmiled", function (ev) {
console.log(ev.detail.score);
document.querySelector('#password').classList.add('hidden');
document.querySelector('#tupperware').classList.remove('hidden');



// Hide the hider so we show the content
hider.hide();
Expand Down

0 comments on commit 590af43

Please sign in to comment.