Skip to content
Permalink
develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<!-- Add your site or application content here -->
<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="smile-to-unlock">
<p>This text doesn't appear until you smile at the camera. See `main.js` for usage example.</p>
</div>
<script src="js/vendor/modernizr-3.5.0.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</body>
</html>