Skip to content

Commit

Permalink
Merge pull request #302 from DennisAnim/dennisGantt-Repo
Browse files Browse the repository at this point in the history
chore: `index.html`
  • Loading branch information
s-aga-r committed Jan 4, 2023
2 parents 372b1e8 + fc08a80 commit 33cb615
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
.gantt .bar-milestone .bar {
fill: tomato;
}
.heading {
text-align: center;
}
</style>
<link rel="stylesheet" href="dist/frappe-gantt.css" />
<script src="dist/frappe-gantt.js"></script>
</head>
<body>
<div class="container">
<h2>Interactive Gantt Chart entirely made in SVG!</h2>
<h2 class="heading">Interactive Gantt Chart entirely made in SVG!</h2>
<div class="gantt-target"></div>
</div>
<script>
Expand Down Expand Up @@ -84,16 +87,16 @@ <h2>Interactive Gantt Chart entirely made in SVG!</h2>
}
]
var gantt_chart = new Gantt(".gantt-target", tasks, {
on_click: function (task) {
on_click: task => {
console.log(task);
},
on_date_change: function(task, start, end) {
on_date_change: (task, start, end) => {
console.log(task, start, end);
},
on_progress_change: function(task, progress) {
on_progress_change: (task, progress) => {
console.log(task, progress);
},
on_view_change: function(mode) {
on_view_change: (mode) => {
console.log(mode);
},
view_mode: 'Month',
Expand Down

0 comments on commit 33cb615

Please sign in to comment.