Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
James committed Apr 9, 2024
1 parent d59e4bf commit b5a3b50
Show file tree
Hide file tree
Showing 45 changed files with 47 additions and 42 deletions.
Binary file removed js/mimsOnline/._DragControls.js
Binary file not shown.
Binary file removed js/mimsOnline/._GLTFExporter.js
Binary file not shown.
Binary file removed js/mimsOnline/._OrbitControls.js
Binary file not shown.
Binary file removed js/mimsOnline/._codemirror
Binary file not shown.
Binary file removed js/mimsOnline/._examples
Binary file not shown.
Binary file removed js/mimsOnline/._images
Binary file not shown.
Binary file removed js/mimsOnline/._math.js
Binary file not shown.
Binary file removed js/mimsOnline/._math.min.js
Binary file not shown.
Binary file removed js/mimsOnline/._mims-doc
Binary file not shown.
Binary file removed js/mimsOnline/._mims3DView.js
Binary file not shown.
Binary file removed js/mimsOnline/._mimsBrowser.js
Binary file not shown.
Binary file removed js/mimsOnline/._mimsControler.js
Binary file not shown.
Binary file removed js/mimsOnline/._mimsGenerators.js
Binary file not shown.
Binary file removed js/mimsOnline/._mimsOnline.css
Binary file not shown.
Binary file removed js/mimsOnline/._old
Binary file not shown.
Binary file removed js/mimsOnline/._split.js
Binary file not shown.
Binary file removed js/mimsOnline/._three.min.js
Binary file not shown.
Binary file removed js/mimsOnline/._three.module.js
Binary file not shown.
Binary file removed js/mimsOnline/codemirror/._active-line.js
Binary file not shown.
Binary file removed js/mimsOnline/codemirror/._addon
Binary file not shown.
Binary file removed js/mimsOnline/codemirror/._lib
Binary file not shown.
Binary file removed js/mimsOnline/codemirror/._mims-online.js
Binary file not shown.
Binary file removed js/mimsOnline/codemirror/._mims-online_V2.js
Binary file not shown.
Binary file removed js/mimsOnline/codemirror/._mode
Binary file not shown.
Binary file removed js/mimsOnline/examples/._basicMass.mdl
Binary file not shown.
Binary file removed js/mimsOnline/examples/._basicMass.mdl.html
Binary file not shown.
Binary file removed js/mimsOnline/examples/._bouncingMass.html
Binary file not shown.
Binary file removed js/mimsOnline/examples/._bouncingMass.mdl
Binary file not shown.
Binary file removed js/mimsOnline/examples/._bouncingOscillator.html
Binary file not shown.
Binary file removed js/mimsOnline/examples/._bouncingOscillator.mdl
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed js/mimsOnline/examples/._cube.html
Binary file not shown.
Binary file removed js/mimsOnline/examples/._cube.mdl
Binary file not shown.
Binary file removed js/mimsOnline/examples/._fallingMass.html
Binary file not shown.
Binary file removed js/mimsOnline/examples/._fallingMass.mdl
Binary file not shown.
Binary file removed js/mimsOnline/examples/._plate.html
Binary file not shown.
Binary file removed js/mimsOnline/examples/._plate.mdl
Binary file not shown.
Binary file removed js/mimsOnline/examples/._reboundMass.html
Binary file not shown.
Binary file removed js/mimsOnline/examples/._reboundMass.mdl
Binary file not shown.
Binary file removed js/mimsOnline/examples/._ring.html
Binary file not shown.
Binary file removed js/mimsOnline/examples/._ring.mdl
Binary file not shown.
Binary file removed js/mimsOnline/examples/._spiral.html
Binary file not shown.
Binary file removed js/mimsOnline/examples/._spiral.mdl
Binary file not shown.
89 changes: 47 additions & 42 deletions js/mimsOnline/mimsControler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1535,6 +1535,53 @@ document.getElementById("genericFrcInput_btn").addEventListener('click', functio




var rangeSlider = function(){
var slider = $('.continuousSlider'),
range = $('.continuousSlider_range'),
value = $('.continuousSlider_value');

var minp, maxp, minv, maxv, scale;
minp = 1 ;
maxp = 100 ;

range.each(function(){
// position will be between 0 and 100
minp = $(this).attr('min');
maxp = $(this).attr('max');
// The result should be between 100 an 10000000
minv = Math.log($(this).attr('value')/100) ;
maxv = Math.log($(this).attr('value')*100) ;
// calculate adjustment factor
scale = (maxv-minv) / (maxp-minp);
$(this).val((Math.log($(this).attr('value'))-Math.log(minv) / scale + minp));
});

range.on('input', function(){
minp = $(this).attr('min');
maxp = $(this).attr('max');
// position will be between 0 and 100
// The result should be between 100 an 10000000
minv = Math.log($(this).attr('value')/100);
maxv = Math.log($(this).attr('value')*100);
// calculate adjustment factor
scale = (maxv-minv) / (maxp-minp);
$(this).next(value).html(Math.exp(minv + scale*(this.value-minp)).toFixed(10));
//$(this).next(value).html(this.value);
});

slider.each(function(){

value.each(function(){
var value = $(this).prev().attr('value');
$(this).html(value);
});
});
};




function generateParametersControls() {

resetParametersControls();
Expand Down Expand Up @@ -1628,48 +1675,6 @@ document.getElementById("zfactorinput").addEventListener("input", function() {



var rangeSlider = function(){
var slider = $('.continuousSlider'),
range = $('.continuousSlider_range'),
value = $('.continuousSlider_value');

var minp, maxp, minv, maxv, scale;
minp = 1 ;
maxp = 100 ;

range.each(function(){
// position will be between 0 and 100
minp = $(this).attr('min');
maxp = $(this).attr('max');
// The result should be between 100 an 10000000
minv = Math.log($(this).attr('value')/100) ;
maxv = Math.log($(this).attr('value')*100) ;
// calculate adjustment factor
scale = (maxv-minv) / (maxp-minp);
$(this).val((Math.log($(this).attr('value'))-Math.log(minv) / scale + minp));
});

range.on('input', function(){
minp = $(this).attr('min');
maxp = $(this).attr('max');
// position will be between 0 and 100
// The result should be between 100 an 10000000
minv = Math.log($(this).attr('value')/100);
maxv = Math.log($(this).attr('value')*100);
// calculate adjustment factor
scale = (maxv-minv) / (maxp-minp);
$(this).next(value).html(Math.exp(minv + scale*(this.value-minp)).toFixed(10));
//$(this).next(value).html(this.value);
});

slider.each(function(){

value.each(function(){
var value = $(this).prev().attr('value');
$(this).html(value);
});
});
};

function resetParametersControls(){
document.getElementById("sim_PhysicalParametersControls").innerHTML = "";
Expand Down

0 comments on commit b5a3b50

Please sign in to comment.