Widget: ResilienceWheel: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) (Created page with "TEST") |
Eschmidt (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>Development version of the Compass.<br><strong style="color:red;">Not ready for production!</strong> | |||
</noinclude> | |||
<includeonly> | |||
<style> | |||
:root { | |||
--compass-color: #C31980; | |||
--handbook-color: #C2902D; | |||
--safe-color: #80C319; | |||
} | |||
.plus.icon { | |||
color: currentColor; | |||
display: inline-block; | |||
position: relative; | |||
top: -.3em; | |||
margin-left: .5em; | |||
} | |||
.plus.icon::before { | |||
content: ''; | |||
position: absolute; | |||
width: 1em; | |||
height: 1px; | |||
background-color: currentColor; | |||
} | |||
.plus.icon::after { | |||
content: ''; | |||
position: absolute; | |||
width: 1em; | |||
height: 1px; | |||
background-color: currentColor; | |||
transform: rotate(90deg); | |||
transition: all 0.4s ease; | |||
} | |||
h2.opened .plus.icon::after, | |||
h3.opened .plus.icon::after { | |||
transform: rotate(0); | |||
} | |||
#rw-container { | |||
font-family: 'Open Sans'; | |||
font-size: 120%; | |||
} | |||
#rw-container h1, | |||
#rw-container h2, | |||
#rw-container h3 { | |||
font-family: 'Raleway'; | |||
font-weight: 300; | |||
letter-spacing: .06em; | |||
position: relative; | |||
} | |||
#rw-container h1 { | |||
letter-spacing: .06em; | |||
color: var(--compass-color); | |||
} | |||
#cmp-intro h1 svg { | |||
height: 2em; | |||
fill: var(--compass-color); | |||
} | |||
#rw-container h2 { | |||
margin-top: 1.5em; | |||
padding-bottom: 5px; | |||
color: var(--compass-color); | |||
cursor: pointer; | |||
} | |||
#rw-container h2::before { | |||
content: ''; | |||
display: block; | |||
position: absolute; | |||
left: 0; | |||
bottom: 0; | |||
width: 100%; | |||
height: 1px; | |||
background-color: currentColor; | |||
letter-spacing: .06em; | |||
transition: all 0.4s ease; | |||
transform: scaleX(0); | |||
transform-origin: bottom left; | |||
} | |||
#rw-container h2.opened::before { | |||
transform: scaleX(1); | |||
} | |||
#rw-container h3 { | |||
font-size: 1.4em; | |||
cursor: pointer; | |||
} | |||
.characteristic { | |||
margin-bottom: 2em; | |||
} | |||
.question { | |||
font-size: 1.1em; | |||
padding-left: 2em; | |||
cursor: pointer; | |||
margin-bottom: 1em; | |||
} | |||
.question::before { | |||
content: "• "; | |||
} | |||
.answer { | |||
margin: 1.4em; | |||
font-size: 1.2rem; | |||
} | |||
.characteristic, | |||
.question, | |||
.answer { | |||
display: none; | |||
} | |||
.characteristic.opened, | |||
.question.opened, | |||
.answer.opened { | |||
display: block; | |||
} | |||
.answer-wrapper { | |||
display: grid; | |||
grid-template-columns: 1fr; | |||
gap: 1em; | |||
} | |||
.choice { | |||
display: flex; | |||
flex-flow: row nowrap; | |||
justify-content: flex-start; | |||
align-items: center; | |||
} | |||
.choice .button { | |||
flex: 0 0 8.2em; | |||
white-space: nowrap; | |||
transition: all 250ms; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
padding: 1em; | |||
border: 1px solid currentColor; | |||
} | |||
.choice .desc { | |||
font-size: 75%; | |||
padding-left: 1em; | |||
transition: all 250ms; | |||
} | |||
.choice:hover .desc { | |||
font-weight: 600; | |||
} | |||
.choice.tech { | |||
color: var(--links-blue); | |||
} | |||
.choice.guide { | |||
color: var(--links-orange); | |||
} | |||
.choice.case { | |||
color: var(--links-cyan); | |||
} | |||
.choice.handbook { | |||
color: var(--handbook-color); | |||
} | |||
.choice.safe { | |||
color: var(--safe-color); | |||
} | |||
.choice.tech:hover .button { | |||
background-color: var(--links-blue); | |||
color: #fff; | |||
} | |||
.choice.guide:hover .button { | |||
background-color: var(--links-orange); | |||
color: #fff; | |||
} | |||
.choice.case:hover .button { | |||
background-color: var(--links-cyan); | |||
color: #fff; | |||
} | |||
.choice.handbook:hover .button { | |||
background-color: var(--handbook-color); | |||
color: #fff; | |||
} | |||
.choice.safe:hover .button { | |||
background-color: var(--safe-color); | |||
color: #fff; | |||
} | |||
</style> | |||
<div id="rw-container"> | |||
<div id="cmp-intro"> | |||
<h1> | |||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" overflow="hidden" viewBox="0 0 96 96"><defs><clipPath id="c"><path d="M199 603h96v96h-96z"/></clipPath></defs><g clip-path="url(#c)" transform="translate(-199 -603)"><path d="m277.516 645.583 2.136.654c-2.126-14.416-13.438-25.741-27.852-27.884l.691 2.143a31.072 31.072 0 0 1 25.025 25.087ZM214.36 646.146l2.14-.646a31.07 31.07 0 0 1 25.02-25l.655-2.139c-14.368 2.147-25.652 13.42-27.815 27.785ZM241.386 681.481a31.073 31.073 0 0 1-24.87-24.881l-2.151-.7a33.075 33.075 0 0 0 27.679 27.727ZM279.654 655.746l-2.141.691a31.072 31.072 0 0 1-25.032 25.068l-.691 2.143c14.424-2.14 25.744-13.475 27.864-27.902Z"/><path d="m274.8 647.888-15.134-4.924 4.837-9.38-9.431 4.806-4.872-15.208-2-6.2-1.2-3.9-1.3 4-1.9 6.2-4.784 15.134-9.416-4.832 4.82 9.429-15.12 4.776-6.3 1.9-4 1.3 4 1.3 6.1 2 15.248 4.8-4.848 9.405 9.386-4.947L243.7 678.8l1.9 6.2 1.3 4 1.3-4 2-6.2 4.9-15.3 9.4 4.9-4.828-9.351 15.028-4.859 6.2-2 4-1.3-3.9-1.1Zm-.714 4.4-15.341 4.954-2.01-3.893a9.925 9.925 0 0 1-.951 2.519l4.045 7.832-7.723-4.027a9.93 9.93 0 0 1-2.361 1.027l3.555 1.854-5 15.629-1.382 4.283-1.308-4.271-4.925-15.595 3.594-1.894a9.95 9.95 0 0 1-2.36-1.017l-7.73 4.074 4.051-7.863a9.91 9.91 0 0 1-.959-2.505l-2 3.885-15.557-4.89-4.194-1.375 4.37-1.315 15.441-4.877 1.967 3.847a9.938 9.938 0 0 1 .981-2.475l-4.088-8 8.016 4.113a9.958 9.958 0 0 1 2.523-.953l-3.92-2.013 4.894-15.474 1.27-4.148 1.316 4.072 4.966 15.518-4.011 2.044a9.922 9.922 0 0 1 2.53.955l8.1-4.125-4.147 8.043c.433.78.76 1.614.971 2.481l2.033-3.943 15.475 5.035 3.883 1.192Z"/><path d="M247 644.088a7 7 0 1 0 7 7 7.009 7.009 0 0 0-7-7Zm0 12a5 5 0 1 1 5-5 5.007 5.007 0 0 1-5 5.003Z"/></g></svg> | |||
Compass | |||
</h1> | |||
<p class="lead"> | |||
The LINKS Framework, like a compass, aims to support navigation and orientation within and across two | |||
main themes – Engaging Citizens and Improving Communication – so that disaster management | |||
organizations and relevant stakeholders can take more informed decisions on the uses of SMCS through the | |||
LINKS products. Orientation is supported by pre-defined questions that guide users towards the LINKS products. | |||
</p> | |||
</div> | |||
<div style="font-size: larger; text-align: center; margin-top: 2.5em; "> | |||
Please select the themes you are interested in below. | |||
</div> | |||
<div class="driver"> | |||
<h2>Engaging Citizens</h2> | |||
<div class="characteristic"> | |||
<h3>Collecting and Analysing Information from SMCS</h3> | |||
<div class="question" data-aspect="Social"> | |||
Whom do you want to include in your collection and analysis of information, and from whom do you | |||
want to collect and analyse information? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice case" id="q1-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Collecting and Analysing Information from SMCS”. Also the | |||
question, which vulnerable groups (disabled, migrants, minorities,…) were | |||
specifically involved in social media and crowdsourcing activities is answered. | |||
</div> | |||
</div> | |||
<div class="choice guide" id="q1-guide"> | |||
<div class="button">Guidelines</div> | |||
<div class="desc"> | |||
The Guidelines Library will provide guidance to all interested | |||
stakeholders, including disaster management organisations and practitioners, on how | |||
to collect, analyse and use information from social media and crowdsourcing. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="question" data-aspect="Socio-/Technical"> | |||
How can you collect and analyse information? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice tech" id="q2-tech"> | |||
<div class="button">Technologies</div> | |||
<div class="desc"> | |||
It allows filtering for software that covers the functions Search & | |||
Monitor and Analysis of information from social media. | |||
</div> | |||
</div> | |||
<div class="choice guide" id="q2-guide"> | |||
<div class="button">Guidelines</div> | |||
<div class="desc"> | |||
Several thematic search filters integrated within the Guidelines | |||
Library will help stakeholders retrieve relevant SMCS guidelines to better mobilise | |||
and engage citizens, for instance, the "crowdsourcing" search filter. | |||
</div> | |||
</div> | |||
<div class="choice case" id="q2-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Collecting and Analysing Information from SMCS”. Also the | |||
question, which specific functionality SMCS has been used for and how (e.g. | |||
gathering of information) is answered. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="characteristic"> | |||
<h3>Mobilising Citizens</h3> | |||
<div class="question" data-aspect="Social"> | |||
Who do you want to mobilise, and from whom would you want mobility-affiliated information? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice case" id="q3-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Mobilising Citizens”. | |||
</div> | |||
</div> | |||
<div class="choice handbook" id="q3-handbook"> | |||
<div class="button">Including Citizens Handbook</div> | |||
<div class="desc"> | |||
It provides a toolkit that targets communication to citizens with diverse needs of | |||
information on disaster management processes. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="question" data-aspect="Socio-/Technical"> | |||
How can you mobilise the citizens? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice tech" id="q4-tech"> | |||
<div class="button">Technologies</div> | |||
<div class="desc"> | |||
It allows filtering for software that covers the function Post & | |||
Schedule, which aims at publishing information on social media. | |||
</div> | |||
</div> | |||
<div class="choice guide" id="q4-guide"> | |||
<div class="button">Guidelines</div> | |||
<div class="desc"> | |||
This Guidelines Library includes relevant guidelines that will support all | |||
interested stakeholders, including disaster management organisations and | |||
practitioners, in mobilising citizens. It also includes search filters that will | |||
allow users to identify relevant sources more easily, such as the "community | |||
management" search filter. | |||
</div> | |||
</div> | |||
<div class="choice case" id="q4-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Mobilising Citizens”. | |||
</div> | |||
</div> | |||
<div class="choice safe" id="q4-safe"> | |||
<div class="button">Feel Safe</div> | |||
<div class="desc"> | |||
It is an educational platform (website) promoting the use of social media, | |||
technologies and digital education as a mean to enhance communities' resilience to | |||
disasters. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="characteristic"> | |||
<h3>Mobilising Volunteers</h3> | |||
<div class="question" data-aspect="Social"> | |||
Who do you want to mobilise (interested in volunteering), and from whom in such volunteering | |||
positions would you want mobility-affiliated information? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice guide" id="q5-guide"> | |||
<div class="button">Guidelines</div> | |||
<div class="desc"> | |||
This Guidelines Library offers guidance to all interested stakeholders on a wide | |||
range of disaster management issues, including guidance on how to further mobilise | |||
volunteers. | |||
</div> | |||
</div> | |||
<div class="choice case" id="q5-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Mobilising Volunteers”. | |||
</div> | |||
</div> | |||
<div class="choice handbook" id="q5-handbook"> | |||
<div class="button">Including Citizens Handbook</div> | |||
<div class="desc"> | |||
It provides a toolkit that targets communication to citizens with diverse needs of | |||
information on disaster management processes. | |||
</div> | |||
</div> | |||
<div class="choice safe" id="q5-safe"> | |||
<div class="button">Feel Safe</div> | |||
<div class="desc"> | |||
It is an educational platform (website) promoting the use of social media, | |||
technologies and digital education as a mean to enhance communities' resilience to | |||
disasters. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="question" data-aspect="Socio-/Technical"> | |||
How can you mobilise the volunteers? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice tech" id="q6-tech"> | |||
<div class="button">Technologies</div> | |||
<div class="desc"> | |||
It allows filtering for software that covers the function Post & | |||
Schedule, which aims at publishing information on social media. | |||
</div> | |||
</div> | |||
<div class="choice guide" id="q6-guide"> | |||
<div class="button">Guidelines</div> | |||
<div class="desc"> | |||
This Guidelines Library includes relevant guidelines that will support interested | |||
stakeholders in mobilising volunteers, and search filters that will allow users to | |||
identify relevant sources more easily, such as the search filters "VOST" and | |||
"unaffiliated volunteers" | |||
</div> | |||
</div> | |||
<div class="choice case" id="q6-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Mobilising Volunteers”. | |||
</div> | |||
</div> | |||
<div class="choice safe" id="q6-safe"> | |||
<div class="button">Feel Safe</div> | |||
<div class="desc"> | |||
It is an educational platform (website) promoting the use of social media, | |||
technologies and digital education as a mean to enhance communities' resilience to | |||
disasters. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="driver"> | |||
<h2>Improving Communication</h2> | |||
<div class="characteristic"> | |||
<h3>Making Information Accessible</h3> | |||
<div class="question" data-aspect="Social"> | |||
Who do you want to access your information, and from whom do you want to access information? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice case" id="q7-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Making Information Accessible”. | |||
</div> | |||
</div> | |||
<div class="choice handbook" id="q7-handbook"> | |||
<div class="button">Including Citizens Handbook</div> | |||
<div class="desc"> | |||
It provides a toolkit that targets communication to citizens with diverse needs of | |||
information on disaster management processes. | |||
</div> | |||
</div> | |||
<div class="choice safe" id="q7-safe"> | |||
<div class="button">Feel Safe</div> | |||
<div class="desc"> | |||
It is an educational platform (website) promoting the use of social media, | |||
technologies and digital education as a mean to enhance communities' resilience to | |||
disasters. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="question" data-aspect="Socio-/Technical"> | |||
How can you make your information accessible? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice tech" id="q8-tech"> | |||
<div class="button">Technologies</div> | |||
<div class="desc"> | |||
It allows filtering for software that covers the function Post & | |||
Schedule, which aims at publishing information on social media. | |||
</div> | |||
</div> | |||
<div class="choice case" id="q8-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Making Information Accessible”. | |||
</div> | |||
</div> | |||
<div class="choice handbook" id="q8-handbook"> | |||
<div class="button">Including Citizens Handbook</div> | |||
<div class="desc"> | |||
It provides a toolkit that targets communication to citizens with diverse needs of | |||
information on disaster management processes. | |||
</div> | |||
</div> | |||
<div class="choice safe" id="q8-safe"> | |||
<div class="button">Feel Safe</div> | |||
<div class="desc"> | |||
It is an educational platform (website) promoting the use of social media, | |||
technologies and digital education as a mean to enhance communities' resilience to | |||
disasters. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="characteristic"> | |||
<h3>Targeting Communication</h3> | |||
<div class="question" data-aspect="Social"> | |||
Who do you want to target with your communication plan? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice case" id="q9-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Targeting Communication”. | |||
</div> | |||
</div> | |||
<div class="choice handbook" id="q9-handbook"> | |||
<div class="button">Including Citizens Handbook</div> | |||
<div class="desc"> | |||
It provides a toolkit that targets communication to citizens with diverse needs of | |||
information on disaster management processes. | |||
</div> | |||
</div> | |||
<div class="choice safe" id="q9-safe"> | |||
<div class="button">Feel Safe</div> | |||
<div class="desc"> | |||
It is an educational platform (website) promoting the use of social media, | |||
technologies and digital education as a mean to enhance communities' resilience to | |||
disasters. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="question" data-aspect="Socio-/Technical"> | |||
How can you target your communication? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice tech" id="q10-tech"> | |||
<div class="button">Technologies</div> | |||
<div class="desc"> | |||
It allows filtering for software that covers the function Post & | |||
Schedule, which aims at publishing information on social media. It is also possible | |||
to filter by different platforms. | |||
</div> | |||
</div> | |||
<div class="choice guide" id="q10-guide"> | |||
<div class="button">Guidelines</div> | |||
<div class="desc"> | |||
This Guidelines Library has been specifically designed to cater to the needs of | |||
disaster management organisation and practitioners. Search filters have been | |||
integrated in the product to optimise users' experience. One of the search filters | |||
integrated in the product is "Vulnerable groups" and gathers relevant resources that | |||
can support DMO and practitioners in targeting their communication efforts towards | |||
specific groups. | |||
</div> | |||
</div> | |||
<div class="choice case" id="q10-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Targeting Communication”. | |||
</div> | |||
</div> | |||
<div class="choice safe" id="q10-safe"> | |||
<div class="button">Feel Safe</div> | |||
<div class="desc"> | |||
It is an educational platform (website) promoting the use of social media, | |||
technologies and digital education as a mean to enhance communities' resilience to | |||
disasters. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="characteristic"> | |||
<h3>Ensuring Credible Information</h3> | |||
<div class="question" data-aspect="Social"> | |||
Who do you want to share credible information with, and from whom do you receive credible | |||
information? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice case" id="q11-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Ensuring Credible Information”. | |||
</div> | |||
</div> | |||
<div class="choice safe" id="q11-safe"> | |||
<div class="button">Feel Safe</div> | |||
<div class="desc"> | |||
It is an educational platform (website) promoting the use of social media, | |||
technologies and digital education as a mean to enhance communities' resilience to | |||
disasters. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="question" data-aspect="Socio-/Technical"> | |||
How can you ensure credible information exchange? | |||
<div class="answer"> | |||
<div class="answer-wrapper"> | |||
<div class="choice tech" id="q12-tech"> | |||
<div class="button">Technologies</div> | |||
<div class="desc"> | |||
There are no mature technologies on the market yet that can examine | |||
information for credibility. | |||
</div> | |||
</div> | |||
<div class="choice guide" id="q12-guide"> | |||
<div class="button">Guidelines</div> | |||
<div class="desc"> | |||
One of the search filters is "Verification" and gathers relevant resources that can | |||
support DMO and practitioners in ensuring credibility of information. | |||
</div> | |||
</div> | |||
<div class="choice case" id="q12-case"> | |||
<div class="button">Use Cases</div> | |||
<div class="desc"> | |||
It provides helpful information from social media and crowdsourcing | |||
examples around the theme “Ensuring Credible Information”. | |||
</div> | |||
</div> | |||
<div class="choice safe" id="q12-safe"> | |||
<div class="button">Feel Safe</div> | |||
<div class="desc"> | |||
It is an educational platform (website) promoting the use of social media, | |||
technologies and digital education as a mean to enhance communities' resilience to | |||
disasters. | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<script> | |||
// Attach plus icon to the title of expandable blocks. | |||
document.querySelectorAll('.driver > h2, .characteristic > h3').forEach(el => { | |||
const icon = document.createElement('div'); | |||
icon.classList.add('plus', 'icon'); | |||
el.appendChild(icon); | |||
}); | |||
// Set up toggles for expandable blocks. | |||
document.getElementById('rw-container').addEventListener('click', event => { | |||
if (event.target.tagName === 'H2') { | |||
event.target.classList.toggle('opened'); | |||
event.target.closest('.driver').querySelectorAll('.characteristic').forEach(el => el.classList.toggle('opened')); | |||
} | |||
if (event.target.tagName === 'H3') { | |||
event.target.classList.toggle('opened'); | |||
event.target.closest('.characteristic').querySelectorAll('.question').forEach(el => el.classList.toggle('opened')); | |||
} | |||
if (event.target.classList.contains('question')) { | |||
event.target.querySelector('.answer')?.classList.toggle('opened'); | |||
} | |||
}); | |||
const search = 'Search and Monitor', | |||
post = 'Post and Schedule', | |||
analysis = 'Analysis', | |||
metrics = 'Metrics', | |||
report = 'Report', | |||
collab = 'Collaboration', | |||
interop = 'Interoperability', | |||
meta = 'Meta'; | |||
// Click actions. | |||
const actions = { | |||
'q2-tech': { | |||
filter: { | |||
functions: { | |||
[search]: true, | |||
[analysis]: true, | |||
[post]: false, | |||
[metrics]: false, | |||
[report]: false, | |||
[collab]: false, | |||
[interop]: false, | |||
[meta]: false, | |||
} | |||
} | |||
}, | |||
'q4-tech': { | |||
filter: { | |||
functions: { | |||
[search]: false, | |||
[analysis]: false, | |||
[post]: true, | |||
[metrics]: false, | |||
[report]: false, | |||
[collab]: false, | |||
[interop]: false, | |||
[meta]: false, | |||
} | |||
} | |||
}, | |||
'q6-tech': { | |||
filter: { | |||
functions: { | |||
[search]: false, | |||
[analysis]: false, | |||
[post]: true, | |||
[metrics]: false, | |||
[report]: false, | |||
[collab]: false, | |||
[interop]: false, | |||
[meta]: false, | |||
} | |||
} | |||
}, | |||
'q8-tech': { | |||
filter: { | |||
functions: { | |||
[search]: false, | |||
[analysis]: false, | |||
[post]: true, | |||
[metrics]: false, | |||
[report]: false, | |||
[collab]: false, | |||
[interop]: false, | |||
[meta]: false, | |||
} | |||
} | |||
}, | |||
'q10-tech': { | |||
filter: { | |||
functions: { | |||
[search]: false, | |||
[analysis]: false, | |||
[post]: true, | |||
[metrics]: false, | |||
[report]: false, | |||
[collab]: false, | |||
[interop]: false, | |||
[meta]: false, | |||
} | |||
} | |||
} | |||
}; | |||
const handler = event => { | |||
const answerId = event.currentTarget.id; | |||
const act = actions[answerId]; | |||
if (!actions) return; | |||
if (answerId.indexOf('tech') !== -1) { | |||
const enc = btoa(encodeURIComponent(JSON.stringify(act))); | |||
window.location.assign('/index.php/List_of_Disaster_Community_Technologies' + (act ? '?do=' + enc : '')); | |||
} | |||
if (answerId.indexOf('case') !== -1) { | |||
window.location.assign('/index.php/List_of_Use_Cases'); | |||
} | |||
if (answerId.indexOf('guide') !== -1) { | |||
window.location.assign('/index.php/List_of_Guidelines'); | |||
} | |||
if (answerId.indexOf('safe') !== -1) { | |||
window.location.assign('/index.php/Feel_Safe'); | |||
} | |||
if (answerId.indexOf('handbook') !== -1) { | |||
window.location.assign('/index.php/Including_Citizens_Handbook_-_Accessibility'); | |||
} | |||
} | |||
document.querySelectorAll('.choice').forEach(el => el.addEventListener('click', handler, { passive: true })); | |||
</script> | |||
</includeonly> |
Latest revision as of 11:01, 1 December 2022
Development version of the Compass.
Not ready for production!