-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.html
31 lines (31 loc) · 926 Bytes
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<html>
<head>
<title>Gantt Test</title>
<link rel="stylesheet" type="text/css" href="example.css">
<link rel="stylesheet" type="text/css" href="ganttify.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="ganttify.js"></script>
</head>
<body>
<h1>Gantt Test</h1>
<div id="gantt"></div>
<script type="text/javascript">
$("#gantt").ganttify({
"name":"Test Gantt",
"items":[
{"id":5,"title":"This is the title","start":"11/12/2010","end":"11/19/2010"},
{"id":6,"title":"Item number 2 title","start":"11/07/2010","end":"11/12/2010"}
],
"callbacks":{
"onMissingTitle":function(item){
return "This is my " + item.id + " item";
},
"onMissingDescription":function(item){
return "This is my " + item.id + " item";
}
},
});
</script>
</body>
</html>