initFunctions[initFunctions.length] = function createBook()
{
console.log("createBook starting...");
$("book").each(function() {
var bookhtml = '
';
var base_url = $( this ).attr("base_url");
var file_extension = $( this ).attr("file_extension");
var first_page = $( this ).attr("first_page");
var last_page = $( this ).attr("last_page");
for (i = first_page; i <= last_page; i++)
{
bookhtml += '';
}
bookhtml += '
';
$( this ).html(bookhtml);
});
console.log(" tags transformed in DOM.");
$('.flipbook').turn(
{
gradients: true, // Enable gradients
autoCenter: true, // Auto center this flipbook
acceleration:true //acceleration on
}
);
console.log("turn.js started.");
console.log("createBook finished.");
};