Produced by Araxis Merge on 2/1/2017 2:57:42 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM Portal\trunk\BTSSSPortal\Areas\EntityList\js | lightbox-2.6.min.js | Tue Dec 20 19:50:57 2016 UTC |
| 2 | Wed Feb 1 19:57:42 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 11 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /* | |||||
| 2 | Lightbox2 | |||||
| 3 | Copyright (c) 2015 L okesh Dhak ar | |||||
| 4 | ||||||
| 5 | Permission is hereby granted, free of ch arge, to a ny person obtaining a copy of this softw are and as sociated d ocumentati on files ( the "Softw are"), to deal in th e Software without r estriction , includin g without limitation the right s to use, copy, modi fy, merge, publish, distribute , sublicen se, and/or sell copi es of the Software, and to per mit person s to whom the Softwa re is furn ished to d o so, subj ect to the following condition s: | |||||
| 6 | ||||||
| 7 | The above copyright notice and this perm ission not ice shall be include d in all c opies or s ubstantial portions of the Sof tware. | |||||
| 8 | ||||||
| 9 | THE SOFTWA RE IS PROV IDED "AS I S", WITHOU T WARRANTY OF ANY KI ND, EXPRES S OR IMPLI ED, INCLUD ING BUT NO T LIMITED TO THE WAR RANTIES OF MERCHANTA BILITY, FI TNESS FOR A PARTICUL AR PURPOSE AND NONIN FRINGEMENT . IN NO EV ENT SHALL THE AUTHOR S OR COPYR IGHT HOLDE RS BE LIAB LE FOR ANY CLAIM, DA MAGES OR O THER LIABI LITY, WHET HER IN AN ACTION OF CONTRACT, TORT OR OT HERWISE, A RISING FRO M, OUT OF OR IN CONN ECTION WIT H THE SOFT WARE OR TH E USE OR O THER DEALI NGS IN THE SOFTWARE. | |||||
| 10 | */ | |||||
| 11 | (function( ){var b,d, c;b=jQuery ;c=(functi on(){funct ion b(){th is.fadeDur ation=500; this.fitIm agesInView port=true; this.resiz eDuration= 700;this.s howImageNu mberLabel= true;this. wrapAround =false}b.p rototype.a lbumLabel= function(b ,c){return "Image "+b +" of "+c} ;return b} )();d=(fun ction(){fu nction c(b ){this.opt ions=b;thi s.album=[] ;this.curr entImageIn dex=void 0 ;this.init ()}c.proto type.init= function() {this.enab le();retur n this.bui ld()};c.pr ototype.en able=funct ion(){var c=this;ret urn b('bod y').on('cl ick','a[re l^=lightbo x], area[r el^=lightb ox], a[dat a-lightbox ], area[da ta-lightbo x]',functi on(d){c.st art(b(d.cu rrentTarge t));return false})}; c.prototyp e.build=fu nction(){v ar c=this; b("<div id ='lightbox Overlay' c lass='ligh tboxOverla y'></div>< div id='li ghtbox' cl ass='light box'><div class='lb- outerConta iner'><div class='lb -container '><img cla ss='lb-ima ge' src='' /><div cl ass='lb-na v'><a clas s='lb-prev ' href='' ></a><a cl ass='lb-ne xt' href=' ' ></a></d iv><div cl ass='lb-lo ader'><a c lass='lb-c ancel'></a ></div></d iv></div>< div class= 'lb-dataCo ntainer'>< div class= 'lb-data'> <div class ='lb-detai ls'><span class='lb- caption'>< /span><spa n class='l b-number'> </span></d iv><div cl ass='lb-cl oseContain er'><a cla ss='lb-clo se'></a></ div></div> </div></di v>").appen dTo(b('bod y'));this. $lightbox= b('#lightb ox');this. $overlay=b ('#lightbo xOverlay') ;this.$out erContaine r=this.$li ghtbox.fin d('.lb-out erContaine r');this.$ container= this.$ligh tbox.find( '.lb-conta iner');thi s.containe rTopPaddin g=parseInt (this.$con tainer.css ('padding- top'),10); this.conta inerRightP adding=par seInt(this .$containe r.css('pad ding-right '),10);thi s.containe rBottomPad ding=parse Int(this.$ container. css('paddi ng-bottom' ),10);this .container LeftPaddin g=parseInt (this.$con tainer.css ('padding- left'),10) ;this.$ove rlay.hide( ).on('clic k',functio n(){c.end( );return f alse});thi s.$lightbo x.hide().o n('click', function(d ){if(b(d.t arget).att r('id')=== 'lightbox' ){c.end()} return fal se});this. $outerCont ainer.on(' click',fun ction(d){i f(b(d.targ et).attr(' id')==='li ghtbox'){c .end()}ret urn false} );this.$li ghtbox.fin d('.lb-pre v').on('cl ick',funct ion(){if(c .currentIm ageIndex== =0){c.chan geImage(c. album.leng th-1)}else {c.changeI mage(c.cur rentImageI ndex-1)}re turn false });this.$l ightbox.fi nd('.lb-ne xt').on('c lick',func tion(){if( c.currentI mageIndex= ==c.album. length-1){ c.changeIm age(0)}els e{c.change Image(c.cu rrentImage Index+1)}r eturn fals e});return this.$lig htbox.find ('.lb-load er, .lb-cl ose').on(' click',fun ction(){c. end();retu rn false}) };c.protot ype.start= function(c ){var f,e, j,d,g,n,o, k,l,m,p,h, i;b(window ).on("resi ze",this.s izeOverlay );b('selec t, object, embed').c ss({visibi lity:"hidd en"});this .$overlay. width(b(do cument).wi dth()).hei ght(b(docu ment).heig ht()).fade In(this.op tions.fade Duration); this.album =[];g=0;j= c.attr('da ta-lightbo x');if(j){ h=b(c.prop ("tagName" )+'[data-l ightbox="' +j+'"]');f or(d=k=0,m =h.length; k<m;d=++k) {e=h[d];th is.album.p ush({link: b(e).attr( 'href'),ti tle:b(e).a ttr('title ')});if(b( e).attr('h ref')===c. attr('href ')){g=d}}} else{if(c. attr('rel' )==='light box'){this .album.pus h({link:c. attr('href '),title:c .attr('tit le')})}els e{i=b(c.pr op("tagNam e")+'[rel= "'+c.attr( 'rel')+'"] ');for(d=l =0,p=i.len gth;l<p;d= ++l){e=i[d ];this.alb um.push({l ink:b(e).a ttr('href' ),title:b( e).attr('t itle')});i f(b(e).att r('href')= ==c.attr(' href')){g= d}}}}f=b(w indow);o=f .scrollTop ()+f.heigh t()/10;n=f .scrollLef t();this.$ lightbox.c ss({top:o+ 'px',left: n+'px'}).f adeIn(this .options.f adeDuratio n);this.ch angeImage( g)};c.prot otype.chan geImage=fu nction(f){ var d,c,e= this;this. disableKey boardNav() ;d=this.$l ightbox.fi nd('.lb-im age');this .sizeOverl ay();this. $overlay.f adeIn(this .options.f adeDuratio n);b('.lb- loader').f adeIn('slo w');this.$ lightbox.f ind('.lb-i mage, .lb- nav, .lb-p rev, .lb-n ext, .lb-d ataContain er, .lb-nu mbers, .lb -caption') .hide();th is.$outerC ontainer.a ddClass('a nimating') ;c=new Ima ge();c.onl oad=functi on(){var m ,g,h,i,j,k ,l;d.attr( 'src',e.al bum[f].lin k);m=b(c); d.width(c. width);d.h eight(c.he ight);if(e .options.f itImagesIn Viewport){ l=b(window ).width(); k=b(window ).height() ;j=l-e.con tainerLeft Padding-e. containerR ightPaddin g-20;i=k-e .container TopPadding -e.contain erBottomPa dding-110; if((c.widt h>j)||(c.h eight>i)){ if((c.widt h/j)>(c.he ight/i)){h =j;g=parse Int(c.heig ht/(c.widt h/h),10);d .width(h); d.height(g )}else{g=i ;h=parseIn t(c.width/ (c.height/ g),10);d.w idth(h);d. height(g)} }}return e .sizeConta iner(d.wid th(),d.hei ght())};c. src=this.a lbum[f].li nk;this.cu rrentImage Index=f};c .prototype .sizeOverl ay=functio n(){return b('#light boxOverlay ').width(b (document) .width()). height(b(d ocument).h eight())}; c.prototyp e.sizeCont ainer=func tion(f,g){ var b,d,e, h,c=this;h =this.$out erContaine r.outerWid th();e=thi s.$outerCo ntainer.ou terHeight( );d=f+this .container LeftPaddin g+this.con tainerRigh tPadding;b =g+this.co ntainerTop Padding+th is.contain erBottomPa dding;this .$outerCon tainer.ani mate({widt h:d,height :b},this.o ptions.res izeDuratio n,'swing') ;setTimeou t(function (){c.$ligh tbox.find( '.lb-dataC ontainer') .width(d); c.$lightbo x.find('.l b-prevLink ').height( b);c.$ligh tbox.find( '.lb-nextL ink').heig ht(b);c.sh owImage()} ,this.opti ons.resize Duration)} ;c.prototy pe.showIma ge=functio n(){this.$ lightbox.f ind('.lb-l oader').hi de();this. $lightbox. find('.lb- image').fa deIn('slow ');this.up dateNav(); this.updat eDetails() ;this.prel oadNeighbo ringImages ();this.en ableKeyboa rdNav()};c .prototype .updateNav =function( ){this.$li ghtbox.fin d('.lb-nav ').show(); if(this.al bum.length >1){if(thi s.options. wrapAround ){this.$li ghtbox.fin d('.lb-pre v, .lb-nex t').show() }else{if(t his.curren tImageInde x>0){this. $lightbox. find('.lb- prev').sho w()}if(thi s.currentI mageIndex< this.album .length-1) {this.$lig htbox.find ('.lb-next ').show()} }}};c.prot otype.upda teDetails= function() {var b=thi s;if(typeo f this.alb um[this.cu rrentImage Index].tit le!=='unde fined'&&th is.album[t his.curren tImageInde x].title!= =""){this. $lightbox. find('.lb- caption'). html(this. album[this .currentIm ageIndex]. title).fad eIn('fast' )}if(this. album.leng th>1&&this .options.s howImageNu mberLabel) {this.$lig htbox.find ('.lb-numb er').text( this.optio ns.albumLa bel(this.c urrentImag eIndex+1,t his.album. length)).f adeIn('fas t')}else{t his.$light box.find(' .lb-number ').hide()} this.$oute rContainer .removeCla ss('animat ing');this .$lightbox .find('.lb -dataConta iner').fad eIn(this.r esizeDurat ion,functi on(){retur n b.sizeOv erlay()})} ;c.prototy pe.preload Neighborin gImages=fu nction(){v ar c,b;if( this.album .length>th is.current ImageIndex +1){c=new Image();c. src=this.a lbum[this. currentIma geIndex+1] .link}if(t his.curren tImageInde x>0){b=new Image();b .src=this. album[this .currentIm ageIndex-1 ].link}};c .prototype .enableKey boardNav=f unction(){ b(document ).on('keyu p.keyboard ',b.proxy( this.keybo ardAction, this))};c. prototype. disableKey boardNav=f unction(){ b(document ).off('.ke yboard')}; c.prototyp e.keyboard Action=fun ction(g){v ar d,e,f,c ,b;d=27;e= 37;f=39;b= g.keyCode; c=String.f romCharCod e(b).toLow erCase();i f(b===d||c .match(/x| o|c/)){thi s.end()}el se if(c=== 'p'||b===e ){if(this. currentIma geIndex!== 0){this.ch angeImage( this.curre ntImageInd ex-1)}}els e if(c===' n'||b===f) {if(this.c urrentImag eIndex!==t his.album. length-1){ this.chang eImage(thi s.currentI mageIndex+ 1)}}};c.pr ototype.en d=function (){this.di sableKeybo ardNav();b (window).o ff("resize ",this.siz eOverlay); this.$ligh tbox.fadeO ut(this.op tions.fade Duration); this.$over lay.fadeOu t(this.opt ions.fadeD uration);r eturn b('s elect, obj ect, embed ').css({vi sibility:" visible"}) };return c })();b(fun ction(){va r e,b;b=ne w c();retu rn e=new d (b)})}).ca ll(this); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.