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
input[type=number]{border: 2px solid green} | |
input:invalid {border: 2px solid red} |
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
<form name=”dateSelection”> | |
Enter Departing Date: <input type="date" min="2012-03-12" name="departingDate" /> | |
<input type="submit" /> | |
</form> |
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
<form name="myForm"> | |
Quantity (between 1 and 5): <input type="number" name="quantity" min="1" max="5" oninput= “updateMessage(this)”/> | |
Enter Your Email: <input type="email" name="myEmail" formnovalidate /> | |
<input type="submit" /> | |
</form> |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<form id="myForm"> | |
Add your telephone: <input type="tel" name="phone" autocomplete=”on” /><br /> | |
</form> | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>...</title> | |
</head> | |
<body> | |
<header data-yuigrid=”doc2” data-wordpress=”2833893”>...</header> | |
<nav>...</nav> | |
<article data-yuigrid=”doc2” data-wordpress=”887478”>...</article> |
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
<!-- HTML5 doctype --> | |
<!doctype html> | |
<!--XHTML doctype --> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
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
<li itemscope> | |
<ul> | |
<li>Name: <span itemprop=”name”>Fred</span></li> | |
<li>Phone: <span itemprop=”telephone”>210-555-5555</span></li> | |
<li>Email: <span itemprop=”email”>[email protected]</span></li> | |
</ul> | |
</li> |
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
drawToCanvas : function(effect) { | |
var video = App.video, | |
ctx = App.ctx, | |
canvas = App.canvas, | |
i; | |
ctx.drawImage(video, 0, 0, 520,426); | |
//get the image data pixels from the canvas and pass it to js | |
App.pixels = ctx.getImageData(0,0,canvas.width,canvas.height); |
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
App.init = function() { | |
// Prep the document | |
App.video = document.querySelector('video'); | |
App.glasses = new Image(); | |
App.glasses.src = "i/glasses.png"; | |
App.canvas = document.querySelector("#output"); | |
App.ctx = this.canvas.getContext("2d"); |