Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
b586a328
Commit
b586a328
authored
Dec 22, 2019
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1115 (comic reader not working under iOS, maybe invalid issue)
Improvement for #925 (Next/Prev buttons are bigger)
parent
7098d088
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
111 deletions
+33
-111
kthoom.css
cps/static/css/kthoom.css
+0
-33
listen.css
cps/static/css/listen.css
+1
-23
main.css
cps/static/css/main.css
+10
-12
rarvm.js
cps/static/js/archive/rarvm.js
+10
-2
epub.js
cps/static/js/reading/epub.js
+3
-1
readtxt.html
cps/templates/readtxt.html
+9
-40
No files found.
cps/static/css/kthoom.css
View file @
b586a328
...
...
@@ -152,39 +152,6 @@ body {
max-width
:
70%
;
}
#left
{
left
:
40px
;
}
#right
{
right
:
40px
;
}
.arrow
{
position
:
absolute
;
top
:
50%
;
margin-top
:
-32px
;
font-size
:
64px
;
color
:
#E2E2E2
;
font-family
:
arial
,
sans-serif
;
font-weight
:
bold
;
cursor
:
pointer
;
-webkit-user-select
:
none
;
-khtml-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
}
.arrow
:hover
{
color
:
#777
;
}
.arrow
:active
,
.arrow.active
{
color
:
#000
;
}
th
,
td
{
padding
:
5px
;
}
...
...
cps/static/css/listen.css
View file @
b586a328
...
...
@@ -65,28 +65,6 @@
right
:
40px
;
}
.arrow
{
position
:
absolute
;
top
:
50%
;
margin-top
:
-32px
;
font-size
:
64px
;
color
:
#E2E2E2
;
font-family
:
arial
,
sans-serif
;
font-weight
:
bold
;
cursor
:
pointer
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
user-select
:
none
;
}
.arrow
:hover
{
color
:
#777
;
}
.arrow
:active
{
color
:
#000
;
}
xmp
,
pre
,
plaintext
{
...
...
@@ -111,4 +89,4 @@
-moz-column-gap
:
20px
;
-webkit-column-gap
:
20px
;
position
:
relative
;
}
\ No newline at end of file
}
cps/static/css/main.css
View file @
b586a328
...
...
@@ -15,16 +15,10 @@ body {
}
#main
{
/* height: 500px; */
position
:
absolute
;
width
:
100%
;
height
:
100%
;
right
:
0
;
/* left: 40px; */
/* -webkit-transform: translate(40px, 0);
-moz-transform: translate(40px, 0); */
/* border-radius: 5px 0px 0px 5px; */
border-radius
:
5px
;
background
:
#fff
;
overflow
:
hidden
;
...
...
@@ -114,18 +108,20 @@ body {
border
:
none
;
}
#prev
{
#
left
,
#
prev
{
left
:
40px
;
padding-right
:
80px
;
}
#next
{
#
right
,
#
next
{
right
:
40px
;
padding-left
:
80px
;
}
.arrow
{
position
:
absolute
;
top
:
50%
;
margin-top
:
-
3
2px
;
margin-top
:
-
19
2px
;
font-size
:
64px
;
color
:
#E2E2E2
;
font-family
:
arial
,
sans-serif
;
...
...
@@ -136,6 +132,8 @@ body {
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
padding-top
:
160px
;
padding-bottom
:
160px
;
}
.arrow
:hover
{
...
...
@@ -753,9 +751,9 @@ input:-ms-placeholder {
}
}*/
@media
only
screen
and
(
min-device-width
:
768px
)
and
(
max-device-width
:
1024px
)
@media
only
screen
and
(
min-device-width
:
768px
)
and
(
max-device-width
:
1024px
)
and
(
orientation
:
landscape
)
/*and (-webkit-min-device-pixel-ratio: 2)*/
{
#viewer
{
...
...
cps/static/js/archive/rarvm.js
View file @
b586a328
...
...
@@ -9,10 +9,18 @@
/**
* CRC Implementation.
*/
/* global Uint8Array, Uint32Array, bitjs, DataView */
/* global Uint8Array, Uint32Array, bitjs, DataView
, mem
*/
/* exported MAXWINMASK, UnpackFilter */
var
CRCTab
=
new
Array
(
256
).
fill
(
0
);
function
emptyArr
(
n
,
v
)
{
var
arr
=
[];
for
(
var
i
=
0
;
i
<
n
;
i
+=
1
)
{
arr
[
i
]
=
v
;
}
return
arr
;
}
var
CRCTab
=
emptyArr
(
256
,
0
);
function
initCRC
()
{
for
(
var
i
=
0
;
i
<
256
;
++
i
)
{
...
...
cps/static/js/reading/epub.js
View file @
b586a328
/* global $, calibre, EPUBJS, ePubReader */
var
reader
;
(
function
()
{
"use strict"
;
EPUBJS
.
filePath
=
calibre
.
filePath
;
EPUBJS
.
cssPath
=
calibre
.
cssPath
;
var
reader
=
ePubReader
(
calibre
.
bookUrl
,
{
reader
=
ePubReader
(
calibre
.
bookUrl
,
{
restore
:
true
,
bookmarks
:
calibre
.
bookmark
?
[
calibre
.
bookmark
]
:
[]
});
...
...
cps/templates/readtxt.html
View file @
b586a328
...
...
@@ -7,7 +7,7 @@
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/main.css') }}"
type=
"text/css"
/>
<!-- EPUBJS Renderer -->
<!--<script src="../build/epub.js"></script>-->
...
...
@@ -16,10 +16,10 @@
<style
type=
"text/css"
>
body
{
overflow
:
hidden
;
background
:
white
;
}
#main
{
#
read
main
{
position
:
absolute
;
width
:
100%
;
height
:
100%
;
...
...
@@ -36,35 +36,6 @@
border
:
none
;
}
#prev
{
left
:
40px
;
}
#next
{
right
:
40px
;
}
.arrow
{
position
:
absolute
;
top
:
50%
;
margin-top
:
-32px
;
font-size
:
64px
;
color
:
#E2E2E2
;
font-family
:
arial
,
sans-serif
;
font-weight
:
bold
;
cursor
:
pointer
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
user-select
:
none
;
}
.arrow
:hover
{
color
:
#777
;
}
.arrow
:active
{
color
:
#000
;
}
xmp
,
pre
,
plaintext
{
display
:
block
;
font-family
:
-moz-fixed
;
...
...
@@ -90,16 +61,13 @@
<script>
"use strict"
;
//var Book = ePub("https://s3.amazonaws.com/moby-dick/");
</script>
</head>
<body>
<div
id=
"main"
>
<div
id=
"
prev
"
class=
"arrow"
>
‹
</div>
<div
id=
"
read
main"
>
<div
id=
"
left
"
class=
"arrow"
>
‹
</div>
<div
id=
"area"
><pre
id=
"content"
class=
"content"
></pre></div>
<div
id=
"
nex
t"
class=
"arrow"
>
›
</div>
<div
id=
"
righ
t"
class=
"arrow"
>
›
</div>
</div>
<script>
...
...
@@ -123,10 +91,10 @@
}
});
//click
$
(
"#
prev
"
).
click
(
function
()
{
$
(
"#
left
"
).
click
(
function
()
{
prevPage
();
});
$
(
"#
nex
t"
).
click
(
function
()
{
$
(
"#
righ
t"
).
click
(
function
()
{
nextPage
();
});
//bind mouse
...
...
@@ -156,6 +124,7 @@
function
nextPage
(){
leftoff
=
$
(
"#content"
).
offset
().
left
;
leftoff
=
leftoff
-
origwidth
-
gap
;
if
(
leftoff
+
$
(
"#content"
)[
0
].
scrollWidth
<
0
)
{
return
;}
$
(
"#content"
).
offset
({
left
:
leftoff
});
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment