Skip to content
项目

dearhive/dearflip-js-flipbook

在 GitHub 查看

关于

DearFlip - 3D FlipBook JS/jQuery 插件。使用 JavaScript / jQuery 创建 3D 翻页书或 PDF 翻页书

效率与自动化

这些数字如何统计

实测星标增长

24小时
-1
7天
-1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Welcome to DearFlip Repository

This repo is public for the purpose of:

  1. Lite(non-commercial) old version of DearFlip js/jQuery Flipbook v1.7 (commercial version is 2.x)
  2. Discussion for all the versions of DearFlip - Wordpress/js/Desktop/chrome extension/desktop edition

Note: DearFlip is a front end javascript pdf viewer/flipbook solution and is also implemented in Wordpress/chrome/joomla for it's easy use in their respective environment.

DearFlip jQuery/JS Flipbook Plugin

Create realistic 3D FlipBook from PDF or images using jQuery powered DearFlip plugin. DearFlip creates PDF FLipbooks and Image Flipbook with 3D modes and 2D modes. This is JS/jQuery port of DearFlip FLipbook/PDF Viewer solution.

Related Solutions: jQuery flipbook, JS flipbook, PDF flipbook, JavaScript flipbook

License

Attribution-NonCommercial-NoDerivatives 4.0 International

License: CC BY-NC-ND 4.0

You are free to:

Share — copy and redistribute the material in any medium or format The licensor cannot revoke these freedoms as long as you follow the license terms.

Under the following terms:

  1. Attribution — You must give appropriate credit , provide a link to the license, and indicate if changes were made . You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  2. NonCommercial — You may not use the material for commercial purposes .
  3. NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
  4. No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.

In Normal Words: This is a non-commercial Lite Version. You are free to use for only personal non-profit use, testing/trial not otherwise. For commercial versions follow the links below: jQuery/JS Flipbook or WordPress Flipbook

For Desktop versions follow the links below: PDF Viewer Google Chrome Extension For Wordpress Demo: Get DearFlip lite Wordpress : 3D Flipbook from Wordpress Repository

Usage

File Structure

DearFlip, also known as dFlip, flipbook plugin is jQuery based. Basically you can copy the files in folder to your working directory. We recommend copying the whole dflip folder as it is.

dflip/
  ├── css/
  ├── fonts/(fonts folder are not used since 2.0)
  ├── images/
  ├── sound/
  └── js/
      └── libs/
// In older versions, before v1.4.2, dflip folder was expected in the root where the html file is served.
// if not the location was required to be indicated.
// As of version 1.4.2, (not required in normal conditions, will be auto-detected)
var dFlipLocation = "http://www.yoursite.com/dflip/";

Basic File Tempate

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic HTML Template</title>

<!-- Flipbook StyleSheets -->
<link href="http://www.yoursite.com/dflip/css/dflip.min.css" rel="stylesheet" type="text/css">
<!-- themify-icons.min.css is not required in version 2.0 and above -->
<link href="http://www.yoursite.com/dflip/css/themify-icons.min.css" rel="stylesheet" type="text/css">

</head>
<body>
<div class="_df_book" id="flipbok_example" source="location of pdf.pdf"></div>

<!-- Scripts -->
<script src="http://www.yoursite.com/dflip/js/libs/jquery.min.js" type="text/javascript"></script>
<script src="http://www.yoursite.com/dflip/js/dflip.min.js" type="text/javascript"></script>

</body>
</html>

Example HTML Syntax

<!--Embedded Usage--> 
<div class="_df_book" source="http://www.yoursite.com/books/intro.pdf"></div>

<!--Button Lightbox Usage--> 
<div class="_df_button" source="http://www.yoursite.com/books/intro.pdf"> Intro Book</div>

<!--Thumbnail Lightbox Usage Images-->
<div class="_df_thumb" source="http://www.yoursite.com/books/intro.pdf"
     tags="3d,images" thumb="http://www.yoursite.com/books/thumbs/intro.jpg">Images</div>

Extending with options

<div class="_df_button" id="button_pdf">Dflip Manual</div>
<div class="_df_button" id="button_image">Dflip Pictures</div>

//Just add option_ in front of the element id to create the required option variable
var option_button_pdf = {
    source:'http://www.yoursite.com/someplace/pdf-to-be-loaded.pdf',
    webgl:true,
    height:500
    //we recommend using default auto height
};

var option_button_image = {
     source : ['http://www.yoursite.com/books/thumbs/alice.jpg',
               'http://www.yoursite.com/books/thumbs/dflip.jpg',
               'http://www.yoursite.com/books/thumbs/nightangle.jpg'],
     webgl:true
};

More documentation at DearFlip Flipbook JS/jQuery Docs

Notes For AI for first time integration

Use the files from cdn https://www.jsdelivr.com/package/npm/@dearhive/dearflip-jquery-flipbook

Make sure to include dflip.min.js, dflip.min.css and themify.min.css

Do not use jQuery methods and use HTML and javascript methods.

PDF Flipbook example

<div class="_df_book" id="book_pdf"></div>

//Just add option_ in front of the element id to create the required option variable
var option_book_pdf = {
     source:'http://www.yoursite.com/someplace/pdf-to-be-loaded.pdf',
     webgl:true
};

Image Flipbook example

<div class="_df_book" id="book_image"></div>

//Just add option_ in front of the element id to create the required option variable
var option_book_image = {
     source : ['http://www.yoursite.com/books/thumbs/alice.jpg',
               'http://www.yoursite.com/books/thumbs/dflip.jpg',
               'http://www.yoursite.com/books/thumbs/nightangle.jpg'],
     webgl:true
};

探索相关项目

加载中…