mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
Javascript modif (Tagclouds) ...
This commit is contained in:
parent
29b24b6466
commit
6cce9f7dac
2 changed files with 59 additions and 24 deletions
|
@ -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,
|
||||||
|
@ -245,10 +245,39 @@ $(document).ready(function () {
|
||||||
g.updateOptions( { 'file': data } );
|
g.updateOptions( { 'file': data } );
|
||||||
g2.updateOptions( { 'file': data2 } );
|
g2.updateOptions( { 'file': data2 } );
|
||||||
|
|
||||||
|
|
||||||
|
// TagCanvas.Reload('myCanvas');
|
||||||
|
|
||||||
}, interval);
|
}, interval);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
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,9 +119,8 @@
|
||||||
</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>
|
||||||
|
@ -128,9 +136,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tab_body">
|
<tbody id="tab_body">
|
||||||
</tbody>
|
</tbody>
|
||||||
<table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue