Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI_BOOK_TOOL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
AI_BOOK_TOOL
Commits
e1cd921f
Commit
e1cd921f
authored
Oct 01, 2026
by
Jeff nan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
96409f99
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
130 additions
and
92 deletions
+130
-92
package-lock.json
package-lock.json
+92
-66
index.css
play/index.css
+17
-7
index.html
play/index.html
+21
-19
No files found.
package-lock.json
View file @
e1cd921f
This diff is collapsed.
Click to expand it.
play/index.css
View file @
e1cd921f
...
...
@@ -206,12 +206,26 @@ body {
z-index
:
200
;
}
/*
点读按钮样式
*/
.
point-read-btn
{
/*
AI翻译 / 点读:右下角
*/
.
mode-actions
{
position
:
absolute
;
top
:
20px
;
right
:
20px
;
bottom
:
20px
;
z-index
:
100
;
display
:
flex
;
align-items
:
center
;
gap
:
12px
;
}
@media
(
max-width
:
480px
)
{
.mode-actions
{
flex-direction
:
column
;
align-items
:
flex-end
;
}
}
/* 点读按钮样式 */
.point-read-btn
{
padding
:
10px
20px
;
border
:
none
;
border-radius
:
25px
;
...
...
@@ -240,10 +254,6 @@ body {
/* AI翻译按钮样式 */
.translate-btn
{
position
:
absolute
;
top
:
20px
;
right
:
120px
;
z-index
:
100
;
padding
:
10px
20px
;
border
:
none
;
border-radius
:
25px
;
...
...
play/index.html
View file @
e1cd921f
...
...
@@ -26,25 +26,27 @@
<div
v-else
class=
"book-container"
>
<!-- 点读按钮 -->
<button
class=
"point-read-btn"
:class=
"{ active: isPointReadMode }"
@
click=
"togglePointReadMode"
title=
"点读模式"
>
{{ isPointReadMode ? '退出点读' : '点读' }}
</button>
<!-- AI翻译按钮 -->
<button
class=
"translate-btn"
:class=
"{ active: isTranslateMode }"
@
click=
"toggleTranslateMode"
title=
"AI翻译模式"
>
{{ isTranslateMode ? '退出翻译' : 'AI翻译' }}
</button>
<div
class=
"mode-actions"
>
<!-- AI翻译按钮 -->
<button
class=
"translate-btn"
:class=
"{ active: isTranslateMode }"
@
click=
"toggleTranslateMode"
title=
"AI翻译模式"
>
{{ isTranslateMode ? '退出翻译' : 'AI翻译' }}
</button>
<!-- 点读按钮 -->
<button
class=
"point-read-btn"
:class=
"{ active: isPointReadMode }"
@
click=
"togglePointReadMode"
title=
"点读模式"
>
{{ isPointReadMode ? '退出点读' : '点读' }}
</button>
</div>
<!-- 图片容器 -->
<div
class=
"image-container"
:class=
"{ 'multi-page-container': currentPages.length > 1 }"
>
...
...
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