Commit 88b8276c authored by Julie Blanc's avatar Julie Blanc

attempt to use hooks

parent 3a494689
......@@ -14,11 +14,43 @@
<link rel="stylesheet" href="css/baseline.css" />
<link rel="stylesheet" href="css/layout.css" />
<script src="http://localhost:9090/dist/paged.polyfill.js"></script>
<script src="js/FontMetrics.js" type="text/javascript"></script>
<script src="js/baseline.js" type="text/javascript"></script>
<script>
/* with paged.js */
window.PagedConfig = {
auto: false
};
window.onload = function(){
snapBaseline({
baseline: 40,
strict: true,
showBaseline: true,
element: '.pagedjs_page'
});
window.PagedPolyfill.preview();
}
<script src="js/FontMetrics.js" type="text/javascript"></script>
<script src="js/baseline.js" type="text/javascript"></script>
/* whitout paged.js
window.onload = function(){
snapBaseline({
baseline: 40,
strict: true,
showBaseline: true,
element: 'body'
});
}
*/
</script>
......
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