Commit 8fa65a24 authored by julien's avatar julien

Merge branch 'config-update' into 'master'

Update Hyphens to use config, and add preview version

See merge request tools/experiments!1
parents cf7e0ca9 8df3a97d
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta lang="en-US">
<link href="css/main.css" rel="stylesheet">
</head>
<script src="js/paged.js"></script>
<script>
var Hyphenopoly = {
require: {
"en-us": "FORCEHYPHENOPOLY"
},
paths: {
patterndir: "./js/hyphens/patterns/",
maindir: "./js/hyphens/"
},
setup: {
classnames: {
"hyphenate": {
// hyphen: "•"
}
}
},
handleEvent: {
hyphenopolyEnd: function (e) {
let previewer = new Paged.Previewer();
previewer.preview();
}
}
};
</script>
<script src="js/hyphens/Hyphenopoly_Loader.js"></script>
<body class="hyphenate" lang="en-US">
<div id="cover"> </div>
<section data-type="chapter">
<div class="running-chapter">Running chapter</div>
<div class="running-part">Running part</div>
<p>introduction of Peru’s CCT program, Juntos, a World Bank–supported program intended to tackle the acute impacts of poverty.</p>
<p>CCTs originated in Latin America, and today they are among the most evaluated social programs on the planet. The majority of evidence on CCT impacts comes from the Mexican program now called Progresa, which is one of the earliest, and now largest, CCTs. Regular evaluations were built into the program administration at the outset, and this set a significant precedent. Today, we have a robust body of evidence that policy makers draw on to maintain and expand existing programs and to support implementation of new initiatives. Most of the available evidence derives from quantitative research, especially experimental methods such as randomized control trials and quasi-experimental methods (e.g., regression discontinuity, propensity score matching, instrumental variable, and difference-in- differences; Lagarde et al. 2007; Leroy et al. 2009; Kabeer and Waddington 2015). This literature is largely concerned with measuring primary program objectives related to household consumption and the uptake of health and education services. While acknowledging some variation related to program design, the existing quantitative evidence tells us that CCTs are, overall, effective and efficient mechanisms for altering the health- and education-seeking behavior of poor households.</p>
<p>For instance, regarding health and nutrition, we know that CCTs are effectiveat increasing utilization of health services (Gertler 2000; Attanasio et al. 2005; Levy and Ohls 2007; Galasso 2011) and increasing household food consumption (Hoddinott and Skoufias 2004; Angelucci and Attanasio 2009; Resende and Oliveira 2008; Handa et al. 2009). Where CCT programs have been implemented with the goal of reducing maternal mortality, they have effectively increased pregnant women’s use of health services, including antenatal care and in-facility births (Lim et al. 2010; Glassman et al. 2013). CCTs have been linked to a reduction in neonatal, infant, and child mortality and, in particular, deaths attributable to poverty-related causes such as malnutrition and diarrhea (Barham 2011; Rasella et al. 2013). CCTs have been shown to produce better growth outcomes in children (i.e., reduction in stunting; Gertler 2004; Fernald et al. 2010; Andersen et al. 2015; Kandpal et al. 2016) and improvement in children’s motor skills and cognitive development (Fernald et al. 2008). Both outcomes are likely related to uptake of health services and increased household consumption. CCTs have also been successfully deployed to increase vaccination rates for such diseases as tuberculosis, measles, diphtheria, pertussis, tetanus, and polio (Morris et al. 2004; Barham 2005; Barham and Maluccio 2009).</p>
<p>Regarding the aim of building human capital through education, studies show that CCTs are effective at increasing school enrollment (Schultz 2004; Sadoulet et al. 2004; Behrman et al. 2005; Cardoso and Souza 2003; Dammert 2009; Attanasio et al. 2010). As is the case with health service usage, there is some variability related to gender, age, ethnicity, and location, but overall the evidence indicates a positive </p>
</section>
<section class="chapter" data-type="chapter" contenteditable="true">
<header>
<div class="cn">1</div>
<h1 class="ct">Of the Bookshelf <br> Long title might look like</h1>
<div class="running-chapter">Of the Bookshelf</div>
<div class="cst">A few of my own</div>
</header>
<p>At the most general level, comparison is not a special method, or in any way unique to anthropology. Comparison is implicit in any method of deriving understanding through <em>explanation.</em></p>
</section>
</body>
</html>
......@@ -8,41 +8,35 @@
<script>
var Hyphenopoly = {
require: {
"en-us": "Supercalifragilisticexpialidocious"
"en-us": "FORCEHYPHENOPOLY"
},
paths: {
patterndir: "./js/hyphens/patterns/",
maindir: "./js/hyphens/"
},
setup: {
classnames: {
"hyphenate": {
// hyphen: "•"
}
}
},
handleEvent: {
hyphenopolyEnd: function (e) {
window.PagedPolyfill.preview();
}
}
};
</script>
<script src="js/hyphens/Hyphenopoly_Loader.js"></script>
<script>
function pagedjs() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "js/paged.polyfill.js";
document.getElementsByTagName("head")[0].appendChild(script);
}
window.PagedConfig = {
auto: false
};
</script>
<style>
#render {
position: fixed;
right: 3em;
top: 3em;
background: black;
color: red;
font-weight: bold;
border: 3px solid red;
padding: 0.45em 1em 0.5em;
text-transform: uppercase;
}
#render:hover {
box-shadow: 0 0 0 4px black;
}
</style>
<script src="js/paged.polyfill.js"></script>
<body class="hyphenate" lang="en-US">
<button id="render">render</button>
<div id="cover"> </div>
<section data-type="chapter">
<div class="running-chapter">Running chapter</div>
......@@ -61,12 +55,5 @@
</header>
<p>At the most general level, comparison is not a special method, or in any way unique to anthropology. Comparison is implicit in any method of deriving understanding through <em>explanation.</em></p>
</section>
<script>
function show() {
pagedjs();
document.querySelector("#render").style.display = "none";
}
document.querySelector('#render').addEventListener('click', show);
</script>
</body>
</html>
\ No newline at end of file
</html>
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment