forked from Pikaday/Pikaday
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: README.md
- Loading branch information
Showing
8 changed files
with
198 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
Pikaday - With Time Picker | ||
======== | ||
|
||
### Forked from [dbushell/Pikaday][david Pika] which only supports selecting dates | ||
### Time support added to [dbushell/Pikaday][david Pika] | ||
|
||
This fork allows the user to specify the time along with their date. Done so by adding a couple select inputs to manipulate the date Pikaday is generating. | ||
|
||
#### Additional Method: | ||
|
||
`picker.setTime(hours, minutes, seconds)` | ||
|
||
* Used to set time aspects of date. | ||
* Will not change the currently selected date. | ||
* If no date is selected, will select today. Any of the arguments may be null, and will not affect the date. | ||
|
||
|
||
## Authors | ||
|
||
* Owen Mead-Robins [http://www.owenmead.com/][owenmead] | ||
|
||
[david Pika]: https://github.com/dbushell/Pikaday "Pikaday" | ||
[owenmead]: http://owenmead.com/ "owenmead.com" | ||
[owenmead]: http://owenmead.com/ "owenmead.com" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> | ||
<title>Pikaday - Container example</title> | ||
<meta name="author" content="Stuart McFarlane"> | ||
<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 - Container example</h1> | ||
|
||
<p class="large">A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.</p> | ||
|
||
<div> | ||
<div class="flow-element"> | ||
<label for="datepicker">Date:</label> | ||
<input type="text" id="datepicker"> | ||
</div> | ||
<div class="flow-element"> | ||
<div id="container"></div> | ||
</div> | ||
</div> | ||
|
||
<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 & MIT license | Example by <a href="https://github.com/rikkert">Ramiro Rikkert</a></p> | ||
|
||
|
||
<!-- First load pikaday.js and then the jQuery plugin --> | ||
<script src="../pikaday.js"></script> | ||
<script> | ||
|
||
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], | ||
bound: true, | ||
container: document.getElementById('container'), | ||
}); | ||
|
||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> | ||
<title>Pikaday - Container example</title> | ||
<meta name="author" content="Stuart McFarlane"> | ||
<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 - Container example</h1> | ||
|
||
<p class="large">A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.</p> | ||
|
||
<div> | ||
<div class="flow-element"> | ||
<label for="datepicker">Date:</label> | ||
<input type="text" id="datepicker"> | ||
</div> | ||
<div class="flow-element"> | ||
<div id="container"></div> | ||
</div> | ||
</div> | ||
|
||
<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 & MIT license | Example by <a href="https://github.com/rikkert">Ramiro Rikkert</a></p> | ||
|
||
|
||
<!-- First load pikaday.js and then the jQuery plugin --> | ||
<script src="../pikaday.js"></script> | ||
<script> | ||
|
||
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], | ||
bound: false, | ||
container: document.getElementById('container'), | ||
}); | ||
|
||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> | ||
<title>Pikaday - weeknumbers example</title> | ||
<meta name="author" content="Maxime Thirouin"> | ||
<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 - showing weeknumbers</h1> | ||
|
||
<p class="large">A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.</p> | ||
|
||
<label for="datepicker">Date:</label> | ||
<input type="text" id="datepicker-week-numbers"> | ||
|
||
<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 & MIT license | Example by <a href="https://github.com/rikkert">Ramiro Rikkert</a></p> | ||
|
||
<script src="../pikaday.js"></script> | ||
<script> | ||
|
||
var pickerWeekNums = new Pikaday({ | ||
showWeekNumber: true, | ||
field: document.getElementById('datepicker-week-numbers'), | ||
firstDay: 1, | ||
minDate: new Date('2000-01-01'), | ||
maxDate: new Date('2020-12-31'), | ||
yearRange: [2000, 2020] | ||
}); | ||
|
||
</script> | ||
</body> | ||
</html> |
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