rimesso spinner
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user