Sha256: ef9fa6d3ce9fac368ed0cd3218d5685ca72699dfb0d396aa9b34531e26d5c17f

Contents?: true

Size: 1.87 KB

Versions: 9

Compression:

Stored size: 1.87 KB

Contents

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
    <title>Pikaday - AMD example</title>
    <meta name="author" content="Ramiro Rikkert">
    <link rel="stylesheet" href="../css/pikaday.css">
    <link rel="stylesheet" href="../css/site.css">
</head>
<body>
    <a href="https://github.com/dbushell/Pikaday"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>

    <h1>Pikaday - AMD example</h1>

    <p class="large">A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.</p>

    <label for="datepicker">Date:</label>
    <br>
    <input type="text" id="datepicker">

    <h2>What is this?</h2>

    <p>Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the <a href="https://github.com/dbushell/Pikaday/issues">GitHub issue tracker</a>, thanks!</p>

    <p class="small">Copyright © 2014 <a href="http://dbushell.com/">David Bushell</a> | BSD &amp; MIT license | Example by <a href="https://github.com/rikkert">Ramiro Rikkert</a></p>

    <script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.js"></script>
    <script>

    require.config({
        baseUrl: '../',
        // To get timely, correct error triggers in IE, force a define/shim exports check.
        enforceDefine: true
    });
    require(['pikaday'], function(Pikaday)
    {
        var picker = new Pikaday(
        {
            field: document.getElementById('datepicker'),
            firstDay: 1,
            minDate: new Date('2000-01-01'),
            maxDate: new Date('2020-12-31'),
            yearRange: [2000,2020]
        });
    });

    </script>
</body>
</html>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kea-rails-2.0.0.pre.alpha14 vendor/assets/components/pikaday/examples/amd.html
kea-rails-2.0.0.pre.alpha13 vendor/assets/components/pikaday/examples/amd.html
kea-rails-2.0.0.pre.alpha12 vendor/assets/components/pikaday/examples/amd.html
kea-rails-2.0.0.pre.alpha11 vendor/assets/components/pikaday/examples/amd.html
kea-rails-2.0.0.pre.alpha10 vendor/assets/components/pikaday/examples/amd.html
kea-rails-2.0.0.pre.alpha9 vendor/assets/components/pikaday/examples/amd.html
kea-rails-2.0.0.pre.alpha8 vendor/assets/components/pikaday/examples/amd.html
kea-rails-2.0.0.pre.alpha7 vendor/assets/components/pikaday/examples/amd.html
kea-rails-2.0.0.pre.alpha6 vendor/assets/components/pikaday/examples/amd.html