File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66// @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures or find the HD original picture automatically
77// @description :zh-CN NLF 的围观图修改版,增加高清原图查找显示(在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存、查找原图)
88// @description :zh-TW NLF 的圍觀圖修改版,增加高清原圖查詢顯示(線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存、查詢原圖)
9- // @version 2018.4.15.2
9+ // @version 2018.4.15.3
1010// @created 2011-6-15
1111// @namespace http://userscripts.org/users/NLF
1212// @homepage http://hoothin.com
32533253 } ,
32543254
32553255 changeMinView :function ( ) {
3256- var maxSize = 0 ;
3256+ var maxSize = 0 , minSize = 0 ;
32573257 var sizeInput = this . gallery . querySelector ( "#minsize" ) ;
32583258 sizeInput . title = sizeInput . value + "px" ;
32593259 this . data . forEach ( function ( item ) {
32603260 if ( ! item ) return ;
32613261 if ( item . size > maxSize )
32623262 maxSize = item . size ;
3263+ if ( item . size < minSize || minSize == 0 )
3264+ minSize = item . size ;
32633265 } ) ;
3264- if ( maxSize != sizeInput . max )
3265- this . gallery . querySelector ( "#minsize" ) . max = maxSize ;
3266- else {
3266+ if ( maxSize != sizeInput . max ) {
3267+ sizeInput . max = maxSize ;
3268+ sizeInput . min = minSize ;
3269+ } else {
32673270 this . data . forEach ( function ( item ) {
32683271 if ( ! item ) return ;
32693272 var spanMark = document . querySelector ( "span.pv-gallery-sidebar-thumb-container[data-src='" + item . src + "']" ) ;
You can’t perform that action at this time.
0 commit comments