56 lines
2.7 KiB
HTML
56 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>graflow</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
<link type="text/css" rel="stylesheet" href="../../eicui/eicui-2.0.css">
|
|
<link type="text/css" rel="stylesheet" href="../buildoz.css">
|
|
<script src="../buildoz.js"></script>
|
|
<script src="../bzGraflow.js"></script>
|
|
<script src="../bzGantt.js"></script>
|
|
<style>
|
|
@font-face { /*FF does not indirectly load if inside a shawdow-dom */
|
|
font-family: 'glyphs';
|
|
src: url('/assets/styles/fonts/glyphs.eot');
|
|
src: url('/assets/styles/fonts/glyphs.eot') format('embedded-opentype'),
|
|
url('/assets/styles/fonts/glyphs.ttf') format('truetype'),
|
|
url('/assets/styles/fonts/glyphs.woff') format('woff'),
|
|
url('/assets/styles/fonts/glyphs.svg') format('svg');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-display: block;
|
|
}
|
|
body{
|
|
background:#888;
|
|
font-size: 16px;
|
|
}
|
|
</style>
|
|
<script>
|
|
const ganttData = {
|
|
"tasks": [
|
|
{ "id": "t1", "name": "Task 1", "start": "2026-09-01", "end":"2026-09-05" },
|
|
{ "id": "t2", "name": "Task 2", "start": "2026-09-15", "end":"2026-09-20", "dependsOn": ["t8"] },
|
|
{ "id": "t3", "name": "Task 3", "start": "2026-09-20", "end":"2026-09-25", "dependsOn": ["t9"] },
|
|
{ "id": "t4", "name": "Task 4", "start": "2026-09-01", "end":"2026-09-10" },
|
|
{ "id": "t5", "name": "Task 5", "start": "2026-09-05", "end":"2026-09-07", "dependsOn": ["t4", "t7"] },
|
|
{ "id": "t6", "name": "Task 6", "start": "2026-09-07", "end":"2026-09-08", "dependsOn": ["t5"] },
|
|
{ "id": "t7", "name": "Task 7", "start": "2026-09-05", "end":"2026-09-08", "dependsOn": ["t1"] },
|
|
{ "id": "t8", "name": "Task 8", "start": "2026-09-08", "end":"2026-09-15", "dependsOn": ["t6"] },
|
|
{ "id": "t9", "name": "Task 9", "start": "2026-09-15", "end":"2026-09-18", "dependsOn": ["t8"] },
|
|
]
|
|
}
|
|
|
|
window.addEventListener('load',()=>{
|
|
let gantt = document.querySelector('bz-gantt.gantt')
|
|
gantt.loadData(ganttData)
|
|
gantt.refresh()
|
|
})
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<bz-gantt class="gantt" nodesfile="./nodesLib/nodesGantt.html" tension="60" isolated></bz-gantt>
|
|
</body>
|
|
</html>
|