Difference between revisions of "Widget:RuneDisp"

From Official Runecraft Wiki
Line 26: Line 26:
 
const select = document.querySelector('#layer');
 
const select = document.querySelector('#layer');
  
var children = document.getElementById("layer").childElementCount;
+
// var children = document.getElementById("layer").childElementCount;
  
 
modelViewerLayers.addEventListener('load', () => {
 
modelViewerLayers.addEventListener('load', () => {
  
if (children < runefiles.length) {
+
//clear BS
 +
 
 +
 
 
//Set default
 
//Set default
 
const option = document.createElement('option');
 
const option = document.createElement('option');
 +
option.innerHTML = '';
 
option.value = 'default';
 
option.value = 'default';
 
option.textContent = 'Full Rune';
 
option.textContent = 'Full Rune';
Line 50: Line 53:
  
 
});
 
});
 
}
 
  
 
select.addEventListener('input', (event) => {
 
select.addEventListener('input', (event) => {

Revision as of 18:07, 14 January 2022