1/* 2 FlippingBook Object 3 0.5.13.3 4*/ 5 6function FlippingBook(book_id) { 7 this.id = book_id; 8 this.pages = []; 9 this.enlargedImages = []; 10 this.pageLinks = []; 11 12 this.stageWidth = "100%"; 13 this.stageHeight = "480"; 14 15 this.settings = { 16 bookWidth: 640, 17 bookHeight: 480, 18 pagesSet: this.pages, 19 enlargedImagesSet: this.enlargedImages, 20 pageLinksSet: this.pageLinks, 21 scaleContent: true, 22 preserveProportions: false, 23 centerContent: true, 24 hardcover: false, 25 hardcoverThickness: 3, 26 hardcoverEdgeColor: 0xFFFFFF, 27 highlightHardcover: true, 28 frameWidth: 0, 29 frameColor: 0xFFFFFF, 30 frameAlpha: 100, 31 firstPageNumber: 1, 32 autoFlipSize: 50, 33 navigationFlipOffset: 30, 34 flipOnClick: true, 35 handOverCorner: true, 36 handOverPage: true, 37 alwaysOpened: false, 38 staticShadowsType: "Symmetric", // Asymmetric, Symmetric, Default 39 staticShadowsDepth: 1, 40 staticShadowsLightColor: 0xFFFFFF, // works for "Symmetric" shadows only 41 staticShadowsDarkColor: 0x000000, 42 dynamicShadowsDepth: 1, 43 dynamicShadowsLightColor: 0xFFFFFF, // works for "dark" pages only 44 dynamicShadowsDarkColor: 0x000000, 45 moveSpeed: 2, 46 closeSpeed: 3, 47 gotoSpeed: 3, 48 rigidPageSpeed: 5, 49 flipSound: "", 50 hardcoverSound: "", 51 preloaderType: "Progress Bar", // "Progress Bar", "Round", "Thin", "Dots", "Gradient Wheel", "Gear Wheel", "Line", "Animated Book", "None"
52 pageBackgroundColor: 0x99CCFF, 53 loadOnDemand: true, 54 allowPagesUnload: false, 55 showUnderlyingPages: false, 56 playOnDemand: true, 57 freezeOnFlip: false, 58 darkPages: false, 59 smoothPages: false, 60 rigidPages: false, 61 flipCornerStyle: "manually",// "first page only", "each page", "manually" 62 flipCornerPosition: "top-right",// "bottom-right","top-right","bottom-left","top-left" 63 flipCornerAmount: 70, 64 flipCornerAngle: 45, 65 flipCornerRelease: true, 66 flipCornerVibrate: true, 67 flipCornerPlaySound: false, 68 fullscreenEnabled: true, 69 zoomEnabled: true, 70 zoomImageWidth: 900, 71 zoomImageHeight: 1165, 72 zoomOnClick: true, 73 zoomUIColor: 0x8f9ea6, 74 zoomHint: "Double click for zooming.", 75 centerBook: true, 76 useCustomCursors: false, 77 dropShadowEnabled: true, 78 dropShadowHideWhenFlipping: true, 79 backgroundColor: 0xFFFFFF, 80 backgroundImage: "", 81 backgroundImagePlacement: "fit", // "top left", "center", "fit" 82 printEnabled: true, 83 printTitle: "Print Pages", 84 downloadURL: "", 85 downloadTitle: "Download PDF", 86 downloadSize: "Size: 4.7 Mb", 87 downloadComplete: "Complete", 88 navigationBarPlacement: "bottom", // "top", "bottom" 89 slideshowAutoPlay: false, 90 slideshowDisplayDuration: 5000, 91 goToPageField: true, 92 slideshowButton: true, 93 firstLastButtons: true, 94 extXML: "" 95 }; 96 97 this.containerId = "fbContainer-" + this.id; 98}; 99 100FlippingBook.prototype.create = function(swfpath) { 101 this.settings.pagesSet = this.pages.join("|,"); 102 this.settings.enlargedImagesSet = this.enlargedImages.join("|,"); 103 this.settings.pageLinksSet = this.pageLinks.join("|,"); 104 swfobject.embedSWF(swfpath, this.containerId, this.stageWidth, this.stageHeight, "8.0.0", "js/expressInstall.swf", this.settings, { 105 allowFullScreen: "true", 106 allowScriptAccess: "always", 107 menu: "false", 108 bgcolor: "#" + this.settings.backgroundColor.toString(16), 109 wmode: "opaque" 110 }); 111}; 112 113FlippingBook.prototype.onPutPage = function( leftPageNumber, rightPageNumber ) { 114 jQuery("#fb_leftPageDescription_"+this.settings.uniqueSuffix).slideUp("slow"); 115 if ((leftPageNumber != undefined) && (jQuery("#fb_page_"+this.settings.uniqueSuffix+"_"+leftPageNumber).html().length > 0)) { 116 jQuery("#fb_leftPageDescription_"+this.settings.uniqueSuffix).html(jQuery("#fb_page_"+this.settings.uniqueSuffix+"_"+leftPageNumber).html()); 117 jQuery("#fb_leftPageDescription_"+this.settings.uniqueSuffix).slideDown("slow"); 118 } 119 jQuery("#fb_rightPageDescription_"+this.settings.uniqueSuffix).slideUp("slow"); 120 if ((rightPageNumber != undefined) && (jQuery("#fb_page_"+this.settings.uniqueSuffix+"_"+rightPageNumber).html().length > 0)) { 121 jQuery("#fb_rightPageDescription_"+this.settings.uniqueSuffix).html(jQuery("#fb_page_"+this.settings.uniqueSuffix+"_"+rightPageNumber).html()); 122 jQuery("#fb_rightPageDescription_"+this.settings.uniqueSuffix).slideDown("slow"); 123 } 124}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.