Difference between revisions of "Widget:CrisisCommunicationList"

From LINKS Community Center
Jump to: navigation, search
(2 intermediate revisions by the same user not shown)
Line 48: Line 48:
 
             z-index: 100;
 
             z-index: 100;
 
             padding: 2em;
 
             padding: 2em;
            width: 45vw;
 
 
             background: #fff;
 
             background: #fff;
 
             border: 1px solid var(--ccl-color);
 
             border: 1px solid var(--ccl-color);
Line 54: Line 53:
 
             box-shadow: -10px 10px 10px 5px rgb(0 0 0 / 10%);
 
             box-shadow: -10px 10px 10px 5px rgb(0 0 0 / 10%);
 
             transition: all 400ms ease-in-out;
 
             transition: all 400ms ease-in-out;
 +
        }
 +
 +
        @media only screen and (orientation: landscape) {
 +
            #cc-filters {
 +
                width: 45vw;
 +
            }
 
         }
 
         }
  
Line 264: Line 269:
  
 
         const crisisCommsQuery = '[[Category:Crisis Communication]]'
 
         const crisisCommsQuery = '[[Category:Crisis Communication]]'
 +
            + '|limit=500'
 
             + '|?' + PHASE_PROP
 
             + '|?' + PHASE_PROP
 
             + '|?' + TYPE_PROP
 
             + '|?' + TYPE_PROP
Line 332: Line 338:
 
                 : true;
 
                 : true;
 
             const scenarioCheck = filterState.scenario
 
             const scenarioCheck = filterState.scenario
                 ? filterState.scenario.every(event => crisisComm[SCENARIO_PROP].includes(event))
+
                 ? crisisComm[SCENARIO_PROP].some(event => filterState.scenario.includes(event))
 
                 : true;
 
                 : true;
 
             const phaseCheck = filterState.phases
 
             const phaseCheck = filterState.phases

Revision as of 15:49, 6 May 2024

Current version of the Crisis Communication Library.
Currently in use – do not modify!