Skip to content

Commit

Permalink
#276 #247 update to jquery 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
babakhani committed Feb 8, 2019
1 parent d831801 commit 2e799a4
Show file tree
Hide file tree
Showing 20 changed files with 7,407 additions and 70 deletions.
4 changes: 3 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const webpackConfig = require('./webpack.config.js');
const webpackDevConfig = require('./webpack.config.dev.js');
const sass = require('node-sass');

module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
Expand Down Expand Up @@ -31,6 +32,7 @@ module.exports = function (grunt) {
},
prod: {
options: {
implementation: sass,
outputStyle: 'compressed',
sourceMap: true
},
Expand Down Expand Up @@ -97,4 +99,4 @@ module.exports = function (grunt) {
else {
grunt.registerTask('default', ['sass', 'webpack', 'jsdoc2md', 'usebanner']);
}
};
};
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"src"
],
"dependencies": {
"jquery": ">=2.2.0",
"persian-date": ">=1.0.1"
"jquery": ">=3.3.1",
"persian-date": ">=1.0.5"
},
"keywords": [
"bootstrap-datetimepicker",
Expand Down
Binary file added dist/.single.html.swp
Binary file not shown.
8 changes: 4 additions & 4 deletions dist/css/persian-datepicker.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
** persian-datepicker - v1.1.3
** persian-datepicker - v1.1.4b
** Reza Babakhani <babakhani.reza@gmail.com>
** http://babakhani.github.io/PersianWebToolkit/docs/datepicker
** Under WTFPL license
** Under MIT license
*/

.datepicker-plot-area {
Expand Down Expand Up @@ -381,8 +381,8 @@
top: 100vh;
height: 0; }
.datepicker-container.pwt-mobile-view .datepicker-plot-area.datepicker-state-only-time .pwt-btn-submit {
color: white;
background: gray; }
color: #fff;
background: #ccc; }
.datepicker-container.pwt-mobile-view .datepicker-plot-area {
position: absolute;
width: 100%;
Expand Down
6 changes: 3 additions & 3 deletions dist/css/persian-datepicker.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/persian-datepicker.min.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/css/theme/persian-datepicker-blue.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/theme/persian-datepicker-blue.min.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/css/theme/persian-datepicker-cheerup.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/theme/persian-datepicker-cheerup.min.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/css/theme/persian-datepicker-dark.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/theme/persian-datepicker-dark.min.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/css/theme/persian-datepicker-redblack.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/theme/persian-datepicker-redblack.min.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h3 class="panel-title">Iconic Sample</h3>
<script src="../bower_components/jquery/dist/jquery.js"></script>

<!-- ------------------------------------------------------------------------------------ -->
<script src="../assets/persian-date.min.js"></script>
<script src="../bower_components/persian-date/dist/persian-date.min.js"></script>

<!-- Datepicker main script -->
<!-- ------------------------------------------------------------------------------------ -->
Expand Down Expand Up @@ -388,4 +388,4 @@ <h3 class="panel-title">Iconic Sample</h3>
});
</script>
</body>
</html>
</html>
124 changes: 95 additions & 29 deletions dist/js/persian-datepicker.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/js/persian-datepicker.min.js

Large diffs are not rendered by default.

133 changes: 133 additions & 0 deletions dist/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<!doctype html>
<html lang="en">
<head>
<title>Persian Datepicker</title>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">


<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="HandheldFriendly" content="true"/>
<!-- Demo Bootstrap Style -->
<!-- ------------------------------------------------------------------------------------ -->
<!--<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>-->
<link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css"/>

<!-- Demo Font Embed -->
<!-- ------------------------------------------------------------------------------------ -->
<link href="../assets/css/fontiran.css" rel="stylesheet"/>

<!-- Persian Datepicker Style -->
<!-- ------------------------------------------------------------------------------------ -->
<link id="datepickerTheme" href="./css/persian-datepicker.css" rel="stylesheet"/>

<!-- Theme Switcher -->
<!-- ------------------------------------------------------------------------------------ -->
<script type="text/javascript">
function swapStyleSheet(sheet) {
document.getElementById('datepickerTheme').setAttribute('href', sheet);
}
</script>

<!-- Demo Style -->
<!-- ------------------------------------------------------------------------------------ -->
<style type="text/css">
*,
body {
font-family: IRANSans, tahoma;
}

body {
padding-bottom: 300px;
}

.input-group-addon {
cursor: pointer;
}

.navbar-right {
padding: 10px;
}
</style>
</head>
<body>

<nav class="navbar">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">
Persian Date Picker <span class="badge">Version 1.1.3</span>
</a>
</div>
<nav class="navbar-right">
<span>
theme:
</span>
<button class="btn btn-xs btn-primary"
onclick="swapStyleSheet('css/persian-datepicker.css')">
Default
</button>
<button class="btn btn-xs btn-primary"
onclick="swapStyleSheet('css/theme/persian-datepicker-blue.min.css')">
Blue
</button>
<button class="btn btn-xs btn-primary"
onclick="swapStyleSheet('css/theme/persian-datepicker-cheerup.min.css')">
Cheerup
</button>
<button class="btn btn-xs btn-primary"
onclick="swapStyleSheet('css/theme/persian-datepicker-dark.min.css')">
Dark
</button>
<button class="btn btn-xs btn-primary"
onclick="swapStyleSheet('css/theme/persian-datepicker-redblack.min.css')">
Redblack
</button>
</nav><!--/.nav-collapse -->
</div>
</nav>

<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Input Sample without intial value observer true</h3>
</div>
<div class="panel-body">
<div class="form-group">
<input id="normalAlt2" class="form-control" disabled/>
</div>
<div class="form-group">
<input class="form-control"
id="normal2"
value="2018-12-13T14:15:16" />
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../bower_components/jquery/dist/jquery.js"></script>
<script src="../assets/persian-date.min.js"></script>
<script src="./js/persian-datepicker.js"></script>
<script type="text/javascript">
$(document).ready(function () {
window.persianDatepickerDebug = true;
window.pd = $('#normal2').persianDatepicker({
initialValue: true,
initialValueType: 'gregorian',
altField: '#normalAlt2',
altFormat: 'LLLL',
observer: true,
format: 'YYYY/MM/DD',
timePicker: {
enabled: true
}
});
});
</script>
</body>
</html>
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "persian-datepicker",
"version": "1.1.3",
"version": "1.1.4b",
"mian": "dist/js/persian-datepicker.js",
"description": "jQuery datepicker plugin work with Iranian calendar.",
"keywords": [
"jquery-plugin",
Expand All @@ -24,33 +25,32 @@
"url": "https://github.com/babakhani/pwt.datepicker/issues"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-core": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"grunt": "^1.0.1",
"grunt-banner": "^0.6.0",
"grunt-cli": "^1.2.0",
"grunt-contrib-watch": "*",
"hamsterjs": "^1.1.2",
"grunt-jsdoc-to-markdown": "^3.0.0",
"grunt-sass": "^2.0.0",
"grunt-webpack": "^2.0.1",
"hamsterjs": "^1.1.2",
"jshint": "^2.6.0",
"load-grunt-tasks": "^3.5.2",
"load-grunt-tasks": "^4.0.0",
"markdown-doctest": "^0.9.1",
"markdown-link-check": "^3.1.2",
"mustache": "=2.3.0",
"mustache": "=3.0.1",
"node-sass": "^4.5.2",
"persian-date": "^0.1.8",
"pre-commit": "^1.2.2",
"sass-lint": "^1.10.2",
"sync-pkg": "^0.7.2",
"webpack": "^2.3.3",
"webpack-dev-server": "^2.4.2"
},
"dependencies": {
"jquery": "^2.2.0",
"persian-date": "^1.0.4"
"jquery": "^3.3.1",
"persian-date": "^1.0.5"
},
"pre-commit": [
"test"
Expand Down
Loading

0 comments on commit 2e799a4

Please sign in to comment.