Iterate over passages to filter them

- Posted in Coding by
setup.getPassageNames = function() {
            const excludedNames = ['StoryInit', 'Main']; 
            const excludedTags = ['widget', 'nonono']; 
            const passageNames = [];
            
            $('tw-passagedata').each(function() {
                const name = $(this).attr('name');
                const tags = $(this).attr('tags');
                let safeTags = true;
                
                    if (excludedNames.indexOf(name) === -1) {
                      
                      for (let i = 0; i < excludedTags.length; i++) {
                        if (tags.includes(excludedTags[i])) {
                            safeTags = false;
                            break;
                        }
                      }
                      
                      if (safeTags) {
                        passageNames.push(name);
                      }  
                }
            });
        
            return passageNames; 
        };
        
        
    <<set _possiblePlaces = setup.getPassageNames()>>
    <<set _randomPassage = _possiblePlaces.random()>>

Geothermal filter cleanse

- Posted in Uncategorized by

This morning, I need to finish the last 12K words in Blackout Rogue then submit to Jennifer See for conveyance to the author. She and I had a FB Messenger discussion about the novel last night.

Later, when it warms to a bearable 40+°F, I'll go to Bobo's and clean her geothermal filter and visit a bit.