1bookJson = []; 2booksOptions = {} 3 4 5function FlipbookInit(){ 6 jQuery('.flipBook').each(function() { 7 8 var bookID = jQuery(this).attr('data-book-id'); 9 var bookPDF = jQuery(this).attr('data-replace-href'); 10 11 booksOptions[bookID] = { 12 "pdf": bookPDF, 13 "template": { 14 "html": '/Htdocs/Static/flipbook/default-book-view.html', 15 "styles": [ 16 '/Htdocs/Styles/IceCubeCSS/Internal/lib/flipbook/flipbook-view.css' 17 ], 18 "links": [{ 19 "rel": 'stylesheet', 20 "href": '/Htdocs/Styles/IceCubeCSS/Internal/lib/flipbook/flipbook-fonts.css' 21 }], 22 "script": '/Scripts/IceCubeJS/Internal/lib/flipbook/default-book-view.js', 23 "sounds": { 24 "startFlip": '/Htdocs/Static/flipbook/sound/start-flip.mp3', 25 "endFlip": '/Htdocs/Static/flipbook/sound/end-flip.mp3' 26 }, 27 }, 28 "styleClb": function() { 29 jQuery('.fb3d-modal').removeClass('dark').addClass('light'); 30 }, 31 controlsProps: { 32 downloadURL: bookPDF, 33 actions: { 34 cmdSinglePage: { 35 activeForMobile:true, 36 } 37 } 38 } 39 } 40 bookJson.push(booksOptions); 41 }); 42} 43 44 45function FlipbookRun(){ 46 jQuery('a.flipBook').unbind(); 47 jQuery('a.flipBook').click(function(e) { 48 let target = jQuery(e.target); 49 while(target[0] && !target.attr('data-book-id')) { 50 target = jQuery(target[0].parentNode); 51 } 52 if(target[0]) { 53 instance.options = booksOptions[target.attr('data-book-id')]; 54 jQuery('.fb3d-modal').fb3dModal('show'); 55 } 56 57 e.preventDefault(); 58 }); 59} 60 61jQuery('.flipBook').each(function(i){ 62 jQuery(this).attr('data-book-id','book'+i); 63}); 64 65FlipbookInit(); 66 67var styleClb = function() { 68 jQuery('.fb3d-modal').removeClass('light').addClass('dark'); 69}, booksOptions; 70 71var instance = { 72 scene: undefined, 73 options: undefined, 74 node: jQuery('.fb3d-modal .mount-container') 75}; 76 77var modal = jQuery('.fb3d-modal'); 78modal.on('fb3d.modal.hide', function() { 79 instance.scene.dispose(); 80}); 81modal.on('fb3d.modal.show', function() { 82 instance.scene = instance.node.FlipBook(instance.options); 83 instance.options.styleClb(); 84}); 85 86FlipbookRun(); 87
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.