Skip to content

Instantly share code, notes, and snippets.

@carlopires
Created October 24, 2013 12:11
Show Gist options
  • Save carlopires/7136108 to your computer and use it in GitHub Desktop.
Save carlopires/7136108 to your computer and use it in GitHub Desktop.
Webshims test for email, date and number (take 1)
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>HTML5 date test</title>
<meta name="description" content="HTML5 date test with Bootstrap 3 and webshims">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://afarkas.github.io/webshim/demos/js-webshim/minified/extras/modernizr-custom.js"></script>
<script src="http://afarkas.github.io/webshim/demos/js-webshim/minified/polyfiller.js"></script>
</head>
<body>
<script>
$.webshims.polyfill();
</script>
<div class="container">
<h1>Webshims test for email, date and number</h1>
<p>Bootstrap loaded after DOM ready (script defer)</p>
<br>
<section>
<form role="form">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
</div>
<div class="form-group">
<label for="exampleInputAge">Age</label>
<input type="number" class="form-control" id="exampleInputAge" placeholder="Age">
</div>
<div class="form-group">
<label for="exampleInputBirthday">Birthday</label>
<input type="date" class="form-control" id="exampleInputBirthday" placeholder="Birthday">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</section>
</div>
<script defer src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<!--[if lt IE 7 ]>
<script defer src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
</body>
</html>
@carlopires
Copy link
Author

This renders wrong. A screenshot is at: http://imgur.com/NybpYT6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment