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: International support for durable solutions and sustainable outcomes in the host country : Promoting international coherence policies such as CRRF, Global Compact for Refugees and Migrants </a>
<ul class="inner">
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 1.1 </a>
<ul class="inner">
<li>
<p>Policy Transposition: International policies for forced migration designed to enhance relief and development coherence are translated into the host country government policies.</p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Regional inter-governmental policies are established for protection, human mobility, repatriation, and resettlement of forcibly displaced persons among nations with common refugee crises.
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
The host country government participates in international periodic forums to align its policies with the global policies on forced migration.
</p>
</div>
</li>
</li>
</li>
</ul>
</li>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 1.2 </a>
<ul class="inner">
<li>
<p>Policies for Combined Hum/Dev Strategies: To establish mutually agreed outcomes and sustainable solutions at the onset of forced migration crisis. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Humanitarian and development shared commitment towards the wellbeing of refugees, migrants, and host communities is reflected in public statements, press releases, or reports.
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
Coordination policies are established between humanitarian and development actors (UN partners, I/NGOs, donors) to achieve sustainable solutions for the self-reliance of forcibly displaced populations and host comunities post crises.
</p>
</div>
</li>
</li>
</li>
</ul>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 1.3 </a>
<ul class="inner">
<li>
<p>Donors support program extension and transitional programming: Donors ensure sustainable programming in response to forced migration. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Humanitarian donors have policies for extending project timelines for long-term and sustainable programming in response to the forced migrations crises.
</p>
</div>
</ul>
</li>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 1.4 </a>
<ul class="inner">
<li>
<p>Flexible Funding from International Donors: Humanitarian and development funds are used to aid both forcibly displaced populations and the host communities.</p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Host country Policies: Host country government has laid out policies for equitable split of international humanitarian and development funds across both forcibly displaced and host community populations.
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
Development Funding Policies: Bilateral and multilateral donors have established policies to engage with the host country national government for distribution of aid across both forcibly displaced and host community populations.
</p>
</div>
</li>
</li>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
<div class="inner">
<p>
Humanitarian funding Policies: Bilateral and multilateral donors have established policies to split allocated humanitarian funds to both forcibly displaced and host community populations. </p>
</div>
</li>
</li>
</li>
</ul>
</li>
</ul>
<li>
<a class="toggle" href="javascript:void(0);">Domain 2: Host Country Capacities in improving accountability and sustainable programming in response to forced migration crises. </a>
<ul class="inner">
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 2.1 </a>
<ul class="inner">
<li>
<p>Reinforcing host country capacities: To ensure timely emergency response and development programming.</p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Comprehensive Refugee Response Plan is adopted and led by the host country government to improve country capacities in response to forced migration crises.
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
A national entity is designated to establish multi-stakeholder policies regarding the rights for all forcibly displaced populations
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
<div class="inner">
<p>
A national entity exists to safeguard access to rights for all forcibly displaced populations.
</p>
</div>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #4</a>
<div class="inner">
<p>
National and inter-ministerial agreements are in place to incorporate humanitarian response to forced migration within national development plans and ministerial response plans.
</p>
</div>
</li>
</li>
</li>
</ul>
</li>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 2.2 </a>
<ul class="inner">
<li>
<p>Including forcibly displaced populations within host country’s inequality and poverty reduction plans: Policies include both forcibly displaced persons and host communities. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Progress toward the Global Compact on Refugees is reported and aligned with the Sustainable Development Goal Target 10.7 by reporting its MGI (Migration Governance Index).
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
SDG data reports are disaggregated by forced displacement to address the mandates for the global compact for refugees.
</p>
</div>
</li>
</li>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
<div class="inner">
<p>
Forcibly displaced populations are included in the host country governments' social protections schemes to facilitate access to rights (e.g. education, health, labor, and livelihoods).
</p>
</div>
</li>
</li>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #4</a>
<div class="inner">
<p>
Ongoing development plans allow for the integration of new and emerging humanitarian programs to forced migration crises.
</p>
</div>
</li>
</li>
</li>
</ul>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 2.3 </a>
<ul class="inner">
<li>
<p>Documented Commitment: Publiy available joint policies towards relief and development coherence. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
<p>Documented Commitment: Publiy available joint policies towards relief and development coherence. </p>
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
Priorities articulated in country's emergency response programs to forced migration crises are reflected in the national development plan and strategic reports.
</p>
</div>
</li>
</li>
</li>
</li>
<li>
<li>
</li>
<li>
<li>
</ul>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 2.4 </a>
<ul class="inner">
<li>
<p>Gender responsive policies: Formal mechanisms exist to ensure forced migration policies are gender responsive </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
National development programs address issues of gender biases and includes gender equity programs for all populations including displaced populations, refugees, migrants, and host communities.
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
Gender inclusion and equity goals address both host communities and refugees and are implemented on sectoral (WASH, Education, Health, Protection) levels.
</p>
</div>
</li>
</li>
</li>
</li>
</ul>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 2.5 </a>
<ul class="inner">
<li>
<p>Evidence-based decision making: The national government policies for forced migration response are adaptive to evidence-based decision-making practices. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
National government census data are disaggregated by migration status and represent all forcibly displaced populations.
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
The national census includes the demographics of forcibly displaced populations disaggregated by age, sex, origin, and population type as they change through three mechanisms (natural increase, migration status, changes in administrative status).
</p>
</div>
</li>
</li>
</li>
</li>
</ul>
<li>
<a href ="#" class="toggle" style="background-color: #8B4513">
Goal 2.6 </a>
<ul class="inner">
<li>
<p>Information Sharing for Accountability: Ensure responsibility and accountability towards forcibly displaced populations and host communities. </p>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #1</a>
<div class="inner">
<p>
Data sharing is driven by standardized policies that dictate the scope, intended use, consequences, and challenges of data sharing.
</p>
</div>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #2</a>
<div class="inner">
<p>
Data collection and sharing practices adhere to standardized policies that ensure the protection of privacy and rights of all forcibly displaced persons and host communities.
</p>
</div>
</li>
</li>
</li>
<li>
<a href="#" class="toggle" style="background-color: #2b6684">Metric #3</a>
<div class="inner">
<p>
The national government facilitates coherence-related data sharing practices across all humanitarian organizations and national ministries.
</p>
</div>
</li>
</li>
</li>
</li>
<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