Widget: Compass: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 676: Line 676:


             if (answerId.indexOf('tech') !== -1) {
             if (answerId.indexOf('tech') !== -1) {
                // Action takes us to Tech Library
                 const enc = btoa(encodeURIComponent(JSON.stringify(act)));
                 const enc = btoa(encodeURIComponent(JSON.stringify(act)));
                 window.location.assign('/index.php/List_of_Disaster_Community_Technologies' + (act ? '?do=' + enc : ''));
                 window.location.assign('/index.php/List_of_Disaster_Community_Technologies' + (act ? '?do=' + enc : ''));
            }
            if (answerId.indexOf('guide') !== -1) {
                window.location.assign('/index.php/List_of_Guidelines');
             }
             }


             if (answerId.indexOf('safe') !== -1) {
             if (answerId.indexOf('safe') !== -1) {
                // Action takes us to Feel Safe
                 window.location.assign('/index.php/Feel_Safe');
                 window.location.assign('/index.php/Feel_Safe');
            }
            if (answerId.indexOf('handbook') !== -1) {
                window.location.assign('/index.php/Citizens_Handbook_-_Accessibility');
             }
             }
         }
         }

Revision as of 15:52, 24 November 2022

Development version of the Compass.
Not ready for production!