Commit c99cca1 1 parent 198e08a commit c99cca1 Copy full SHA for c99cca1
File tree 2 files changed +9
-11
lines changed
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
7
< title > Pixiv工具</ title >
8
8
< style type ="text/css ">
9
- body {padding : 0 ;margin : 0 ;font-size : 20px }
10
- # tools {position : fixed;left : 0 ;top : 0 ;z-index : 1 ;background-color : # efefef ;width : 100% ;padding : 5px 5px 0 5px }
9
+ body {padding : 0 ;margin : 0 ;font-size : 20px ; background-color : # 1e1f22 ; }
10
+ # tools {position : fixed;left : 0 ;top : 0 ;z-index : 1 ;background-color : # 666 ;width : 100% ;padding : 5px 5px 0 5px }
11
11
# tools div {padding-bottom : 5px }
12
12
# imgs {margin-top : 70px ;padding : 5px 0 0 5px ;padding-bottom : 10px }
13
- img {margin-top : 15px ;background-color : # efefef }
14
- img : first-child , img .hidden {margin-top : 0 }
13
+ img {margin-top : 15px ;background-color : # 999 }
14
+ img : first-child , img .hidden {margin-top : 0 ; display : none }
15
15
16
16
.mobile # tools {top : auto;bottom : 0 }
17
17
.mobile # imgs {margin-top : 0 ;padding-bottom : 72px }
18
18
.mobile # imgs img : last-child {margin-bottom : 70px }
19
19
20
- # configs {position : fixed;left : 0 ;bottom : 0 ;z-index : 2 ;background-color : # efefef ;border : 1px solid # aaa ;padding : 5px ;width : 100% ;display : none}
20
+ # configs {position : fixed;left : 0 ;bottom : 0 ;z-index : 2 ;background-color : # 666 ;border : 1px solid # aaa ;padding : 5px ;width : 100% ;display : none}
21
21
# saveConfigPanel {text-align : center}
22
22
.mobile # configs {top : 0 ;bottom : auto}
23
23
</ style >
Original file line number Diff line number Diff line change @@ -250,15 +250,15 @@ function clearPid () {
250
250
251
251
function showImg ( img ) {
252
252
img . title = `${ img . id } ${ img . naturalWidth } ✖️${ img . naturalHeight } ` ;
253
- img . classList . remove ( "hidden" ) ;
254
253
if ( 400 / img . naturalHeight * img . naturalWidth > windowWidth ) {
255
254
// 宽度超过页面时,缩小显示
256
- img . style . width = windowWidth + "px" ;
257
255
img . style . height = ( windowWidth / img . naturalWidth * img . naturalHeight ) + "px" ;
256
+ img . style . width = windowWidth + "px" ;
258
257
} else {
259
- img . style . width = ( 400 / img . naturalHeight * img . naturalWidth ) + "px" ;
260
258
img . style . height = "400px" ;
259
+ img . style . width = ( 400 / img . naturalHeight * img . naturalWidth ) + "px" ;
261
260
}
261
+ img . classList . remove ( "hidden" ) ;
262
262
}
263
263
264
264
function stopImgInterval ( img ) {
@@ -286,11 +286,9 @@ function createImage (pid, n) {
286
286
img . src = `https://pixiv.nl/${ pid } .jpg` ;
287
287
}
288
288
if ( n === 1 || auto . value !== '自动' ) {
289
- img . style . width = windowWidth + "px" ;
290
289
img . style . height = "400px" ;
290
+ img . style . width = windowWidth + "px" ;
291
291
} else {
292
- img . style . width = "0px" ;
293
- img . style . height = "0px" ;
294
292
img . classList . add ( "hidden" ) ;
295
293
}
296
294
img . style . cursor = 'pointer' ;
You can’t perform that action at this time.
0 commit comments