Skip to content

Instantly share code, notes, and snippets.

@andrefs
Last active December 21, 2015 00:39
Show Gist options
  • Save andrefs/6222182 to your computer and use it in GitHub Desktop.
Save andrefs/6222182 to your computer and use it in GitHub Desktop.
Ink.js Datepicker plugin
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://cdn.ink.sapo.pt/2.2.0/css/ink.css">
<!--script type="text/javascript" src="http://cdn.ink.sapo.pt/2.2.0/js/ink.min.js"></script-->
<!--script type="text/javascript" src="http://cdn.ink.sapo.pt/2.2.0/js/ink.datepicker.js"></script-->
<script type="text/javascript" src="http://cdn.ink.sapo.pt/2.2.0/js/ink-all.min.js"></script>
</head>
<body>
<input type="text" id="date" class="ink-datepicker">
<script>
// There are two ways to run the code...
// 1 - If you know you have the component and its dependencies already loaded, just do:
var datepicker = new Ink.UI.DatePicker( '.ink-datepicker' );
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment