Auto open a PDF in your site with just a URL

<div id="auto_flipbook" class="auto-book"></div>

<script>

//option variable for the "auto_flipbook", we just add "option_" in front to define the variable.
var option_auto_flipbook= {

};

var pdf = (new URL(location.href)).searchParams.get('pdf');
if(pdf){
    option_auto_flipbook.source = unescape(pdf);
    jQuery("#auto_flipbook").addClass("_df_book");
}
</script>

Try opening this link


More Inquiry/Info & COMMENTS:

All DearFlip comments and discussion have been moved to
https://github.com/dearhive/dearflip-js-flipbook/discussions