fixed bug with bootstrap and tooltips

Former-commit-id: d741f3d21f
master
parent 95492e8e1d
commit 1015311548
  1. 6
      index.html
  2. 5
      js/tsne_vis.js

@ -201,10 +201,10 @@
<label for="param-corr" data-toggle="tooltip" data-placement="right" title="Tip: percentage of all points taken into account by Dimension Correlation.">Correlation threshold (%)</label> <label for="param-corr" data-toggle="tooltip" data-placement="right" title="Tip: percentage of all points taken into account by Dimension Correlation.">Correlation threshold (%)</label>
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<input id="param-corr" type="range" min="0" max="100" value="25", step="1" onchange="CalculateCorrel(true);" style="margin-left: -20px;"> <input id="param-corr" type="range" min="0" max="100" value="50", step="1" onchange="CalculateCorrel(true);" style="margin-left: -20px;">
</div> </div>
<div class="col-md-1"> <div class="col-md-1">
<output for="param-corr" id="param-corr-value" style="margin-left: -20px;">25</output> <output for="param-corr" id="param-corr-value" style="margin-left: -20px;">50</output>
</div> </div>
</div> </div>
</div> </div>
@ -342,7 +342,7 @@
<script> <script>
// Tooltip // Tooltip
$(document).ready(function(){ $(document).ready(function(){
$(this).tooltip(); $("[rel='tooltip']").tooltip();
}); });
$("#cost").html('(Unknown Iteration and Cost Values)'); $("#cost").html('(Unknown Iteration and Cost Values)');

@ -1620,7 +1620,7 @@ function CalculateCorrel(flagForSchema){ // Calculate the correlation is a funct
} }
} }
var compareThreshold = ((correlLimit/100)*arraysCleared.length) var compareThreshold = ((correlLimit/100)*arraysCleared.length)
compareThreshold = Math.ceil(compareThreshold); compareThreshold = parseInt(compareThreshold);
arraysCleared = sortByKey(arraysCleared, 5); arraysCleared = sortByKey(arraysCleared, 5);
ArrayLimit = []; ArrayLimit = [];
@ -3309,7 +3309,6 @@ function LineBar() {
// Get the checkbox // Get the checkbox
var NBViewOptions = document.getElementById("param-NB-view").value; // Get the threshold value with which the user set's the boundaries of the schema investigation var NBViewOptions = document.getElementById("param-NB-view").value; // Get the threshold value with which the user set's the boundaries of the schema investigation
NBViewOptions = parseInt(NBViewOptions); NBViewOptions = parseInt(NBViewOptions);
console.log(NBViewOptions);
// Get the output text // Get the output text
var viewport = getViewport(); // Get the main viewport width height var viewport = getViewport(); // Get the main viewport width height
@ -3331,7 +3330,7 @@ function LineBar() {
var trace = { var trace = {
x: kValuesLegend, x: kValuesLegend,
y: difference, y: difference,
name: 'Average difference', name: 'Delta(preservation)',
showlegend: true, showlegend: true,
type: 'line', type: 'line',
marker: { marker: {

Loading…
Cancel
Save