File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979 img , video
8080 max-width : 100%
8181 height : auto
82- display : block
8382 margin : auto
83+ vertical-align : text-bottom
84+ video
85+ a img
86+ display : block
8487 iframe
8588 border : none
8689 table
Original file line number Diff line number Diff line change 22 var toTop = ( $ ( '#sidebar' ) . height ( ) - $ ( window ) . height ( ) ) + 60 ;
33 // Caption
44 $ ( '.article-entry' ) . each ( function ( i ) {
5- $ ( this ) . find ( 'img' ) . each ( function ( ) {
5+ $ ( this ) . find ( 'img' ) . filter ( function ( element ) {
6+ return $ ( this ) . hasClass ( '' ) ;
7+ } ) . each ( function ( ) {
8+ // add image caption
69 if ( this . alt && ! ( ! ! $ . prototype . justifiedGallery && $ ( this ) . parent ( '.justified-gallery' ) . length ) ) {
710 $ ( this ) . after ( '<span class="caption">' + this . alt + '</span>' ) ;
811 }
912
10- // 对于已经包含在链接内的图片不适用lightGallery
1113 if ( $ ( this ) . parent ( ) . prop ( "tagName" ) !== 'A' ) {
1214 $ ( this ) . wrap ( '<a href="' + ( $ ( this ) . attr ( "data-imgbig" ) ? $ ( this ) . attr ( "data-imgbig" ) : this . src ) + '" title="' + this . alt + '" class="gallery-item"></a>' ) ;
1315 }
You can’t perform that action at this time.
0 commit comments