mirror of https://github.com/CIRCL/AIL-framework
Javascript modif (Tagclouds) ...
parent
29b24b6466
commit
6cce9f7dac
|
@ -179,7 +179,7 @@ $(document).ready(function () {
|
||||||
labels: curves_labels,
|
labels: curves_labels,
|
||||||
drawPoints: false,
|
drawPoints: false,
|
||||||
showRoller: true,
|
showRoller: true,
|
||||||
rollPeriod: 10,
|
rollPeriod: 30,
|
||||||
labelsKMB: true,
|
labelsKMB: true,
|
||||||
logscale: true,
|
logscale: true,
|
||||||
//drawGapEdgePoints: true,
|
//drawGapEdgePoints: true,
|
||||||
|
@ -195,7 +195,7 @@ $(document).ready(function () {
|
||||||
labels: curves_labels2,
|
labels: curves_labels2,
|
||||||
drawPoints: false,
|
drawPoints: false,
|
||||||
showRoller: true,
|
showRoller: true,
|
||||||
rollPeriod: 10,
|
rollPeriod: 30,
|
||||||
labelsKMB: true,
|
labelsKMB: true,
|
||||||
logscale: true,
|
logscale: true,
|
||||||
//drawGapEdgePoints: true,
|
//drawGapEdgePoints: true,
|
||||||
|
@ -244,6 +244,9 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
g.updateOptions( { 'file': data } );
|
g.updateOptions( { 'file': data } );
|
||||||
g2.updateOptions( { 'file': data2 } );
|
g2.updateOptions( { 'file': data2 } );
|
||||||
|
|
||||||
|
|
||||||
|
// TagCanvas.Reload('myCanvas');
|
||||||
|
|
||||||
}, interval);
|
}, interval);
|
||||||
}
|
}
|
||||||
|
@ -251,4 +254,30 @@ $(document).ready(function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
|
var ultag = document.getElementById("ultag");
|
||||||
|
for (i=0;i<curves_labels.length;i++){
|
||||||
|
var li = document.createElement('li');
|
||||||
|
var a = document.createElement('a');
|
||||||
|
a.innerHTML = curves_labels[i];
|
||||||
|
a.style.fontSize = glob_tabvar.row1[i][1];
|
||||||
|
li.appendChild(a);
|
||||||
|
ultag.appendChild(li);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
|
var options = {
|
||||||
|
weight:true,
|
||||||
|
weightMode:"both",
|
||||||
|
noMouse:true,
|
||||||
|
textColour: '#2E9AFE'
|
||||||
|
}
|
||||||
|
TagCanvas.Start('myCanvas','',options);
|
||||||
|
TagCanvas.SetSpeed('myCanvas', [0.05, -0.15]);
|
||||||
|
} catch(e) {
|
||||||
|
// something went wrong, hide the canvas container
|
||||||
|
document.getElementById('myCanvasContainer').style.display = 'none';
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
<!-- JS -->
|
<!-- JS -->
|
||||||
<script type="text/javascript" src="{{ url_for('static', filename='js/dygraph-combined.js') }}"></script>
|
<script type="text/javascript" src="{{ url_for('static', filename='js/dygraph-combined.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/jquery.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/jquery.js') }}"></script>
|
||||||
|
<script src="{{ url_for('static', filename='js/jquery.tagcanvas.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/jquery-1.4.2.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/jquery-1.4.2.js') }}"></script>
|
||||||
<script>
|
<script>
|
||||||
function update_values() {
|
function update_values() {
|
||||||
|
@ -62,6 +63,14 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- /.sidebar-collapse -->
|
<!-- /.sidebar-collapse -->
|
||||||
<div class="table-responsive", id="queueing" style="margin-top:40px;"></div>
|
<div class="table-responsive", id="queueing" style="margin-top:40px;"></div>
|
||||||
|
|
||||||
|
<div class="table-responsive" id="myCanvasContainer" style="margin-top:40px;">
|
||||||
|
<canvas id="myCanvas">
|
||||||
|
<p>Anything in here will be replaced on browsers that support the canvas element</p>
|
||||||
|
<ul id="ultag">
|
||||||
|
</ul>
|
||||||
|
</canvas>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.navbar-static-side -->
|
<!-- /.navbar-static-side -->
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -110,29 +119,26 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="table-responsive", id="logger">
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-12">
|
||||||
<table class="table table-bordered table-hover table-striped" id="table_log">
|
<table class="table table-bordered table-hover table-striped" id="table_log">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Time</th>
|
<th>Time</th>
|
||||||
<th>Channel</th>
|
<th>Channel</th>
|
||||||
<th>Level</th>
|
<th>Level</th>
|
||||||
<th>Script Name</th>
|
<th>Script Name</th>
|
||||||
<th>Source</th>
|
<th>Source</th>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Paste name</th>
|
<th>Paste name</th>
|
||||||
<th>Message</th>
|
<th>Message</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tab_body">
|
<tbody id="tab_body">
|
||||||
</tbody>
|
</tbody>
|
||||||
<table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.row -->
|
<!-- /.row -->
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue