Update datetimepicker.js and jquery.payment
This commit is contained in:
parent
edb71c3e29
commit
86b66af211
|
|
@ -44,7 +44,7 @@ module.exports = function (grunt) {
|
|||
'./public/vendor/humane-js/humane.js',
|
||||
'./public/vendor/RRSSB/js/rrssb.js',
|
||||
'./public/vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.js',
|
||||
'./public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker.js',
|
||||
'./public/vendor/datetimepicker/dist/DateTimePicker.js',
|
||||
'./public/vendor/jquery-minicolors/jquery.minicolors.min.js',
|
||||
'./public/assets/javascript/app.js'
|
||||
],
|
||||
|
|
@ -87,4 +87,4 @@ module.exports = function (grunt) {
|
|||
grunt.registerTask('js', ['concat']);
|
||||
grunt.registerTask('styles', ['concat']);
|
||||
grunt.registerTask('minify', ['uglify']);
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
],
|
||||
"dependencies": {
|
||||
"bootstrap": "~3.2.0",
|
||||
"curioussolutions-datetimepicker": "~0.1.26",
|
||||
"chartjs": "~2.0.0-beta2",
|
||||
"humane-js": "~3.2.0",
|
||||
"geocomplete": "~1.6.4",
|
||||
|
|
@ -32,7 +31,8 @@
|
|||
"vue": "^1.0.24",
|
||||
"vue-resource": "^0.7.0",
|
||||
"html.sortable": "^0.3.1",
|
||||
"jquery.payment": "^1.4.2"
|
||||
"jquery.payment": "^1.4.2",
|
||||
"datetimepicker": "flat-datetimepicker#^0.1.38"
|
||||
},
|
||||
"resolutions": {
|
||||
"jquery": ">=1.5",
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
"less": "~1.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bower": "^1.8.4",
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-cli": "^1.2.0",
|
||||
"grunt-contrib-concat": "^0.5.1",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -3923,7 +3923,7 @@ function log() {
|
|||
$.payment.cards = cards = [
|
||||
{
|
||||
type: 'elo',
|
||||
patterns: [4011, 4312, 4389, 4514, 4573, 4576, 5041, 5066, 5067, 509, 6277, 6362, 6363, 650, 6516, 6550],
|
||||
patterns: [401178, 401179, 431274, 438935, 451416, 457393, 457631, 457632, 504175, 506699, 5067, 509, 627780, 636297, 636368, 650, 6516, 6550],
|
||||
format: defaultFormat,
|
||||
length: [16],
|
||||
cvcLength: [3],
|
||||
|
|
|
|||
|
|
@ -95,10 +95,11 @@ body {
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.26
|
||||
Copyright (c)2016 Curious Solutions LLP and Neha Kadam
|
||||
http://curioussolutions.github.io/DateTimePicker
|
||||
https://github.com/CuriousSolutions/DateTimePicker
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
/* Plugins etc */
|
||||
@import (inline) "../../vendor/RRSSB/css/rrssb.css";
|
||||
@import (inline) "../../vendor/humane-js/themes/flatty.css";
|
||||
@import (inline) "../../vendor/curioussolutions-datetimepicker/dist/DateTimePicker.min.css";
|
||||
@import (inline) "../../vendor/datetimepicker/dist/DateTimePicker.min.css";
|
||||
@import (inline) "../../vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css";
|
||||
@import (inline) "../../vendor/jquery-minicolors/jquery.minicolors.css";
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,11 +0,0 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.26
|
||||
Copyright (c)2016 Curious Solutions LLP and Neha Kadam
|
||||
http://curioussolutions.github.io/DateTimePicker
|
||||
https://github.com/CuriousSolutions/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1}),jQuery.fn.fadeIn=function(){this.show()},jQuery.fn.fadeOut=function(){this.hide()};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -12,11 +12,11 @@
|
|||
"timepicker",
|
||||
"input"
|
||||
],
|
||||
"version": "0.1.26",
|
||||
"homepage": "http://curioussolutions.github.io/DateTimePicker/",
|
||||
"version": "0.1.38",
|
||||
"homepage": "https://nehakadam.github.io/DateTimePicker/",
|
||||
"main": [
|
||||
"dist/DateTimePicker.js",
|
||||
"dist/DateTimePicker.css"
|
||||
"dist/DateTimePicker.min.js",
|
||||
"dist/DateTimePicker.min.css"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com:CuriousSolutions/DateTimePicker.git"
|
||||
"url": "git://github.com:nehakadam/DateTimePicker.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jquery": ">=1.0.0"
|
||||
|
|
@ -35,13 +35,14 @@
|
|||
"node_modules",
|
||||
"package.json"
|
||||
],
|
||||
"_release": "0.1.26",
|
||||
"_release": "0.1.38",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "0.1.26",
|
||||
"commit": "5de31f36b5d81f3a527df195e66a3946d9888eaf"
|
||||
"tag": "0.1.38",
|
||||
"commit": "36d272ac90c93ef45c5b8b228a517a932a0778bd"
|
||||
},
|
||||
"_source": "git://github.com/CuriousSolutions/DateTimePicker.git",
|
||||
"_target": "~0.1.26",
|
||||
"_originalSource": "curioussolutions-datetimepicker"
|
||||
"_source": "https://github.com/nehakadam/DateTimePicker.git",
|
||||
"_target": "^0.1.38",
|
||||
"_originalSource": "flat-datetimepicker",
|
||||
"_direct": true
|
||||
}
|
||||
18
public/vendor/curioussolutions-datetimepicker/DateTimePicker.jquery.json → public/vendor/datetimepicker/DateTimePicker.jquery.json
vendored
Normal file → Executable file
18
public/vendor/curioussolutions-datetimepicker/DateTimePicker.jquery.json → public/vendor/datetimepicker/DateTimePicker.jquery.json
vendored
Normal file → Executable file
|
|
@ -7,9 +7,11 @@
|
|||
|
||||
"keywords": ["date", "time", "datetime", "plugin", "picker", "DatePicker", "TimePicker", "DateTimePicker", "Responsive", "Flat", "Mobile", "jquery"],
|
||||
|
||||
"version": "0.1.38",
|
||||
|
||||
"author": {
|
||||
"name": "Curious Solutions",
|
||||
"url": "http://curioussolutions.in/"
|
||||
"name": "Lajpat Shah",
|
||||
"url": "https://github.com/lajpatshah"
|
||||
},
|
||||
|
||||
"maintainers": [
|
||||
|
|
@ -22,19 +24,17 @@
|
|||
"repository":
|
||||
{
|
||||
"type" : "git",
|
||||
"url" : "https://github.com/CuriousSolutions/DateTimePicker.git"
|
||||
"url" : "https://github.com/nehakadam/DateTimePicker.git"
|
||||
},
|
||||
|
||||
"homepage": "http://curioussolutions.github.io/DateTimePicker/",
|
||||
"homepage": "https://nehakadam.github.io/DateTimePicker/",
|
||||
|
||||
"docs": "http://curioussolutions.github.io/DateTimePicker/",
|
||||
|
||||
"version": "0.1.26",
|
||||
"docs": "https://nehakadam.github.io/DateTimePicker/",
|
||||
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/CuriousSolutions/DateTimePicker/blob/master/LICENSE"
|
||||
"url": "https://github.com/nehakadam/DateTimePicker/blob/master/LICENSE"
|
||||
}
|
||||
],
|
||||
|
||||
|
|
@ -43,5 +43,5 @@
|
|||
"jquery": ">=1.9.1"
|
||||
},
|
||||
|
||||
"bugs": "https://github.com/CuriousSolutions/DateTimePicker/issues"
|
||||
"bugs": "https://github.com/nehakadam/DateTimePicker/issues"
|
||||
}
|
||||
|
|
@ -3,9 +3,10 @@ module.exports = function(grunt)
|
|||
var sBanner = '/* ----------------------------------------------------------------------------- ' +
|
||||
'\n\n jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile' +
|
||||
'\n Version <%= pkg.version %>' +
|
||||
'\n Copyright (c)<%= grunt.template.today("yyyy") %> Curious Solutions LLP and Neha Kadam' +
|
||||
'\n http://curioussolutions.github.io/DateTimePicker' +
|
||||
'\n https://github.com/CuriousSolutions/DateTimePicker' +
|
||||
'\n Copyright (c)<%= grunt.template.today("yyyy") %> Lajpat Shah' +
|
||||
'\n Contributors : https://github.com/nehakadam/DateTimePicker/contributors' +
|
||||
'\n Repository : https://github.com/nehakadam/DateTimePicker' +
|
||||
'\n Documentation : https://nehakadam.github.io/DateTimePicker' +
|
||||
'\n\n ----------------------------------------------------------------------------- */\n\n'
|
||||
|
||||
|
||||
|
|
@ -56,7 +57,10 @@ module.exports = function(grunt)
|
|||
{
|
||||
options:
|
||||
{
|
||||
banner: sBanner
|
||||
banner: sBanner,
|
||||
compress: {
|
||||
drop_console: true
|
||||
}
|
||||
},
|
||||
build:
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Curious Solutions
|
||||
Copyright (c) 2017 Lajpat Shah
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
|
|
@ -1,16 +1,8 @@
|
|||
## NEW AnyPicker
|
||||
Check our newly released picker library for Mobile OS - [AnyPicker](https://curioussolutions.in/libraries/anypicker/ "AnyPicker
|
||||
Details")
|
||||

|
||||
|
||||
## DateTimePicker [](https://gitter.im/CuriousSolutions/DateTimePicker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
|
||||
**Responsive jQuery DateTime Picker library for Web & Mobile**
|
||||
<br /><br />
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
DateTime Picker is a quick highly customizable jQuery plugin. The design is clutter free & well suited for embedding it into mobile application development.
|
||||
|
||||
|
|
@ -19,17 +11,16 @@ Users can change values using +/- buttons or type values directly into the textb
|
|||
For web, picker can be binded relative to reference element, were it will appear at the bottom of the element. For mobile, the picker can appear as a dialog box covering entire window.
|
||||
|
||||
|
||||
## Browser Support
|
||||
- Chrome, Firefox, Safari, Opera, IE 9+
|
||||
##Browser Support
|
||||
- Chrome, Firefox, Safari, Opera, IE 6+
|
||||
- Android 2.3+, iOS 6+, Windows Phone 8
|
||||
|
||||
|
||||
## More Details
|
||||
For demo & api documentation visit [Plugin Page](http://curioussolutions.github.io/DateTimePicker/ "DateTime Picker Plugin
|
||||
Details")
|
||||
For demo & api documentation visit [Plugin Page](http://nehakadam.github.io/DateTimePicker/)
|
||||
|
||||
|
||||
## Build System
|
||||
##Build System
|
||||
|
||||
- Install devDependencies listed in "package.json"
|
||||
|
||||
|
|
@ -45,7 +36,7 @@ Tasks configured in "Gruntfile.js"
|
|||
- Minify "src/DateTimePicker.css" to "dist/DateTimePicker.min.css"
|
||||
|
||||
|
||||
## Installations
|
||||
##Installations
|
||||
|
||||
- npm
|
||||
|
||||
|
|
@ -55,7 +46,7 @@ Tasks configured in "Gruntfile.js"
|
|||
|
||||
`bower install curioussolutions-datetimepicker`
|
||||
|
||||
## CDN
|
||||
##CDN
|
||||
DateTimePicker is hosted on [jsDelivr](http://www.jsdelivr.com).
|
||||
|
||||
Files - Latest
|
||||
|
|
@ -72,18 +63,16 @@ Files - Particular Version
|
|||
<script type="text/javascript" src="//cdn.jsdelivr.net/datetimepicker/<version>/DateTimePicker.min.js"></script>
|
||||
```
|
||||
|
||||
## Authors
|
||||
[Neha Kadam](https://github.com/nehakadam): Principle Developer
|
||||
##Authors
|
||||
[Neha Kadam](https://github.com/nehakadam): Developer
|
||||
|
||||
Special thanks:
|
||||
- Shweta Matkar for her contributions <br/>
|
||||
- Jean-Christophe Hoelt - NPM packaging. Few customization options.
|
||||
Special Thanks:
|
||||
- [Jean-Christophe Hoelt](https://github.com/j3k0) - NPM packaging. Few customization options.
|
||||
- [All Contributors](https://github.com/nehakadam/DateTimePicker/contributors)
|
||||
|
||||
Copyright 2015 [Curious Solutions LLP](https://github.com/CuriousSolutions)
|
||||
Copyright 2017 [Lajpat Shah](https://github.com/lajpatshah)
|
||||
|
||||
|
||||
|
||||
|
||||
## License
|
||||
##License
|
||||
|
||||
Licensed under the MIT License
|
||||
|
|
@ -15,11 +15,11 @@
|
|||
"input"
|
||||
],
|
||||
|
||||
"version": "0.1.26",
|
||||
"version": "0.1.38",
|
||||
|
||||
"homepage": "http://curioussolutions.github.io/DateTimePicker/",
|
||||
"homepage": "https://nehakadam.github.io/DateTimePicker/",
|
||||
|
||||
"main": ["dist/DateTimePicker.js", "dist/DateTimePicker.css"],
|
||||
"main": ["dist/DateTimePicker.min.js", "dist/DateTimePicker.min.css"],
|
||||
|
||||
"authors": [
|
||||
{"name": "nehakadam"}
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com:CuriousSolutions/DateTimePicker.git"
|
||||
"url": "git://github.com:nehakadam/DateTimePicker.git"
|
||||
},
|
||||
|
||||
"devDependencies": {
|
||||
84
public/vendor/datetimepicker/demo/AngularJS/BasicDatePicker-LongTypeOfModel.html
vendored
Normal file
84
public/vendor/datetimepicker/demo/AngularJS/BasicDatePicker-LongTypeOfModel.html
vendored
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>long type of model in AngularJS</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="../jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="angular-1.4.2.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var dDate1;
|
||||
|
||||
angular.module("App-DTP", []).controller("Ctrl-DTP", function($scope)
|
||||
{
|
||||
$scope.datestring = "3600000";
|
||||
})
|
||||
.directive('dateFormat', ['$filter',function($filter) {
|
||||
var dateFilter = $filter('date');
|
||||
return {
|
||||
require: 'ngModel',
|
||||
link: function(scope, elm, attrs, ctrl) {
|
||||
function formatter(value) {
|
||||
return dateFilter(value, 'HH:mm'); //format
|
||||
}
|
||||
ctrl.$formatters.push(formatter);
|
||||
}
|
||||
};
|
||||
}]);
|
||||
|
||||
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#dtBox").DateTimePicker(
|
||||
{
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body ng-app="App-DTP" ng-controller="Ctrl-DTP">
|
||||
|
||||
<p>Time : </p>
|
||||
<input type="text" date-format data-field="time" ng-model="datestring" >
|
||||
|
||||
<div>Time : {{ datestring }}</div>
|
||||
|
||||
<div id="dtBox"></div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -0,0 +1,124 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>Date Picker with AngularJS</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="../jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="angular-1.4.2.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var dQuestionDate, dReviewDate;
|
||||
|
||||
angular.module("App-DTP", []).controller("Ctrl-DTP", function($scope)
|
||||
{
|
||||
$scope.question = {};
|
||||
$scope.question.date = new Date(2016, 2, 1, 0, 0, 0, 0);
|
||||
$scope.question.datestr = "01-Mar-2016";
|
||||
$scope.question.setValue = function()
|
||||
{
|
||||
console.log("Before question.setValue : " + $scope.question.date + " " + $scope.question.datestr);
|
||||
$scope.question.date = new Date(dQuestionDate);
|
||||
console.log("After question.setValue : " + $scope.question.date + " " + $scope.question.datestr);
|
||||
};
|
||||
|
||||
$scope.reviews = {};
|
||||
$scope.reviews.date = new Date(2016, 2, 15, 0, 0, 0, 0);
|
||||
$scope.reviews.datestr = "15-Mar-2016";
|
||||
$scope.reviews.setValue = function()
|
||||
{
|
||||
console.log("Before review.setValue : " + $scope.reviews.date + " " + $scope.reviews.datestr);
|
||||
$scope.reviews.date = new Date(dQuestionDate);
|
||||
console.log("After review.setValue : " + $scope.reviews.date + " " + $scope.reviews.datestr);
|
||||
};
|
||||
});
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#dtBox-1').DateTimePicker(
|
||||
{
|
||||
parentElement: ".questionsDateDiv",
|
||||
dateFormat: "dd-MMM-yyyy",
|
||||
addEventHandlers: function()
|
||||
{
|
||||
var oDTP = this;
|
||||
|
||||
oDTP.settings.minDate = oDTP.getDateTimeStringInFormat("Date", "dd-MMM-yyyy", new Date());
|
||||
},
|
||||
settingValueOfElement: function(sValue, dValue, oInputElement)
|
||||
{
|
||||
dQuestionDate = dValue;
|
||||
console.log("settingValueOfElement dQuestionDate : " + dQuestionDate+ " " + sValue);
|
||||
}
|
||||
});
|
||||
|
||||
$('#dtBox-2').DateTimePicker(
|
||||
{
|
||||
parentElement: ".reviewDateDiv",
|
||||
dateFormat: "dd-MMM-yyyy",
|
||||
addEventHandlers: function()
|
||||
{
|
||||
var oDTP = this;
|
||||
|
||||
oDTP.settings.maxDate = oDTP.getDateTimeStringInFormat("Date", "dd-MMM-yyyy", new Date());
|
||||
},
|
||||
settingValueOfElement: function(sValue, dValue, oInputElement)
|
||||
{
|
||||
dReviewDate = dValue;
|
||||
console.log("settingValueOfElement dReviewDate : " + dReviewDate+ " " + sValue);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body ng-app="App-DTP" ng-controller="Ctrl-DTP">
|
||||
|
||||
<div class="questionsDateDiv">
|
||||
<p>Question Date : {{ question.datestr }}</p>
|
||||
<input type="text" name="questionDate" id="question_date" data-field="date" ng-model="question.datestr" placeholder="Pick a suitable date" ng-change="question.setValue()" readonly required />
|
||||
</div>
|
||||
|
||||
<div class="reviewDateDiv">
|
||||
<p>Review Date : {{ reviews.datestr }}</p>
|
||||
<input type="text" name="reviewDate" id="review_date" data-field="date" ng-model="reviews.datestr" placeholder="Date Hired (optional)" ng-change="reviews.setValue()" readonly required />
|
||||
</div>
|
||||
|
||||
|
||||
<div id="dtBox-1"></div>
|
||||
<div id="dtBox-2"></div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -8,8 +8,9 @@
|
|||
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
||||
<!-- <script type="text/javascript" src="jquery-1.11.0.min.js"></script> -->
|
||||
<script type="text/javascript" src="jquery-3.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="../dist/DateTimePicker.min.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
2
public/vendor/curioussolutions-datetimepicker/demo/BasicExamples-CustomEvent.htm → public/vendor/datetimepicker/demo/BasicExamples-CustomEvent.htm
vendored
Normal file → Executable file
2
public/vendor/curioussolutions-datetimepicker/demo/BasicExamples-CustomEvent.htm → public/vendor/datetimepicker/demo/BasicExamples-CustomEvent.htm
vendored
Normal file → Executable file
|
|
@ -16,7 +16,7 @@
|
|||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style>
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
121
public/vendor/datetimepicker/demo/BasicExamples-CustomInputValue-Issue125.htm
vendored
Normal file
121
public/vendor/datetimepicker/demo/BasicExamples-CustomInputValue-Issue125.htm
vendored
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>Custom Input Value</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style>
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.btn
|
||||
{
|
||||
background: #FFFFFF;
|
||||
color: #A3A3CC;
|
||||
|
||||
border: 2px solid #A3A3CC;
|
||||
border-radius: 5px;
|
||||
|
||||
padding: 10px 20px;
|
||||
margin: 20px;
|
||||
|
||||
font-size: 12px;
|
||||
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>Date : </p>
|
||||
<input id="input-date" type="text" data-field="date" data-format="dd-MM-yyyy" value="2016-07-05" readonly>
|
||||
|
||||
<div id="dateBox"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
var oDTP1;
|
||||
|
||||
$("#dateBox").DateTimePicker(
|
||||
{
|
||||
addEventHandlers: function()
|
||||
{
|
||||
oDTP = this;
|
||||
|
||||
oDTP.settings.maxDate = oDTP.getDateTimeStringInFormat("date", "dd-MM-yyyy", new Date());
|
||||
},
|
||||
|
||||
parseDateTimeString: function(sDateTime, sMode, sFormat, oInputElement)
|
||||
{
|
||||
oDTP1 = this;
|
||||
|
||||
console.log(sDateTime + " " + sMode);
|
||||
var dThisDate = new Date(),
|
||||
iArrDateTimeComps, sRegex;
|
||||
|
||||
if($.cf._isValid(sDateTime))
|
||||
{
|
||||
// "2016-10-26"
|
||||
sRegex = /(\d{1,4})(-)(\d{1,2})(-)(\d{1,2})/;
|
||||
|
||||
iArrDateTimeComps = sDateTime.match(sRegex);
|
||||
|
||||
|
||||
dThisDate = new Date(
|
||||
parseInt(iArrDateTimeComps[1]),
|
||||
parseInt(iArrDateTimeComps[3]) - 1,
|
||||
parseInt(iArrDateTimeComps[5]),
|
||||
0, 0, 0, 0
|
||||
);
|
||||
}
|
||||
|
||||
return dThisDate;
|
||||
},
|
||||
|
||||
formatDateTimeString: function(oDate, sMode, sFormat, oInputElement)
|
||||
{
|
||||
oDTP1 = this;
|
||||
|
||||
console.log("formatDateTimeString " + sFormat);
|
||||
console.log(oDate);
|
||||
if(sFormat === "yyyy-MM-dd")
|
||||
return oDate.yyyy + "-" + oDate.MM + "-" + oDate.dd;
|
||||
else if(sFormat === "dd-MM-yyyy")
|
||||
return oDate.dd + "-" + oDate.MM + "-" + oDate.yyyy;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
4
public/vendor/curioussolutions-datetimepicker/demo/BasicExamples-CustomInputValue.htm → public/vendor/datetimepicker/demo/BasicExamples-CustomInputValue.htm
vendored
Normal file → Executable file
4
public/vendor/curioussolutions-datetimepicker/demo/BasicExamples-CustomInputValue.htm → public/vendor/datetimepicker/demo/BasicExamples-CustomInputValue.htm
vendored
Normal file → Executable file
|
|
@ -96,7 +96,7 @@
|
|||
|
||||
parentElement: ".cont-date",
|
||||
|
||||
parseDateTimeString: function(sDateTime, sMode, oInputElement)
|
||||
parseDateTimeString: function(sDateTime, sMode, sFormat, oInputElement)
|
||||
{
|
||||
oDTP1 = this;
|
||||
|
||||
|
|
@ -123,7 +123,7 @@
|
|||
return dThisDate;
|
||||
},
|
||||
|
||||
formatDateTimeString: function(oDate, sMode)
|
||||
formatDateTimeString: function(oDate, sMode, sFormat, oInputElement)
|
||||
{
|
||||
oDTP1 = this;
|
||||
|
||||
112
public/vendor/datetimepicker/demo/BasicExamples-ElementsGroup-DataAttribute.htm
vendored
Normal file
112
public/vendor/datetimepicker/demo/BasicExamples-ElementsGroup-DataAttribute.htm
vendored
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>Basic Examples -- Elements Group</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.group1
|
||||
{
|
||||
border: 1px solid skyblue;
|
||||
margin: 20px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.group2
|
||||
{
|
||||
border: 1px solid orange;
|
||||
margin: 20px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="group1">
|
||||
|
||||
<!------------------------ Date Picker ------------------------>
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="date" readonly>
|
||||
|
||||
<!------------------------ Time Picker ------------------------>
|
||||
<p>Time : </p>
|
||||
<input type="text" data-field="time" readonly>
|
||||
|
||||
<!---------------------- DateTime Picker ---------------------->
|
||||
<p>DateTime : </p>
|
||||
<input type="text" data-field="datetime" readonly>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="group2">
|
||||
|
||||
<!------------------------ Date Picker ------------------------>
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="date" readonly>
|
||||
|
||||
<!------------------------ Time Picker ------------------------>
|
||||
<p>Time : </p>
|
||||
<input type="text" data-field="time" readonly>
|
||||
|
||||
<!---------------------- DateTime Picker ---------------------->
|
||||
<p>DateTime : </p>
|
||||
<input type="text" data-field="datetime" readonly>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="dtBox1" data-parentelement=".group1"></div>
|
||||
|
||||
<div id="dtBox2" data-parentelement=".group2"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
$("#dtBox1").DateTimePicker(
|
||||
{
|
||||
|
||||
});
|
||||
|
||||
$("#dtBox2").DateTimePicker(
|
||||
{
|
||||
dateFormat: "dd-MMM-yyyy"
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
0
public/vendor/curioussolutions-datetimepicker/demo/Bootstrap Examples/bootstrap.min.css → public/vendor/datetimepicker/demo/Bootstrap Examples/bootstrap.min.css
vendored
Normal file → Executable file
0
public/vendor/curioussolutions-datetimepicker/demo/Bootstrap Examples/bootstrap.min.css → public/vendor/datetimepicker/demo/Bootstrap Examples/bootstrap.min.css
vendored
Normal file → Executable file
0
public/vendor/curioussolutions-datetimepicker/demo/Bootstrap Examples/bootstrap.min.js → public/vendor/datetimepicker/demo/Bootstrap Examples/bootstrap.min.js
vendored
Normal file → Executable file
0
public/vendor/curioussolutions-datetimepicker/demo/Bootstrap Examples/bootstrap.min.js → public/vendor/datetimepicker/demo/Bootstrap Examples/bootstrap.min.js
vendored
Normal file → Executable file
|
|
@ -0,0 +1,74 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>TouchHold Gesture Example</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="date" readonly>
|
||||
|
||||
<p>Time : </p>
|
||||
<input type="text" data-field="time" readonly>
|
||||
|
||||
<p>DateTime : </p>
|
||||
<input type="text" data-field="datetime" readonly>
|
||||
|
||||
|
||||
|
||||
<div id="dtBox"></div>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#dtBox").DateTimePicker({
|
||||
|
||||
captureMouseHold: true,
|
||||
|
||||
mouseHoldInterval: 10
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>TouchHold Gesture Example</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="date" readonly>
|
||||
|
||||
<p>Time : </p>
|
||||
<input type="text" data-field="time" readonly>
|
||||
|
||||
<p>DateTime : </p>
|
||||
<input type="text" data-field="datetime" readonly>
|
||||
|
||||
|
||||
|
||||
<div id="dtBox"></div>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#dtBox").DateTimePicker({
|
||||
|
||||
captureTouchHold: true,
|
||||
|
||||
touchHoldInterval: 300
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -40,6 +40,9 @@
|
|||
<div class="separator-1">
|
||||
<p>Format - "MM-yyyy"</p>
|
||||
<input type="text" data-field="date" data-format="MM-yyyy" readonly>
|
||||
|
||||
<p>Format - "yyyy-MM"</p>
|
||||
<input type="text" data-field="date" data-format="yyyy-MM" readonly>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
dateFormat: "yyyy-MM-dd",
|
||||
timeFormat: "hh:mm AA",
|
||||
dateTimeFormat: "yyyy-MM-dd hh:mm:ss AA"
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>Basic Examples - Set DateTime In Input Field</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="date" data-format="dd-MM-yyyy" readonly>
|
||||
|
||||
<div id="dtBox"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var inputDateString = "2016-10-22", outputDateString, dDateTime;
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#dtBox").DateTimePicker(
|
||||
{
|
||||
|
||||
addEventHandlers: function()
|
||||
{
|
||||
oDTP = this;
|
||||
var inputDateStringComp = inputDateString.split("-");
|
||||
|
||||
// Set Date
|
||||
oDTP.settings.defaultDate = new Date(parseInt(inputDateStringComp[0]), parseInt(inputDateStringComp[1]) - 1, parseInt(inputDateStringComp[2]), 0, 0, 0, 0);
|
||||
dDateTime = new Date(oDTP.settings.defaultDate);
|
||||
|
||||
oDTP.setDateTimeStringInInputField($("input"), oDTP.settings.defaultDate);
|
||||
},
|
||||
|
||||
settingValueOfElement: function(sElemValue, dElemValue, oElem)
|
||||
{
|
||||
oDTP = this;
|
||||
|
||||
if(oDTP.settings.mode === "date")
|
||||
{
|
||||
dDateTime = new Date(dElemValue.getFullYear(), dElemValue.getMonth(), dElemValue.getDate(), 0, 0, 0, 0);
|
||||
|
||||
outputDateString = oDTP.getDateTimeStringInFormat("date", "yyyy-MM-dd");
|
||||
}
|
||||
|
||||
console.log(dDateTime + " -- " + outputDateString);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -61,7 +61,7 @@
|
|||
language:'zh-CN',
|
||||
defaultDate: new Date(),
|
||||
animationDuration:200,
|
||||
buttonsToDisplay: [ "SetButton", "ClearButton"],
|
||||
buttonsToDisplay: [ "SetButton","HeaderCloseButton"],
|
||||
clearButtonContent: "取消"
|
||||
|
||||
});
|
||||
|
|
@ -54,9 +54,7 @@
|
|||
<div id="dtBox"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// German Locale Strings Source - https://github.com/solala888/DateTimePicker
|
||||
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
var sArrLang = Object.keys($.DateTimePicker.i18n),
|
||||
|
|
@ -84,7 +82,7 @@
|
|||
oDTP = this;
|
||||
},
|
||||
|
||||
language: "de"
|
||||
language: "cs"
|
||||
|
||||
});
|
||||
});
|
||||
|
|
@ -82,8 +82,13 @@
|
|||
minTime: "09:00",
|
||||
maxTime: "19:30",
|
||||
|
||||
minDateTime: "01-03-2012 08:30",
|
||||
maxDateTime: "01-03-2016 18:30"
|
||||
minDateTime: new Date(2016, 2, 1, 8, 30, 0, 0),
|
||||
maxDateTime: new Date(2016, 2, 1, 18, 30, 0, 0)
|
||||
|
||||
// OR
|
||||
|
||||
// minDateTime: "01-03-2012 08:30",
|
||||
// maxDateTime: "01-03-2016 18:30"
|
||||
|
||||
});
|
||||
});
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>Period Range - Minimum Time Now</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form>
|
||||
|
||||
<!------------------------ Date Picker ------------------------>
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="time" readonly>
|
||||
|
||||
</form>
|
||||
|
||||
<div id="dtBox"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#dtBox").DateTimePicker(
|
||||
{
|
||||
timeFormat: "hh:mm AA",
|
||||
|
||||
addEventHandlers: function()
|
||||
{
|
||||
var oDTP = this;
|
||||
|
||||
oDTP.settings.minTime = oDTP.getDateTimeStringInFormat("Time", "hh:mm AA", new Date());
|
||||
//oDTP.settings.maxTime = "11:59 PM";
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<!-- Default dateFormat: "dd-MM-yyyy"
|
||||
|
||||
dateFormat Options :
|
||||
1. "dd-MM-yyyy"
|
||||
2. "MM-dd-yyyy"
|
||||
3. "yyyy-MM-dd"
|
||||
|
||||
Specify (data-min & data-max) / (minDate & maxDate) values in the same dateFormat specified in settings parameters
|
||||
-->
|
||||
|
||||
<!-- Default timeFormat: "HH:mm"
|
||||
|
||||
timeFormat Options :
|
||||
1. "HH:mm"
|
||||
2. "hh:mm AA"
|
||||
|
||||
Specify (data-min & data-max) / (minTime & maxTime) values in the same timeFormat specified in settings parameters
|
||||
-->
|
||||
|
||||
<!-- Default dateTimeFormat: "dd-MM-yyyy HH:mm:ss"
|
||||
|
||||
dateTimeFormat Options :
|
||||
1. "dd-MM-yyyy HH:mm:ss"
|
||||
2. "dd-MM-yyyy hh:mm:ss AA"
|
||||
3. "MM-dd-yyyy HH:mm:ss"
|
||||
4. "MM-dd-yyyy hh:mm:ss AA"
|
||||
5. "yyyy-MM-dd HH:mm:ss"
|
||||
6. "yyyy-MM-dd hh:mm:ss AA"
|
||||
|
||||
Specify (data-min & data-max) / (minDateTime & maxDateTime) values in the same dateTimeFormat specified in settings parameters
|
||||
-->
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -51,8 +51,8 @@
|
|||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#dtBox").DateTimePicker({
|
||||
|
||||
$("#dtBox").DateTimePicker(
|
||||
{
|
||||
dateFormat: "dd-MMM-yyyy",
|
||||
|
||||
addEventHandlers: function()
|
||||
|
|
@ -53,6 +53,9 @@
|
|||
<!------------------------ Date Picker ------------------------>
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="date" data-view="Dropdown" readonly>
|
||||
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="date" data-view="Dropdown" readonly>
|
||||
|
||||
<!------------------------ Time Picker ------------------------>
|
||||
<p>Time : </p>
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>DateTimePicker in Custom Container</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
#input-date
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
#dtBox
|
||||
{
|
||||
margin: 0px auto;
|
||||
width: 700px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>Date : </p>
|
||||
<span id="input-date" type="text" data-field="date"></span>
|
||||
|
||||
<div id="dtBox"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#dtBox").DateTimePicker({
|
||||
|
||||
isInline: true,
|
||||
|
||||
inputElement: $("#input-date"),
|
||||
|
||||
buttonsToDisplay: [],
|
||||
|
||||
showHeader: false,
|
||||
|
||||
readonlyInputs: false,
|
||||
|
||||
setValueInTextboxOnEveryClick: true,
|
||||
|
||||
settingValueOfElement: function(oDTP, sElemValue, dElemValue, $oElem)
|
||||
{
|
||||
console.log("settingValueOfElement : " + sElemValue);
|
||||
console.log(dElemValue);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
16
public/vendor/curioussolutions-datetimepicker/demo/index.htm → public/vendor/datetimepicker/demo/index.htm
vendored
Normal file → Executable file
16
public/vendor/curioussolutions-datetimepicker/demo/index.htm → public/vendor/datetimepicker/demo/index.htm
vendored
Normal file → Executable file
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<head>
|
||||
|
||||
<title>DateTimePicker by Curious Solutions</title>
|
||||
<title>jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile</title>
|
||||
|
||||
<style>
|
||||
|
||||
|
|
@ -201,6 +201,10 @@
|
|||
DateTimePicker View selected based on Document Width
|
||||
</a>
|
||||
|
||||
<a href="View-Inline.htm">
|
||||
DateTimePicker Inline View
|
||||
</a>
|
||||
|
||||
<a href="Internationalization.htm">
|
||||
Internationalization
|
||||
</a>
|
||||
|
|
@ -216,10 +220,18 @@
|
|||
<a href="AngularJS/BasicDatePicker-AngularJS.htm">
|
||||
DateTimePicker with Angular JS
|
||||
</a>
|
||||
|
||||
<a href="Events-TouchHold.htm">
|
||||
Increment/Decrement with hold of Increment/Decrement buttons for touch devices
|
||||
</a>
|
||||
|
||||
<a href="Events-MouseHold.htm">
|
||||
Increment/Decrement with hold of Increment/Decrement buttons
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer">This project is maintained by <a class="btn-link" href="https://github.com/CuriousSolutions">Curious Solutions</a></div>
|
||||
<div class="footer">This project is maintained by <a class="btn-link" href="https://github.com/nehakadam">Neha Kadam</a></div>
|
||||
|
||||
</body>
|
||||
|
||||
144
public/vendor/datetimepicker/demo/jQueryUI-Tabs/BasicDateTimePicker-jQueryUI-ElementsGroup.htm
vendored
Normal file
144
public/vendor/datetimepicker/demo/jQueryUI-Tabs/BasicDateTimePicker-jQueryUI-ElementsGroup.htm
vendored
Normal file
|
|
@ -0,0 +1,144 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>DateTime Picker</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.theme.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="../jquery-1.11.0.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="jquery-ui.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="tabs">
|
||||
|
||||
<ul>
|
||||
<li><a href="#datepicker-tab">Date Picker</a></li>
|
||||
<li><a href="#timepicker-tab">Time Picker</a></li>
|
||||
<li><a href="#datetimepicker-tab">DateTime Picker</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div id="datepicker-tab">
|
||||
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="date" readonly>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="timepicker-tab">
|
||||
|
||||
<p>Time : </p>
|
||||
<input type="text" data-field="time" readonly>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="datetimepicker-tab">
|
||||
|
||||
<p>DateTime : </p>
|
||||
<input type="text" data-field="datetime" readonly>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="dtBox-datepicker"></div>
|
||||
|
||||
<div id="dtBox-timepicker"></div>
|
||||
|
||||
<div id="dtBox-datetimepicker"></div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var objDatePicker, objTimePicker, objDateTimePicker;
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#tabs").tabs();
|
||||
|
||||
$("#dtBox-datepicker").DateTimePicker({
|
||||
|
||||
isPopup: false,
|
||||
|
||||
parentElement: "#datepicker-tab",
|
||||
|
||||
init: function()
|
||||
{
|
||||
objDatePicker = this;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#dtBox-timepicker").DateTimePicker({
|
||||
|
||||
isPopup: false,
|
||||
|
||||
parentElement: "#timepicker-tab",
|
||||
|
||||
init: function()
|
||||
{
|
||||
objTimePicker = this;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#dtBox-datetimepicker").DateTimePicker({
|
||||
|
||||
isPopup: false,
|
||||
|
||||
parentElement: "#datetimepicker-tab",
|
||||
|
||||
init: function()
|
||||
{
|
||||
objDateTimePicker = this;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
console.log("DatePicker : ");
|
||||
console.log(objDatePicker);
|
||||
console.log("TimePicker : ");
|
||||
console.log(objTimePicker);
|
||||
console.log("DateTimePicker : ");
|
||||
console.log(objDateTimePicker);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
108
public/vendor/datetimepicker/demo/jQueryUI-Tabs/BasicDateTimePicker-jQueryUI.htm
vendored
Normal file
108
public/vendor/datetimepicker/demo/jQueryUI-Tabs/BasicDateTimePicker-jQueryUI.htm
vendored
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>DateTime Picker</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="jquery-ui.theme.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../../src/DateTimePicker.css" />
|
||||
|
||||
<script type="text/javascript" src="../jquery-1.11.0.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="jquery-ui.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="../../src/DateTimePicker.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<link rel="stylesheet" type="text/css" href="../../src/DateTimePicker-ltie9.css" />
|
||||
<script type="text/javascript" src="../../src/DateTimePicker-ltie9.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
p
|
||||
{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
input
|
||||
{
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
margin-left: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="tabs">
|
||||
|
||||
<ul>
|
||||
<li><a href="#datepicker-tab">Date Picker</a></li>
|
||||
<li><a href="#timepicker-tab">Time Picker</a></li>
|
||||
<li><a href="#datetimepicker-tab">DateTime Picker</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div id="datepicker-tab">
|
||||
|
||||
<p>Date : </p>
|
||||
<input type="text" data-field="date" readonly>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="timepicker-tab">
|
||||
|
||||
<p>Time : </p>
|
||||
<input type="text" data-field="time" readonly>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="datetimepicker-tab">
|
||||
|
||||
<p>DateTime : </p>
|
||||
<input type="text" data-field="datetime" readonly>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="dtBox"></div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var objDateTimePicker;
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#tabs").tabs();
|
||||
|
||||
$("#dtBox").DateTimePicker({
|
||||
|
||||
isPopup: false,
|
||||
|
||||
init: function()
|
||||
{
|
||||
objDateTimePicker = this;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
console.log("DateTimePicker : ");
|
||||
console.log(objDateTimePicker);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_444444_256x240.png
vendored
Normal file
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_444444_256x240.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_555555_256x240.png
vendored
Normal file
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_555555_256x240.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_777620_256x240.png
vendored
Normal file
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_777620_256x240.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_777777_256x240.png
vendored
Normal file
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_777777_256x240.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_cc0000_256x240.png
vendored
Normal file
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_cc0000_256x240.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_ffffff_256x240.png
vendored
Normal file
BIN
public/vendor/datetimepicker/demo/jQueryUI-Tabs/images/ui-icons_ffffff_256x240.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.2 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker-Zepto.js → public/vendor/datetimepicker/dist/DateTimePicker-Zepto.js
vendored
Normal file → Executable file
7
public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker-Zepto.js → public/vendor/datetimepicker/dist/DateTimePicker-Zepto.js
vendored
Normal file → Executable file
|
|
@ -2,9 +2,10 @@
|
|||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.17
|
||||
Copyright (c)2015 Curious Solutions LLP and Neha Kadam
|
||||
http://curioussolutions.github.io/DateTimePicker
|
||||
https://github.com/CuriousSolutions/DateTimePicker
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://nehakadam.github.io/DateTimePicker
|
||||
Documentation : https://github.com/nehakadam/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
9
public/vendor/curioussolutions-datetimepicker/src/DateTimePicker-ltie9.css → public/vendor/datetimepicker/dist/DateTimePicker-ltie9.css
vendored
Normal file → Executable file
9
public/vendor/curioussolutions-datetimepicker/src/DateTimePicker-ltie9.css → public/vendor/datetimepicker/dist/DateTimePicker-ltie9.css
vendored
Normal file → Executable file
|
|
@ -1,10 +1,11 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.26
|
||||
Copyright (c)2016 Curious Solutions LLP and Neha Kadam
|
||||
http://curioussolutions.github.io/DateTimePicker
|
||||
https://github.com/CuriousSolutions/DateTimePicker
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
9
public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker-ltie9.js → public/vendor/datetimepicker/dist/DateTimePicker-ltie9.js
vendored
Normal file → Executable file
9
public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker-ltie9.js → public/vendor/datetimepicker/dist/DateTimePicker-ltie9.js
vendored
Normal file → Executable file
|
|
@ -1,10 +1,11 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.26
|
||||
Copyright (c)2016 Curious Solutions LLP and Neha Kadam
|
||||
http://curioussolutions.github.io/DateTimePicker
|
||||
https://github.com/CuriousSolutions/DateTimePicker
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.26
|
||||
Copyright (c)2016 Curious Solutions LLP and Neha Kadam
|
||||
http://curioussolutions.github.io/DateTimePicker
|
||||
https://github.com/CuriousSolutions/DateTimePicker
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;for(c=c<0?Math.ceil(c):Math.floor(c),c<0&&(c+=b);c<b;c++)if(c in this&&this[c]===a)return c;return-1}),jQuery.fn.fadeIn=function(){this.show()},jQuery.fn.fadeOut=function(){this.hide()};
|
||||
9
public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker.css → public/vendor/datetimepicker/dist/DateTimePicker.css
vendored
Normal file → Executable file
9
public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker.css → public/vendor/datetimepicker/dist/DateTimePicker.css
vendored
Normal file → Executable file
|
|
@ -1,10 +1,11 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.26
|
||||
Copyright (c)2016 Curious Solutions LLP and Neha Kadam
|
||||
http://curioussolutions.github.io/DateTimePicker
|
||||
https://github.com/CuriousSolutions/DateTimePicker
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,10 +1,11 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.26
|
||||
Copyright (c)2016 Curious Solutions LLP and Neha Kadam
|
||||
http://curioussolutions.github.io/DateTimePicker
|
||||
https://github.com/CuriousSolutions/DateTimePicker
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,54 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
Author : Yanike Mann (https://github.com/yanike)
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
|
||||
/* Detect iOS device */
|
||||
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
||||
|
||||
/* Execute if iOS device is found */
|
||||
if (iOS) {
|
||||
function dtpickerContMoveiOS() {
|
||||
/* Execute if iOS device is found */
|
||||
if (iOS) {
|
||||
/* Get SCROLL location */
|
||||
var tscroll = window.scrollY /*Modern Way (Chrome, Firefox)*/ || window.pageYOffset /*Modern IE, including IE11*/ || document.documentElement.scrollTop /*Old IE, 6,7,8*/ ;
|
||||
/* Calculate position */
|
||||
var topscroll = (((document.documentElement.clientHeight / 2) + tscroll) + "px");
|
||||
/* Make POSITION ABSOLUTE so iOS devices can interact with DateTimePicker */
|
||||
jQuery('.dtpicker-mobile').css('position', 'absolute');
|
||||
jQuery('.dtpicker-cont').css('position', 'absolute');
|
||||
/* Scroll DateTimePicker into position */
|
||||
jQuery('.dtpicker-cont').css('top', topscroll);
|
||||
}
|
||||
}
|
||||
|
||||
/* WINDOW EVENTLISTENER to LOAD and SCROLL */
|
||||
if (window.addEventListener) {
|
||||
window.addEventListener('load', dtpickerContMoveiOS, false);
|
||||
window.addEventListener('scroll', dtpickerContMoveiOS, false);
|
||||
} else if (window.attachEvent) {
|
||||
window.attachEvent('on' + 'load', dtpickerContMoveiOS);
|
||||
window.attachEvent('on' + 'scroll', dtpickerContMoveiOS);
|
||||
} else {
|
||||
window['on' + 'load'] = dtpickerContMoveiOS;
|
||||
window['on' + 'scroll'] = dtpickerContMoveiOS;
|
||||
}
|
||||
|
||||
/* Makes readonly INPUTS on iOS correctly work */
|
||||
$(function() {
|
||||
$('input[readonly]').on('focus', function(ev) {
|
||||
$(this).trigger('blur');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
|
||||
language: Czech
|
||||
file: DateTimePicker-i18n-cs
|
||||
author: aiphee (https://github.com/aiphee)
|
||||
|
||||
*/
|
||||
|
||||
(function ($) {
|
||||
$.DateTimePicker.i18n["cs"] = $.extend($.DateTimePicker.i18n["cs"], {
|
||||
|
||||
language: "cs",
|
||||
|
||||
dateTimeFormat: "dd-MM-yyyy HH:mm",
|
||||
dateFormat: "dd-MM-yyyy",
|
||||
timeFormat: "HH:mm",
|
||||
|
||||
shortDayNames: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
|
||||
fullDayNames: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"],
|
||||
shortMonthNames: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "čvc", "Srp", "Zář", "Říj", "Lis", "Pro"],
|
||||
fullMonthNames: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"],
|
||||
|
||||
titleContentDate: "Nastavit datum",
|
||||
titleContentTime: "Nastavit čas",
|
||||
titleContentDateTime: "Nastavit datum a čas",
|
||||
|
||||
setButtonContent: "Nastavit",
|
||||
clearButtonContent: "Resetovat"
|
||||
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
/* -----------------------------------------------------------------------------
|
||||
|
||||
jQuery DateTimePicker - Responsive flat design jQuery DateTime Picker plugin for Web & Mobile
|
||||
Version 0.1.26
|
||||
Copyright (c)2016 Curious Solutions LLP and Neha Kadam
|
||||
http://curioussolutions.github.io/DateTimePicker
|
||||
https://github.com/CuriousSolutions/DateTimePicker
|
||||
Version 0.1.38
|
||||
Copyright (c)2017 Lajpat Shah
|
||||
Contributors : https://github.com/nehakadam/DateTimePicker/contributors
|
||||
Repository : https://github.com/nehakadam/DateTimePicker
|
||||
Documentation : https://nehakadam.github.io/DateTimePicker
|
||||
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
|
@ -12,6 +13,7 @@
|
|||
|
||||
language: German
|
||||
file: DateTimePicker-i18n-de
|
||||
author: Lu, Feng (https://github.com/solala888)
|
||||
|
||||
*/
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue