Commit ae598317 authored by Julie Blanc's avatar Julie Blanc

good hook for the script

parent 88b8276c
......@@ -14,25 +14,22 @@
<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 async 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
before: function() {
snapBaseline({
baseline: 40,
strict: true,
showBaseline: true,
element: '.pagedjs_page'
});
}
};
window.onload = function(){
snapBaseline({
baseline: 40,
strict: true,
showBaseline: true,
element: '.pagedjs_page'
});
window.PagedPolyfill.preview();
}
/* whitout paged.js
window.onload = function(){
......
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