MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / checkSpecialShield

Function checkSpecialShield

js/main.js:325–337  ·  view source on GitHub ↗
(shieldIndex, specialShield)

Source from the content-addressed store, hash-verified

323 }
324
325 const checkSpecialShield = function(shieldIndex, specialShield) {
326 const shields = post.panels[currentlySelectedPanelIndex].sign.subPanels[currentlySelectedSubPanelIndex].shields;
327 const shield = shields[shieldIndex];
328 const specialShieldType = Shield.prototype.specialBannerTypes[shield.type][specialShield];
329
330 if (specialShieldType != undefined) {
331 if (shield.routeNumber.length >= specialShieldType) {
332 return true;
333 }
334 }
335
336 return false;
337 }
338
339 // Read the form and update the page by redrawing it.
340 const readForm = function() {

Callers 2

readFormFunction · 0.85
updateShieldSubformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected