PageSourceSearch

https://chcweb.com/wp-content/plugins/real3d-flipbook/js/flipbook.swipe.min.js?ver=3.36

js chcweb.com collected 2026-10-02 11:26:41 UTC 18,804 bytes, 6 lines download raw bytes

1/*
2Real3D FlipBook
3version 3.35
4author http://codecanyon.net/user/creativeinteractivemedia/portfolio?ref=creativeinteractivemedia
5*/
6var FLIPBOOK=FLIPBOOK||{};FLIPBOOK.BookSwipe=function(i,t,e,s){this.options=s,this.main=e,this.singlePage=s.singlePageMode,this.singlePage&&(this.view=1),this.pageWidth=this.options.pageWidth,this.pageHeight=this.options.pageHeight,this.slides=[],this.pagesArr=[],this.leftPage=0,this.rightPage=0,this.rotation=0,this.prevPageEnabled=!1,this.setRightIndex(s.rightToLeft?s.pages.length:0),this.currentSlide=0,this.flipping=!1,this.wrapper=t,this.$wrapper=jQuery(t),this.scroller=i,this.$scroller=jQuery(this.scroller).removeClass("book").addClass("flipbook-carousel-scroller"),this.iscroll=new IScroll(this.wrapper,{snap:!0,snapSpeed:200*this.options.pageFlipDuration,freeScroll:!0,scrollX:!0,scrollY:!1,preventDefault:!1,eventPassthrough:"vertical"});var o,h=this;this.zoomDisabled=!1,this.iscroll.on("scrollStart",function(){h.zoomDisabled=!0}),this.iscroll.on("scrollEnd",function(){h.zoomDisabled=!1});for(var n=0;n<3;n++){var r=jQuery('<div class="flipbook-carousel-slide"><div class="slide-inner"/></div>"').appendTo(this.$scroller);this.slides.push(r)}
6this.slides[0].iscroll=new IScroll(this.slides[0][0],{zoom:!0,scrollX:!0,scrollY:!0,freeScroll:!0,keepInCenterV:!0,keepInCenterH:!0,preventDefault:!1}),this.slides[2].iscroll=new IScroll(this.slides[2][0],{zoom:!0,scrollX:!0,scrollY:!0,freeScroll:!0,keepInCenterV:!0,keepInCenterH:!0,preventDefault:!1}),this.slides[1].iscroll=new IScroll(this.slides[1][0],{zoom:!0,scrollX:!0,scrollY:!0,freeScroll:!0,keepInCenterV:!0,keepInCenterH:!0,preventDefault:!1});for(n=0;n<3;n++)this.slides[n].iscroll.on("zoomEnd",function(){var i=s.main.zoom;this.options.eventPassthrough=i>1?"":"vertical",this.options.freeScroll=i>1,this.refresh()});this.resizeInnerSlides();for(s.rightToLeft,s.numPages,s.pdfMode,n=0;n<s.numPages;n++)o=new FLIPBOOK.PageSwipe(e,s,n,s.pages[n].src,s.pages[n].htmlContent),this.pagesArr.push(o),s.loadAllPages&&o.load();s.cover||(o=new FLIPBOOK.PageSwipe(e,s,s.numPages),this.pagesArr.push(o));h=this;this.iscroll.on("scrollStart",function(i,t,e){this.distX<0?h.loadNextSpread():h.loadPrevSpread()}),this.iscroll.on("scrollEnd",function(){var i=this.currentPage.pageX;h.currentSlide!=i&&(h.singlePage?i>h.currentSlide?h.setRightIndex(h.rightIndex+1):i<h.currentSlide&&h.setRightIndex(h.rightIndex-1):i>h.currentSlide?h.setRightIndex(h.rightIndex+2):i<h.currentSlide&&h.setRightIndex(h.rightIndex-2),h.currentSlide=i,h.updateVisiblePages(),h.flipping=!1)}),this.flipEnabled=!0,this.nextEnabled=!0,this.prevEnabled=!0,e.on("toolMove",function(){h.updateTool()}),e.on("toolSelect",function(){h.updateTool()}),e.on("updateTool",function(){h.updateTool()}),e.on("pageLoaded",function(i){})},FLIPBOOK.BookSwipe.prototype=Object.create(FLIPBOOK.Book.prototype),FLIPBOOK.BookSwipe.prototype.constructor=FLIPBOOK.BookSwipe,FLIPBOOK.BookSwipe.prototype.goToPage=function(i,t){if(this.enabled&&this.flipEnabled){if(i>this.options.pages.length&&(i=this.options.pages.length),(this.singlePage||i%2!=0)&&i--,(isNaN(i)||i<0)&&(i=0),this.resetZoom(),t)return this.setRightIndex(i),void this.updateVisiblePages();this.singlePage?(this.options.rightToLeft&&!this.options.backCover&&i<1&&(i=1),i>this.rightIndex?(this.setSlidePages(this.currentSlide+1,[i]),this.setRightIndex(i-1),this.nextPage(t)):i<this.rightIndex&&(this.setSlidePages(this.currentSlide-1,[i]),this.setRightIndex(i+1),this.prevPage(t))):(this.options.rightToLeft&&!this.options.backCover&&i<2&&(i=2),i>this.rightIndex?i>=this.pagesArr.length?(this.setSlidePages(2,[i-1,i]),this.setRightIndex(i-2),this.goToSlide(2,t)):(this.setSlidePages(this.currentSlide+1,[i-1,i]),this.setRightIndex(i-2),this.nextPage(t)):i<this.rightIndex&&(0==i?(this.setRightIndex(i+2),this.setSlidePages(0,[i]),this.goToSlide(0,t)):(this.setRightIndex(i+2),this.setSlidePages(this.currentSlide-1,[i-1,i]),this.prevPage(t))))}},FLIPBOOK.BookSwipe.prototype.setRightIndex=function(i){this.rightIndex=i},FLIPBOOK.BookSwipe.prototype.nextPage=function(i){2!=this.currentSlide&&(this.flipping=!0,this.goToSlide(this.currentSlide+1,i),this.loadNextSpread())},FLIPBOOK.BookSwipe.prototype.prevPage=function(i){0!=this.currentSlide&&(this.flipping=!0,this.goToSlide(this.currentSlide-1,i),this.loadPrevSpread())},FLIPBOOK.BookSwipe.prototype.enablePrev=function(i){this.prevEnabled=i},FLIPBOOK.BookSwipe.prototype.enableNext=function(i){this.nextEnabled=i},FLIPBOOK.BookSwipe.prototype.resetZoom=function(){},FLIPBOOK.BookSwipe.prototype.setSlidePages=function(i,t){for(var e=[],s=0;s<t.length;s++)t[s]&&e.push(t[s].index);if(!this.slides[i].pages||e.join("")!==this.slides[i].pages.join("")){this.clearSlidePages(i);var o=this.slides[i].find(".slide-inner");for(s=0;s<t.length;s++){var h=t[s].index;this.pagesArr[h]&&(o.append(this.pagesArr[h].$wrapper),this.slides[i].pages.push(h))}this.resizeInnerSlides(),this.slides[i].iscroll&&this.slides[i].iscroll.refresh()}},FLIPBOOK.BookSwipe.prototype.updateTool=function(){switch(this.options.main.tool){case"toolSelect":this.disableFlip(),this.disablePan(),jQuery(".flipbook-textLayer").css("pointer-events","auto").removeClass(".flipbook-noselect");break;case"toolMove":this.onZoom(this.options.main.zoom),jQuery(".flipbook-textLayer").css("pointer-events","none").addClass(".flipbook-noselect")}},FLIPBOOK.BookSwipe.prototype.clearSlidePages=function(i){this.slides[i].find(".slide-inner").empty(),this.slides[i].pages=[]},FLIPBOOK.BookSwipe.prototype.setZoomPages=function(i){if(!this.$zoomScroller.pages||this.$zoomScroller.pages.join("")!=i.join("")){this.$zoomScroller.empty(),this.$zoomScroller.pages=[];for(var t=0;t<i.length;t++){var e=i[t];this.pagesArr[e]&&(this.$zoomScroller.append(this.pagesArr[e].$wrapper),this.$zoomScroller.pages.push(e))}}},FLIPBOOK.BookSwipe.prototype.resizeZoomPages=function(i,t){var e=this.$wrapper.height()*t,s=500*parseInt(e/500)+500;s<500&&(s=500),s>2e3&&(s=2e3);for(var o=0;o<i.length;o++){var h=i[o];this.pagesArr[h]&&this.pagesArr[h].load()}},FLIPBOOK.BookSwipe.prototype.getCurrentSlidePages=function(){return this.singlePage?[this.rightIndex]:[this.rightIndex-1,this.rightIndex]},FLIPBOOK.BookSwipe.prototype.clearSlide=function(i){this.slides[i].empty()},FLIPBOOK.BookSwipe.prototype.hasPage=function(i,t){},FLIPBOOK.BookSwipe.prototype.loadNextSpread=function(){this.options.main;var i=this.rightIndex;this.options.rightToLeft&&!this.options.backCover&&i--;var t=this.pagesArr[i+1];if(t&&t.load(),!this.singlePage){var e=this.pagesArr[i+2];e&&e.load()}},FLIPBOOK.BookSwipe.prototype.loadPrevSpread=function(){this.options.main;var i=this.rightIndex;if(this.options.rightToLeft&&!this.options.backCover&&i--,this.singlePage){(t=this.pagesArr[i-1])&&t.load()}else{var t;(t=this.pagesArr[i-2])&&t.load();var e=this.pagesArr[i-3];e&&e.load()}},FLIPBOOK.BookSwipe.prototype.loadVisiblePages=function(){var i=this.options.main,t=this.rightIndex;this.options.rightToLeft&&!this.options.backCover&&t--;var e=this.pagesArr[t],s=this.pagesArr[t-1],o=this.pagesArr[t+1],h=this.pagesArr[t+2],n=this.pagesArr[t-2],r=this.pagesArr[t-3];
6this.singlePage?e?e.load(function(){i.setLoadingProgress(1),s&&s.load(null,!0),o&&o.load(null,!0)}):s&&s.load():s?s.load(function(){e?e.load(function(){i.setLoadingProgress(1),n&&n.load(null,!0),r&&r.load(null,!0),o&&o.load(null,!0),h&&h.load(null,!0)}):(i.setLoadingProgress(1),n&&n.load(null,!0),r&&r.load(null,!0))}):e&&e.load(function(){i.setLoadingProgress(1),o&&o.load(null,!0),h&&h.load(null,!0)})},FLIPBOOK.BookSwipe.prototype.updateVisiblePages=function(){if(this.visiblePagesRightIndex!==this.rightIndex){this.visiblePagesRightIndex=this.rightIndex;this.options.main;var i=this.rightIndex;this.options.rightToLeft&&!this.options.backCover&&i--;var t=this.pagesArr[i],e=this.pagesArr[i-1],s=this.pagesArr[i+1],o=this.pagesArr[i+2],h=this.pagesArr[i-2],n=this.pagesArr[i-3];s&&s.hideHTML(),o&&o.hideHTML(),h&&h.hideHTML(),n&&n.hideHTML(),this.singlePage?(t.startHTML(),e?s?(this.setSlidePages(1,[t]),e&&this.setSlidePages(0,[e]),this.setSlidePages(2,[s]),this.goToSlide(1,!0)):(t&&this.setSlidePages(2,[t]),e&&this.setSlidePages(1,[e]),this.goToSlide(2,!0),this.clearSlidePages(0)):(this.setSlidePages(0,[t]),s?this.setSlidePages(1,[s]):this.clearSlidePages(1),this.goToSlide(0,!0),this.clearSlidePages(2)),e&&e.hideHTML()):e?(e.startHTML(),t?(t.startHTML(),s?h&&(2!=this.rightIndex||this.options.cover)?(this.setSlidePages(1,[e,t]),n?this.setSlidePages(0,[n,h]):this.setSlidePages(0,[h]),o?this.setSlidePages(2,[s,o]):this.setSlidePages(2,[s]),this.goToSlide(1,!0)):(this.setSlidePages(0,[e,t]),o?this.setSlidePages(1,[s,o]):this.setSlidePages(1,[s]),this.clearSlidePages(2)):(this.setSlidePages(2,[e,t]),n?this.setSlidePages(1,[n,h]):this.setSlidePages(1,[h]),this.goToSlide(2,!0),this.clearSlidePages(0))):(this.setSlidePages(2,[e]),n?this.setSlidePages(1,[n,h]):this.setSlidePages(1,[h]),this.goToSlide(2,!0),this.clearSlidePages(0))):(t.startHTML(),this.setSlidePages(0,[t]),o?this.setSlidePages(1,[s,o]):this.setSlidePages(1,[s]),this.goToSlide(0,!0),this.clearSlidePages(2)),this.loadVisiblePages(),this.flippedleft=(this.rightIndex+this.rightIndex%2)/2,this.flippedright=this.options.pages.length/2-this.flippedleft,this.options.main.turnPageComplete()}},FLIPBOOK.BookSwipe.prototype.loadPage=function(i){this.pagesArr[i]&&this.pagesArr[i].load()},FLIPBOOK.BookSwipe.prototype.hidePage=function(i){},FLIPBOOK.BookSwipe.prototype.showPage=function(i){},FLIPBOOK.BookSwipe.prototype.disable=function(){this.enabled=!1},FLIPBOOK.BookSwipe.prototype.enable=function(){this.enabled=!0,this.onResize()},FLIPBOOK.BookSwipe.prototype.resize=function(){},FLIPBOOK.BookSwipe.prototype.onResize=function(){var i=this.$wrapper.width(),t=this.$wrapper.height();if(0!=i&&0!=t&&(this.w!==i||this.h!==t)){this.w=i,this.h=t;var e,s=this.pageWidth,o=this.pageHeight,h=2*this.options.zoomMin*s/o>i/t,n=!this.options.singlePageMode&&(!this.options.responsiveView||i>this.options.responsiveViewTreshold||!h||i/t>=this.options.responsiveViewRatio),r=n?2*s:s,l=o;this.bw=r,this.bh=l,e=t/i>l/r?l/r*i/this.options.pageHeight:t/this.options.pageHeight;for(var a=0;a<this.slides.length;a++)this.slides[a].width(i+0).height(t),this.slides[a].css("left",Number(a*i+0*a)+"px").height(t),this.slides[a].iscroll&&(this.slides[a].iscroll.options.zoomMin=this.options.zoomMin*e,this.slides[a].iscroll.options.zoomMax=this.options.zoomMax*e,this.slides[a].iscroll.refresh());this.$scroller.width(this.$scroller.children().length*(i+0)),this.iscroll.refresh(),n&&!this.options.singlePageMode||this.singlePage?n&&!this.options.singlePageMode&&this.singlePage&&(this.rightIndex%2!=0&&this.setRightIndex(this.rightIndex+1),this.singlePage=!1,this.view=2,this.resizeInnerSlides()):(this.rightIndex%2==0&&this.rightIndex>0&&this.setRightIndex(this.rightIndex-1),this.singlePage=!0,this.view=1,this.resizeInnerSlides()),this.updateVisiblePages()}},FLIPBOOK.BookSwipe.prototype.isFocusedRight=function(){return this.rightIndex%2==0},FLIPBOOK.BookSwipe.prototype.isFocusedLeft=function(){return this.rightIndex%2==1},FLIPBOOK.BookSwipe.prototype.resizeInnerSlides=function(){var i=this.options.pageHeight*this.pageWidth/this.pageHeight;90!=this.rotation&&270!=this.rotation||(i=this.options.pageHeight*this.pageHeight/this.pageWidth);for(var t=this.singlePage?i:2*i,e=0;e<3;e++)t=this.slides[e].pages&&1==this.slides[e].pages.length?i:2*i,this.slides[e].find(".slide-inner").width(t)},FLIPBOOK.BookSwipe.prototype.resizeInnerSlide=function(i){var t=this.options.pageHeight*this.pageWidth/this.pageHeight;this.slides[i].pages.length,this.slides[i].find(".slide-inner").width(t)},FLIPBOOK.BookSwipe.prototype.goToSlide=function(i,t){if(this.iscroll.currentPage.pageX!=i){this.onResize();var e=t?0:300*this.options.pageFlipDuration,s=this.slides[i];s.pages&&s.pages[0]&&this.pagesArr[s.pages[0]].updateHtmlContent(),this.iscroll.pages.length>0&&this.iscroll.goToPage(i,0,e),t&&(this.currentSlide=i),this.zoomTo(this.options.zoomMin)}},FLIPBOOK.BookSwipe.prototype.getCurrentSlide=function(){return this.currentSlide},FLIPBOOK.BookSwipe.prototype.zoomIn=function(i,t,e){e&&"mousewheel"===e.type||this.zoomTo(i)},FLIPBOOK.BookSwipe.prototype.zoomTo=function(i,t,e,s){if(this.enabled&&!this.zoomDisabled){e=e||0,s=s||0;if(i>1&&this.disableFlip(),0!=h&&0!=n){var o=this.main,h=o.wrapperW,n=o.wrapperH,r=o.bookW,l=o.bookH,a=o.pageW,p=o.pageH,d=h/n,g=a/p,c=this;Math.min(this.zoom,1),Number(this.options.zoomMin);!this.options.singlePageMode&&this.options.responsiveView&&h<=this.options.responsiveViewTreshold&&d<2*g&&d<this.options.responsiveViewRatio?(this.view=1,h/n>a/p?u():P()):(this.view=2,h/n>=r/l?u():P()),this.zoom=i,this.onZoom(i)}}function u(){c.ratio=n/l,S()}function P(){c.ratio=1==c.view?h/a:h/r,S()}function S(){for(var t=0;t<3;t++)c.slides[t].iscroll&&(c.slides[t].iscroll.options.zoomMin=c.ratio*c.options.zoomMin,c.slides[t].iscroll.options.zoomMax=c.ratio*c.options.zoomMax,c.slides[t].iscroll.zoom(c.ratio*i,e,s,0))}},FLIPBOOK.BookSwipe.prototype.zoomOut=function(i){this.zoomTo(i)},FLIPBOOK.BookSwipe.prototype.move=function(i){if(!(this.zoom<=1))for(var t=0;t<3;t++){var e=this.slides[t].iscroll;if(e){var s=e.x,o=e.y,h=20*this.zoom;switch(i){case"left":s+=h;break;case"right":s-=h;break;case"up":o+=h;break;case"down":o-=h}s>
60&&(s=0),s<e.maxScrollX&&(s=e.maxScrollX-0),o>0&&(o=0),o<e.maxScrollY&&(o=e.maxScrollY-0),e.scrollTo(s,o,0)}}},FLIPBOOK.BookSwipe.prototype.onZoom=function(i){"toolSelect"==this.options.main.tool?(this.disableFlip(),this.disablePan()):i>1?(this.disableFlip(),this.enablePan()):this.enableFlip(),this.options.main.onZoom(i)},FLIPBOOK.BookSwipe.prototype.rotateLeft=function(){this.rotation=(this.rotation+360-90)%360;for(var i=0;i<this.pagesArr.length;i++){this.pagesArr[i].setRotation(this.rotation)}this.resizeInnerSlides(),this.onResize()},FLIPBOOK.BookSwipe.prototype.rotateRight=function(){this.rotation=(this.rotation+360+90)%360;for(var i=0;i<this.pagesArr.length;i++){this.pagesArr[i].setRotation(this.rotation)}this.resizeInnerSlides(),this.onResize()},FLIPBOOK.BookSwipe.prototype.enableAutoplay=function(i){},FLIPBOOK.BookSwipe.prototype.updateCurrentPage=function(i){},FLIPBOOK.BookSwipe.prototype.enable=function(){this.enabled=!0},FLIPBOOK.BookSwipe.prototype.disable=function(){this.enabled=!1},FLIPBOOK.BookSwipe.prototype.onSwipe=function(i,t,e,s,o,h,n){},FLIPBOOK.BookSwipe.prototype.onPageUnloaded=function(i,t){var e=this.options.rightToLeft?this.options.numPages-i-1:i;this.pagesArr[e].unload()},FLIPBOOK.BookSwipe.prototype.disableFlip=function(){this.flipEnabled=!1,this.iscroll.disable()},FLIPBOOK.BookSwipe.prototype.enableFlip=function(){1!=this.options.numPages?(this.flipEnabled=!0,this.iscroll.enable()):this.disableFlip()},FLIPBOOK.BookSwipe.prototype.enablePan=function(){this.slides[0].iscroll&&this.slides[0].iscroll.enable(),this.slides[1].iscroll&&this.slides[1].iscroll.enable(),this.slides[2].iscroll&&this.slides[2].iscroll.enable()},FLIPBOOK.BookSwipe.prototype.disablePan=function(){this.slides[0].iscroll&&this.slides[0].iscroll.disable(),this.slides[1].iscroll&&this.slides[1].iscroll.disable(),this.slides[2].iscroll&&this.slides[2].iscroll.disable()},FLIPBOOK.PageSwipe=function(i,t,e,s,o){this.rotation=0,this.index=e,this.options=t,this.texture=s,this.html=o,this.index=e,this.$wrapper=jQuery("<div>").addClass("flipbook-carousel-page"),this.wrapper=this.$wrapper[0],this.main=i,this.$inner=jQuery("<div>").appendTo(this.$wrapper).addClass("flipbook-carousel-page-inner"),this.$bg=jQuery("<div>").appendTo(this.$inner).addClass("flipbook-carousel-page-bg"),this.$html=jQuery("<div>").appendTo(this.$inner).addClass("flipbook-page3-html"),this.$html[0].style.width=1e3*this.options.pageWidth/this.options.pageHeight+"px",this.$html[0].style.transform="scale("+this.options.pageHeight/1e3+") translateZ(0)",this.options.doublePage&&(this.index%2==0&&this.index>0?this.$html[0].style.left="-100%":this.$html[0].style.left="0"),t.pagePreloader?this.$preloader=jQuery('<img src="'+t.pagePreloader+'" class="flipbook-page-preloader-image">').appendTo(this.$inner):this.$preloader=jQuery('<img src="'+t.assets.spinner+'" class="flipbook-page-preloader">').appendTo(this.$inner),this.setSize(this.pw,this.ph)},FLIPBOOK.PageSwipe.prototype={load:function(i,t){var e=this.options.pageTextureSize;if(this.size>=e)return t||this.loadHTML(),void(i&&i.call(this));this.size=e;var s=this,o=this.options.rightToLeft?this.options.numPages-this.index-1:this.index;this.options.main.loadPage(o,e,function(h){if((h=h||{})&&h.image){var n=h.image[e]||h.image;n.classList.add("page-carousel-img"),s.index%2!=0||"left"!=s.options.pages[o].side&&"right"!=s.options.pages[o].side||(n=n.clone),s.$bg[0].appendChild(n),s.options.doublePage&&s.index>0&&s.index%2==0&&(n.style.left="-100%"),s.options.doublePage?0==s.index||s.index==s.options.pages.length-1&&s.options.backCover?n.style.width="100%":n.style.width="200%":n.style.width="100%",s.$preloader.remove()}s.setRotation(),t||s.loadHTML(),i&&i.call(s)})},loadHTML:function(){var i=this,t=this.options.rightToLeft?this.options.numPages-this.index-1:this.index;this.htmlContent?this.updateHtmlContent():this.options.main.loadPageHTML(t,function(t){i.htmlContent=t,i.updateHtmlContent()})},hideHTML:function(){this.htmlContentVisible&&(this.$html.empty(),this.wrapper.querySelectorAll(".flipbook-page-item").forEach(function(i){}),this.htmlContentVisible=!1,this.main.trigger("hidepagehtml",{page:this}))},startHTML:function(){this.wrapper.querySelectorAll(".flipbook-page-item").forEach(function(i){"VIDEO"!=i.nodeName&&"AUDIO"!=i.nodeName||!i.autoplay||(i.readyState<4?i.oncanplay=function(){this.play()}:i.play())})},unload:function(){this.pageSize=0,this.size=0,this.$preloader.appendTo(this.$inner)},dispose:function(){this.pageSize&&(this.pageSize=null,this.$bg.empty())},setSize:function(){var i=this.options.pageWidth,t=this.options.pageHeight;0==this.rotation||180==this.rotation?(this.$wrapper.width(i).height(t),this.pw=i,this.ph=t):(this.$wrapper.width(t).height(i),this.pw=t,this.ph=i),this.updateHtmlContent()},setRotation:function(i){this.setSize(),this.options.doublePage||(void 0!==i&&(this.rotation=i),this.$img&&(this.$img.css("transform","rotate("+this.rotation+"deg) translateZ(0)"),90==this.rotation||270==this.rotation?this.$img.width(this.$wrapper.height()).height(this.$wrapper.width()):this.$img.width(this.$wrapper.width()).height(this.$wrapper.height())))},updateHtmlContent:function(){this.ph;this.htmlContent&&!this.htmlContentVisible&&(this.htmlContentVisible=!0,this.$htmlContent||(this.$htmlContent=jQuery(this.htmlContent)),this.$html.empty().append(this.$htmlContent),this.main.trigger("updateTool"),this.main.trigger("showpagehtml",{page:this}))}};

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.