-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathau1tc.html
168 lines (142 loc) · 6.14 KB
/
au1tc.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Aciturri KPI">
<meta name="description" content="Aciturri KPI">
<title>Aciturri KPI</title>
<link rel="favicon" href="../assets/images/favicon.png">
<link rel="stylesheet" media="screen" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<!-- Custom styles for our template -->
<link rel="stylesheet" href="../assets/css/bootstrap-theme.css" media="screen" >
<link rel="stylesheet" type="text/css" href="../assets/css/isotope.css" media="screen" />
<link rel="stylesheet" href="../assets/js/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../assets/css/style.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
<!-- Load jquery for ajax support -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="vis.js"></script>
<link href="vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top headroom" >
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"><span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<a class="navbar-brand" href="../index.html"><img src="../assets/images/logo.png" alt="Aciturri KPI"></a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav pull-right">
<li><a href="../index.html">TTSS</a></li>
<li><a href="../maq/aero.html">Aeroestructuras</a></li>
<li><a href="../maq/motor.php">Motor</a></li>
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Composites<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="./au1tc.html">Tres Cantos</a></li>
<li><a href="./au1boe.html">Boecillo</a></li>
</ul>
</li>
<li><a href="../calidad.html">Calidad</a></li>
</ul>
</div>
</div>
</div>
<header id="head" class="secondary"></header>
<div class="container">
<div id="visualization">
<div class="menu">
<input type="button" id="zoomIn" value="Zoom in"/>
<input type="button" id="zoomOut" value="Zoom out"/>
<input type="button" id="moveLeft" value="Move left"/>
<input type="button" id="moveRight" value="Move right"/>
</div>
</div>
<div id="loading">cargando...</div>
<script type="text/javascript">
// load data via an ajax request. When the data is in, load the timeline
$.ajax({
url: './2017.json',
success: function (data) {
// hide the "loading..." message
document.getElementById('loading').style.display = 'none';
// DOM element where the Timeline will be attached
var container = document.getElementById('visualization');
/*edsa01*/
// create groups
var groups = new vis.DataSet([
{id: 1, content: 'AUTOCLAVE1'},
{id: 2, content: 'AUTOCLAVE2'},
{id: 4, content: 'AUTOCLAVE4'},
{id: 5, content: 'AUTOCLAVE5'}
]);
// Create a DataSet (allows two way data-binding)
var items = new vis.DataSet(data);
// Configuration for the Timeline
// edsa01 var options = {};
var options = {
start: new Date(),
//start: new Date(2016, 12, 31, 0, 0, 0, 1),
//end: new Date(2017, 1, 26, 0, 0, 0, 1),
min: new Date(2017, 0, 1), // lower limit of visible range
max: new Date(2017, 4, 1), // upper limit of visible range
editable: false,
orientation: 'top',
showCurrentTime: true,
dataAttributes: 'all'
};
// Create a Timeline
// edsa01
//var timeline = new vis.Timeline(container, items, options);
//var timeline = new vis.Timeline(container, items, groups, options);
timeline = new vis.Timeline(container, null, options);
timeline.setGroups(groups);
timeline.setItems(items);
/**
* Move the timeline a given percentage to left or right
* @param {Number} percentage For example 0.1 (left) or -0.1 (right)
*/
function move (percentage) {
var range = timeline.getWindow();
var interval = range.end - range.start;
timeline.setWindow({
start: range.start.valueOf() - interval * percentage,
end: range.end.valueOf() - interval * percentage
});
}
// attach events to the navigation buttons
document.getElementById('zoomIn').onclick = function () { timeline.zoomIn( 0.2); };
document.getElementById('zoomOut').onclick = function () { timeline.zoomOut( 0.2); };
document.getElementById('moveLeft').onclick = function () { move( 0.2); };
document.getElementById('moveRight').onclick = function () { move(-0.2); };
},
error: function (err) {
console.log('Error', err);
alert(err);
if (err.status === 0) {
alert('Failed to load data/basic.json.\nPlease run this example on a server.');
}
else {
alert('Failed to load data/basic.json.');
}
}
});
</script>
</div>
<!-- JavaScript libs are placed at the end of the document so the pages load faster -->
<script src="../assets/js/modernizr-latest.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="../assets/js/jquery.cslider.js"></script>
<script src="../assets/js/headroom.min.js"></script>
<script src="../assets/js/jQuery.headroom.min.js"></script>
<script src="../assets/js/custom.js"></script>
</body>
</html>