Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/taitems/jQuery.Gantt into…
Browse files Browse the repository at this point in the history
… taitems-master

Conflicts:
	css/style.css
	index.html
	js/jquery.fn.gantt.js
	js/jquery.fn.gantt.min.js
  • Loading branch information
mbielanczuk committed Sep 6, 2014
2 parents 8af2b82 + fdbb279 commit 9d53dfb
Show file tree
Hide file tree
Showing 16 changed files with 2,082 additions and 1,857 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.DS_STORE
.DS_Store
5 changes: 3 additions & 2 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Welcome Contributor
=

Thank your very much for your time examining and potentially modifying the source code. I truly believe it is what makes this community so great. This plugin wouldn't have gained the notoriety it has, had I not opened up the original source and been quiet unhappy with it.
Thank you very much for your time examining and potentially modifying the source code. I truly believe it is what makes this community so great. This plugin wouldn't have gained the notoriety it has had I not opened up the original source and been quite unhappy with it.


Requirements & Best Practices
Expand All @@ -12,5 +12,6 @@ Just a few guidelines before submitting issues and pull requests:
- Ensure the code passes [JSHint](http://jshint.com) completely
- Always strive to write code that meets [best practices](http://taitems.github.com/Front-End-Development-Guidelines/)
- If you're attempting to solve a very unique bug, a test case is preferred
- Please target all pull requests to the [develop](/../../tree/develop) branch

And thanks once again!
And thanks once again!
33 changes: 21 additions & 12 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
width: 100%;
margin: 20px auto;
border: 14px solid #ddd;
position: relative;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
Expand Down Expand Up @@ -46,7 +47,7 @@
float: left;
height: 24px;
line-height: 24px;
/*margin-left: -24px;*/
margin-left: -1px;
}

.fn-gantt .leftPanel .fn-label {
Expand Down Expand Up @@ -182,7 +183,7 @@
.fn-gantt .bar {
background-color: #D0E4FD;
height: 18px;
margin: 4px 3px 3px 3px;
margin: 0px 3px 3px 0px;
position: absolute;
z-index: 10;
text-align: center;
Expand Down Expand Up @@ -426,21 +427,29 @@
}

.fn-gantt-loader {
background-image: url(../img/loader_bg.png);
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bf000000', endColorstr='#bf000000',GradientType=0 );
background: rgba(0,0,0,0.75);
cursor: wait;
z-index: 30;
}

.fn-gantt-loader-spinner {
width: 100px;
height: 20px;
.fn-gantt-loader-spinner span {
position: absolute;
margin-left: 50%;
margin-top: 50%;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
}
.fn-gantt-loader-spinner span {
height: 1em;
line-height: 1em;
color: #fff;
font-size: 12px;
font-size: 1em;
font-weight: bold;
}

Expand Down
Binary file removed img/.DS_Store
Binary file not shown.
Binary file modified img/grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/icon_sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/loader_bg.png
Binary file not shown.
Binary file modified img/slider_handle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
119 changes: 62 additions & 57 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,44 @@
<!doctype html>
<html lang="en-au">
<!DOCTYPE html>
<html lang="en">
<head>
<title>jQuery.Gantt</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" >
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" />
<link rel="stylesheet" href="http://taitems.github.com/UX-Lab/core/css/prettify.css" />
<style type="text/css">
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 13px;
padding: 0 0 50px 0;
}
.contain {
width: 800px;
margin: 0 auto;
}
h1 {
margin: 40px 0 20px 0;
}
h2 {
font-size: 1.5em;
padding-bottom: 3px;
border-bottom: 1px solid #DDD;
margin-top: 50px;
margin-bottom: 25px;
}
table th:first-child {
width: 150px;
}
</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1">
<link href="css/style.css" type="text/css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="http://taitems.github.com/UX-Lab/core/css/prettify.css" rel="stylesheet" type="text/css">
<style type="text/css">
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 13px;
padding: 0 0 50px 0;
}
.contain {
width: 800px;
margin: 0 auto;
}
h1 {
margin: 40px 0 20px 0;
}
h2 {
font-size: 1.5em;
padding-bottom: 3px;
border-bottom: 1px solid #DDD;
margin-top: 50px;
margin-bottom: 25px;
}
table th:first-child {
width: 150px;
}
/* Bootstrap 3.x re-reset */
.fn-gantt *,
.fn-gantt *:after,
.fn-gantt *:before {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
</style>
</head>
<body>

Expand All @@ -52,12 +60,15 @@ <h2>Contributors</h2>
<li>
<strong><a href="mailto:[email protected]" target="_blank">Leo Pfeifenberger</a></strong> made <em>major</em> performance updates as well as adding requested features such as click events, state persisting via cookies and scrollToToday on load functionality.
</li>
<li>
<strong><a href="mailto:[email protected]" target="_blank">Grzegorz Russek</a></strong> helped fix the White Whale of a bug that prevented the hour view rendering correctly. Nice one.
</li>
</ul>

<h2>
Example
</h2>

<div class="gantt"></div>


Expand Down Expand Up @@ -105,7 +116,7 @@ <h2>
<code>source</code>
</td>
<td>
null
[]
</td>
<td>
Array, String (url)
Expand Down Expand Up @@ -201,7 +212,7 @@ <h2>
</tr>
<tr>
<td>
<code>onItemClick: </code>
<code>onItemClick</code>
</td>
<td>
<code>function (data) { return; }</code></td>
Expand Down Expand Up @@ -424,14 +435,11 @@ <h2>

</div>

</body>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="js/jquery.fn.gantt.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tooltip.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-popover.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.fn.gantt.min2.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="http://taitems.github.com/UX-Lab/core/js/prettify.js"></script>
<script>

<script>
$(function() {

"use strict";
Expand All @@ -444,7 +452,7 @@ <h2>
id: "t01",
from: "/Date(1320192000000)/",
to: "/Date(1322401600000)/",
label: "Requirement Gathering",
label: "Requirement Gathering",
customClass: "ganttRed"
}]
},{
Expand All @@ -454,17 +462,16 @@ <h2>
id: "t02",
from: "/Date(1322611200000)/",
to: "/Date(1323302400000)/",
label: "Scoping",
customClass: "ganttRed",
dep: "t01"
label: "Scoping",
customClass: "ganttRed"
}]
},{
name: "Sprint 1",
desc: "Development",
values: [{
from: "/Date(1323802400000)/",
to: "/Date(1325685200000)/",
label: "Development",
label: "Development",
customClass: "ganttGreen"
}]
},{
Expand All @@ -473,7 +480,7 @@ <h2>
values: [{
from: "/Date(1325685200000)/",
to: "/Date(1325695200000)/",
label: "Showcasing",
label: "Showcasing",
customClass: "ganttBlue"
}]
},{
Expand All @@ -482,7 +489,7 @@ <h2>
values: [{
from: "/Date(1326785200000)/",
to: "/Date(1325785200000)/",
label: "Development",
label: "Development",
customClass: "ganttGreen"
}]
},{
Expand All @@ -491,7 +498,7 @@ <h2>
values: [{
from: "/Date(1328785200000)/",
to: "/Date(1328905200000)/",
label: "Showcasing",
label: "Showcasing",
customClass: "ganttBlue"
}]
},{
Expand All @@ -500,7 +507,7 @@ <h2>
values: [{
from: "/Date(1330011200000)/",
to: "/Date(1336611200000)/",
label: "Training",
label: "Training",
customClass: "ganttOrange"
}]
},{
Expand All @@ -509,7 +516,7 @@ <h2>
values: [{
from: "/Date(1336611200000)/",
to: "/Date(1338711200000)/",
label: "Deployment",
label: "Deployment",
customClass: "ganttOrange"
}]
},{
Expand All @@ -518,14 +525,12 @@ <h2>
values: [{
from: "/Date(1336611200000)/",
to: "/Date(1349711200000)/",
label: "Warranty Period",
label: "Warranty Period",
customClass: "ganttOrange"
}]
}],
navigate: "scroll",
scale: "weeks",
maxScale: "months",
minScale: "days",
maxScale: "hours",
itemsPerPage: 10,
onItemClick: function(data) {
alert("Item clicked - show some details");
Expand Down Expand Up @@ -553,6 +558,6 @@ <h2>
prettyPrint();

});

</script>
</script>
</body>
</html>
4 changes: 0 additions & 4 deletions js/jquery-1.7.min.js

This file was deleted.

Loading

0 comments on commit 9d53dfb

Please sign in to comment.