HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<br>
<ul class="accordion">
<li>
<a class="toggle" href="javascript:void(0);"> Domain 1: Managing Internal Coherence </a>
<ul class="inner">
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 1.1 </a>
<ul class="inner">
<li>
<p>Internally integrated programming: Internal mechanisms exist for joint response to forcibly displaced populations and host communities.
<br>
----------------------------------------------------------------
<br>
Which type of coherence activity does your organization most often undertake? [see handbook for discussion of typology]
</p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Intra-sectoral coordination mechanisms exist for joint programming for forcibly displaced populations and host communities (e.g. joint needs assessment, joint skill development, etc.). [Specialized Coherence]
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
Inter-sectoral coordination mechanisms exist to integrate humanitarian and development response programs. [Generalized Coherence]
</p>
</div>
</li>
</li>
</ul>
</li>
</ul>
<li>
<a class="toggle" href="javascript:void(0);">Domain 2: Managing Local External Coherence </a>
<ul class="inner">
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 2.1 </a>
<ul class="inner">
<li>
<p>Leveraging local resources on the onset of crises: Setting the building blocks for long-term solutions to forced displacement crises. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
[Onset of crises] Mechanisms are in place to connect organizations new to the crisis context (with short to mid-term solutions) to established organizations conducting long-term programming. for forcibly displaced populations.
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
[Onset of crises] Local community networks and capacities are identified to implement emergency business models (e.g., sourcing of the materials for emergency).
</p>
</div>
</li>
</ul>
</li>
<li>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 2.2 </a>
<ul class="inner">
<li>
<p>Leveraging local resources for long-term programming: Working towards sustainable outcomes to forced displacement crises.</p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
New opportunities for socio-economic inclusion of forced migrants are pursued by joining forces with local communities. [For example, some Ecuadorian communities needed more masks at the onset of COVID. COOPI used this need as an opportunity to create a job market for Venezuelans.]
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
New opportunities for socio-economic inclusion of host community members are pursued by integrating with the crisis response efforts.
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
<div class="inner">
<p>
Assessing complementary assets and capacities among both host community and forcibly displaced populations to fulfill local needs, enhance joint self-sufficiency, and socio-economic inclusion.
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #4</a>
<div class="inner">
<p>
Inter-sectoral coordination exists between sectoral working groups (e.g., between Health and Education); as indicated by references to other groups’ meeting minutes, attendance by other groups’ members for verbal updates, etc.
</p>
</div>
</li>
</li>
</li>
</ul>
</li>
</ul>
<li>
<a class="toggle" href="javascript:void(0);">Domain 3: Managing External Coherence </a>
<ul class="inner">
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 3.1 </a>
<ul class="inner">
<li>
<p>Inter-organizational coherence: Facilitated by ensuring better coordination and cooperation in response to forced migration crises. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Coordination mechanisms exist to ensure multi-sector coherence across multiple organizations [Expansive Coherence]. development coherence in forced migration response in their grant making.
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
Coordination mechanisms exist to ensure single-sector coherence across multiple organizations [Cooperative Coherence].
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
<div class="inner">
<p>
Your organization participates in the multi-organizational coordination mechanisms.
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #4</a>
<div class="inner">
<p>
Mechanisms exist to identify new and active aid programs to facilitate multi-organizational partnerships and alliances (e.g., a national aid project map).
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #5</a>
<div class="inner">
<p>
Donors prioritize coordinated response/ coherence in their grant-making activities, making explicit in their request for proposals (RFPs) the types of activities, outcomes, metrics needed.
</p>
</div>
</li>
</li>
</li>
</li>
</ul>
</li>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 3.2 </a>
<ul class="inner">
<li>
<p>Data-enabled practices and information sharing: Transferring knowledge for capacity building and fostering partnership. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Organizational relief and development coherence activity is tracked (projects that involve both forced migrants and host communities are labeled as coherence and data are tagged as coherence).
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
Organization assesses the balance of program efforts across both host community and forcibly displaced populations.
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
<div class="inner">
<p>
Organization’s indicators for coherence assessment or other monitoring procedures are shared with partners and donors for development, alignment, and adoption of standard metrics.
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #4</a>
<div class="inner">
<p>
Joint needs assessment from both host communities and forcibly displaced populations is available
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #5</a>
<div class="inner">
<p>
Organizations participates in and/or make use of joint needs assessment of both host community and forcibly displaced populations.
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #6</a>
<div class="inner">
<p>
Humanitarian and development stakeholders are in geographic proximity at the response sites to ensure coordinated decision-making and implementation
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #7</a>
<div class="inner">
<p>
Organizations participate in national, sub national, or local information sharing workshops.
</p>
</div>
</li>
</li>
</li>
</li>
<li>
</ul>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 3.3 </a>
<ul class="inner">
<li>
<p>Enhancing host country capacities: international I/NGOs work with governments to effectively implement international funding for the wellbeing of both host communities and forcibly displaced populations. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Governments are working with humanitarian partners to assess needs for international donations and development objectives [Joint needs assessment]
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
Host country governments work with humanitarian organizations to implement ODAs for long-term solutions in response to forced migration [break it down to a measurable metric]
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
<div class="inner">
<p>
Donors facilitate long-term funding for long-term solutions in opposed to funding mid-term to early-stage projects [a general orientation towards longer term funding by donors]
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #4</a>
<div class="inner">
<p>
There are established mechanisms in place for bilateral donors to coordinate with the whole of government in opposed to individual ministries. This will ensure international development and humanitarian programs are incorporated within host country's national planning and expenditures.
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #5</a>
<div class="inner">
<p>
Development organizations work with host country governments to allow access to loans and local credit unions for all migrants and forcibly displaced populations [e.g., financial inclusion]
</p>
</div>
</li>
</li>
</li>
</li>
<li>
</ul>
<li>
@import url('https://fonts.googleapis.com/css?family=Pacifico|Open+Sans:300,400,600');
* {
box-sizing: border-box;
font-family: 'Open Sans',sans-serif;
font-weight: 300;
}
a {
text-decoration: none;
text-align: center;
color: inherit;
}
p {
font-size:1.1em;
margin: 1em 0;
}
.description {
margin: 1em auto 2.25em;
}
body {
width: 100%;
min-width: 300px;
max-width: 95%;
margin: 1.5em auto;
color: #333;
}
h1 {
font-family: 'Pacifico', cursive;
font-weight: 400;
font-size: 2.5em;
}
ul {
list-style: none;
padding: 0;
.inner {
padding-left: 1em;
overflow: hidden;
display: none;
&.show {
/*display: block;*/
}
}
li {
margin: .5em 0;
a.toggle {
width: 100%;
display: block;
background: rgba(0,0,0,0.78);
color: #fefefe;
padding: .75em;
border-radius: 0.15em;
transition: background .3s ease;
&:hover {
background: rgba(0, 0, 0, 0.9);
}
}
}
}
$('.toggle').click(function(e) {
e.preventDefault();
var $this = $(this);
if ($this.next().hasClass('show')) {
$this.next().removeClass('show');
$this.next().slideUp(350);
} else {
$this.parent().parent().find('li .inner').removeClass('show');
$this.parent().parent().find('li .inner').slideUp(350);
$this.next().toggleClass('show');
$this.next().slideToggle(350);
}
});
Also see: Tab Triggers