re_integrated html2print boilerplate from osp
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
// ________________________________ SETUP __________________________________ //
|
||||
|
||||
|
||||
var nb_page = 15;
|
||||
var cropmarks = false;
|
||||
var debug = false;
|
||||
|
||||
// ________________________________ INIT __________________________________ //
|
||||
// Creating crop marks
|
||||
if(cropmarks){
|
||||
$("#master-page").append("<div class='crops'><div class='crop-top-left'><span class='bleed'></span></div><div class='crop-top-right'><span class='bleed'></span></div><div class='crop-bottom-right'><span class='bleed'></span></div><div class='crop-bottom-left'><span class='bleed'></span></div></div>")
|
||||
}
|
||||
|
||||
// Cloning the master page
|
||||
for (i = 1; i <= nb_page; i++){
|
||||
console.log('page',i);
|
||||
$("#master-page").clone().attr("id","page-"+i).insertBefore($("#master-page"));
|
||||
}
|
||||
$("#master-page").attr("data-width", $(".paper:first-child").width()).hide();
|
||||
|
||||
if (debug) {
|
||||
$('body').addClass("debug");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user