rimesso spinner

This commit is contained in:
zaccaria.majid
2023-10-04 08:37:17 +02:00
parent dbe07c003e
commit e4265b5428
2 changed files with 16 additions and 16 deletions
+9 -9
View File
@@ -22,20 +22,20 @@
_dimX : X,
_dimY: Y,
_fileName: "Cubo.3mf",
_showInfiniteGrid: false
_showLimitedGrid: true
}
WGL.initcall(options);
document.getElementById("refre_slider").oninput = function() {
myFunction()
};
//document.getElementById("refre_slider").oninput = function() {
// myFunction()
//};
function myFunction() {
var val = document.getElementById("refre_slider").value //gets the oninput value
console.log(val)
WGL.refreshcall(1, val)
}
//function myFunction() {
// var val = document.getElementById("refre_slider").value //gets the oninput value
// console.log(val)
// WGL.refreshcall(1, val)
//}
document.getElementById('btnRef').onclick = function() {
+7 -7
View File
@@ -26,11 +26,11 @@ var layer_list = [];
const GLBox3D = new THREE.Box3(); // Box3D globale delle geometrie
//init();
class webgl_original {
async initcall({ _dimX, _dimY, _fileName, _showInfiniteGrid}) {
async initcall({ _dimX, _dimY, _fileName, _showLimitedGrid}) {
m_divStartDimX = _dimX;
m_divStartDimY = _dimY;
fName = _fileName;
m_bGrid_v1 = _showInfiniteGrid;
m_bGrid_v1 = _showLimitedGrid;
//console.log(fName)
setLoaders();
await init();
@@ -96,11 +96,11 @@ function setLoaders() {
//if (useInSlider) {
mother.appendChild(sliderInput);
sliderInput.setAttribute('id', 'refre_slider');
sliderInput.setAttribute('hidden', true);
sliderInput.type = 'range';
sliderInput.min = '0';
//mother.appendChild(sliderInput);
//sliderInput.setAttribute('id', 'refre_slider');
//sliderInput.setAttribute('hidden', true);
//sliderInput.type = 'range';
//sliderInput.min = '0';
//}
mother.appendChild(spinContainer);
//document.body.appendChild(spinContainer);