Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Undocumented Feature #690

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a56c11f
Update README.md
AuspeXeu Sep 8, 2017
f1741a7
Update README.md
AuspeXeu Sep 8, 2017
9bab22e
Update README.md
AuspeXeu Oct 12, 2017
367c11f
Update README.md
AuspeXeu Oct 12, 2017
2412396
Update README.md
AuspeXeu Oct 12, 2017
9bd111c
Update README.md
AuspeXeu Oct 12, 2017
cd5dbb6
Set theme jekyll-theme-cayman
AuspeXeu Oct 14, 2017
b92153d
Create test.txt
AuspeXeu Oct 14, 2017
038ad57
Delete test.txt
AuspeXeu Oct 14, 2017
4df4b9a
Add test
Oct 14, 2017
f00c818
Delete test.txt
AuspeXeu Oct 15, 2017
abfb950
Create index.html
AuspeXeu Oct 15, 2017
4eaf446
Delete _config.yml
AuspeXeu Oct 15, 2017
eea2a6a
Update index.html
AuspeXeu Oct 15, 2017
4424dfd
Update index.html
AuspeXeu Oct 15, 2017
445ba80
Removed sample folders
Oct 15, 2017
565bf05
Initital version of github page
Oct 15, 2017
0932cd5
Update index.html
AuspeXeu Oct 30, 2017
9e21d89
Fix for https://github.com/smalot/bootstrap-datetimepicker/issues/617…
jgutix Nov 15, 2017
33e65e3
Just like short months, full monthnames have to be case insensitive
mdeweerd Dec 2, 2017
1915832
Built new version
Dec 3, 2017
8b6db22
Bump version
Dec 3, 2017
5832683
Add clear translation
rhiroshi Feb 20, 2018
9aaa105
fix undefined date variable in example
ritaraina May 30, 2018
fc9ab76
add cases to renderHours and renderMinutes to fix #27
Jun 18, 2018
29a39f4
Update README.md
AuspeXeu Jun 20, 2018
a71e23b
Removed support for glypicons and bootstrap v2
Jun 20, 2018
3a8c96d
Fix test for formats
Jun 20, 2018
8485340
Fixed tests
Jun 20, 2018
d06aac4
Update README.md
AuspeXeu Jun 20, 2018
522bcf6
Minified new version
Jun 20, 2018
a879540
Minor fix + minified
Jun 20, 2018
669dcdd
Updated gitignore
Jun 20, 2018
63e3df3
Update README.md
AuspeXeu Jun 20, 2018
f7ffb6f
Minor change
Jun 20, 2018
2a33643
Update README.md
AuspeXeu Jun 21, 2018
2f286b4
Update README.md
AuspeXeu Jun 21, 2018
fc302ea
Update README.md
AuspeXeu Jun 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
.DS_Store
.idea
*.iml
atlassian-ide-plugin.xml
Expand Down
50 changes: 32 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# Project : bootstrap-datetimepicker
======================================
# Deprecated
This repository has been deprecated in favour of [this](https://eonasdan.github.io/bootstrap-datetimepicker/).

[![Build Status](https://travis-ci.org/smalot/bootstrap-datetimepicker.svg?branch=master)](https://travis-ci.org/smalot/bootstrap-datetimepicker)
# bootstrap-datetimepicker [![Build Status](https://travis-ci.org/AuspeXeu/bootstrap-datetimepicker.svg?branch=master)](https://travis-ci.org/AuspeXeu/bootstrap-datetimepicker)

[Homepage](http://www.malot.fr/bootstrap-datetimepicker/)

[Demo page](http://www.malot.fr/bootstrap-datetimepicker/demo.php)

# Project forked
# Dependencies

This component has now switched to *only* support solid [FontAwesome](https://fontawesome.com/) icons. Therefore the following dependencies must be included for more instructions on how to include these in your project please visit their [website](https://fontawesome.com/get-started).

```
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/solid.css" integrity="sha384-Rw5qeepMFvJVEZdSo1nDQD5B6wX0m7c5Z/pLNvjkB14W6Yki1hKbSEQaX9ffUbWe" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/fontawesome.css" integrity="sha384-GVa9GOgVQgOk+TNYXu7S/InPTfSDTtBalSgkgqQ7sCik56N9ztlkoTr2f/T44oKV" crossorigin="anonymous">
```

This project is a fork of [bootstrap-datepicker project](https://github.com/eternicode/bootstrap-datepicker).
# Contribute

Before creating an issue/pull request, please for [this](https://jsfiddle.net/AuspeXeu/sqwwcjzu/) jsFiddle and create a working example of your problem.

# Home

Expand Down Expand Up @@ -85,10 +93,12 @@ $('#datetimepicker').datetimepicker();

As component:

The class `dtp-trigger` is used to mark the element that shows the picker.

```html
<div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy">
<input size="16" type="text" value="12-02-2012" readonly>
<span class="add-on"><i class="icon-th"></i></span>
<span class="add-on"><i class="icon-th dtp-trigger"></i></span>
</div>
```
```javascript
Expand Down Expand Up @@ -367,7 +377,7 @@ This event is fired when a hour is rendered inside the datepicker. Should return
```javascript
$('#date')
.datetimepicker({
onRenderHour: function(hour) {
onRenderHour: function(date) {
//Disable any time between 12:00 and 13:59
if (date.getUTCHours() === 12 || date.getUTCHours() === 13)
return ['disabled'];
Expand All @@ -390,33 +400,33 @@ $('#date')
});
```

### fontAwesome

Boolean. Default: false

If true, [Font Awesome](http://fontawesome.io/) will be used.

## Markup

Format as component.

```html
<div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy">
<input class="span2" size="16" type="text" value="12-02-2012">
<span class="add-on"><i class="icon-th"></i></span>
<span class="add-on"><i class="icon-th dtp-trigger"></i></span>
</div>
```

Format as component with reset button to clear the input field.

```html
<div class="input-append date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy">
<input class="span2" size="16" type="text" value="12-02-2012">
<span class="add-on"><i class="icon-remove"></i></span>
<span class="add-on"><i class="icon-th"></i></span>
<div class="input-group date" id="datetimepicker" data-date="12-02-2012" data-date-format="dd-mm-yyyy">
<input type="text" class="form-control" type="text" size="16/>
<span class="input-group-addon"><i class="fas fa-times dtp-close"></i></span>
<span class="input-group-addon"><i class="fas fa-th dtp-trigger"></i></span>
</div>
```

```js
$('#datetimepicker').datetimepicker({
format: 'yyyy-mm-dd hh:ii'
})
```

## Methods

### .datetimepicker(options)
Expand Down Expand Up @@ -716,3 +726,7 @@ If your browser (or those of your users) is displaying characters wrong, chances
```html
<script type="text/javascript" src="bootstrap-datetimepicker.de.js" charset="UTF-8"></script>
```

# Project forked

This project is a fork of [bootstrap-datepicker project](https://github.com/smalot/bootstrap-datetimepicker).
4 changes: 0 additions & 4 deletions css/bootstrap-datetimepicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,6 @@
width: 145px;
}

.datetimepicker th span.glyphicon {
pointer-events: none;
}

.datetimepicker thead tr:first-child th,
.datetimepicker tfoot th {
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion css/bootstrap-datetimepicker.min.css

Large diffs are not rendered by default.

87 changes: 87 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Bootstrap Datetimepicker">
<meta name="author" content="Christian Vaas">

<title>Project website for Bootstrap Datetimepicker</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/solid.css" integrity="sha384-Rw5qeepMFvJVEZdSo1nDQD5B6wX0m7c5Z/pLNvjkB14W6Yki1hKbSEQaX9ffUbWe" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/fontawesome.css" integrity="sha384-GVa9GOgVQgOk+TNYXu7S/InPTfSDTtBalSgkgqQ7sCik56N9ztlkoTr2f/T44oKV" crossorigin="anonymous">
<link rel="stylesheet" href="./css/bootstrap-datetimepicker.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<style>
body {
padding-top: 20px;
padding-bottom: 20px;
}
.navbar {
margin-bottom: 20px;
}
</style>
</head>
<body>
<a href="https://github.com/AuspeXeu/bootstrap-datetimepicker"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"></a>
<div class="container">

<!-- Static navbar -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">DateTime Picker</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Demo</a></li>
<li><a href="#">Doc</a></li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>

<!-- Main component for a primary marketing message or call to action -->
<div class="jumbotron">
<h1>Under construction</h1>
<p>This example is a quick exercise to illustrate how the default, static navbar and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
<p>
<a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs &raquo;</a>
</p>
<p>
<!-- <input id="my_dtp" class="my_dtp_c" size="16" type="text"> -->
<div class="input-group date" id="my_dtp">
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
<span class="input-group-addon"><i class="fas fa-calendar dtp-trigger"></i></span>
</div>
</p>
</div>

</div> <!-- /container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- jQuery minified -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="./js/bootstrap-datetimepicker.js"></script>
<script>
$('#my_dtp').datetimepicker({
format: 'yyyy-mm-dd hh:ii'
})
$('#my_dtp').datetimepicker('update', new Date())

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