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
53723d82
Commit
53723d82
authored
Oct 10, 2025
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
6c91de64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
index.css
play/index.css
+5
-5
index.js
play/index.js
+5
-1
No files found.
play/index.css
View file @
53723d82
...
@@ -98,7 +98,7 @@ body {
...
@@ -98,7 +98,7 @@ body {
.highlight-rect
{
.highlight-rect
{
position
:
absolute
;
position
:
absolute
;
border
:
2px
dashed
#007bff
;
border
-bottom
:
3px
solid
#3e98e7
;
background-color
:
transparent
;
background-color
:
transparent
;
pointer-events
:
none
;
pointer-events
:
none
;
z-index
:
15
;
z-index
:
15
;
...
@@ -107,13 +107,13 @@ body {
...
@@ -107,13 +107,13 @@ body {
.word-highlight
{
.word-highlight
{
position
:
absolute
;
position
:
absolute
;
background-color
:
rgba
(
2
55
,
235
,
59
,
0.2
);
background-color
:
rgba
(
2
25
,
96
,
239
,
0.3
);
border
:
1px
solid
#f57f17
;
/* border: 1px solid #f57f17; */
border-radius
:
3
px
;
border-radius
:
5
px
;
pointer-events
:
none
;
pointer-events
:
none
;
z-index
:
1
;
z-index
:
1
;
transition
:
all
0.2s
ease
;
transition
:
all
0.2s
ease
;
box-shadow
:
0
0
5px
rgba
(
2
55
,
235
,
5
9
,
0.5
);
box-shadow
:
0
0
5px
rgba
(
2
25
,
96
,
23
9
,
0.5
);
}
}
.controls
{
.controls
{
...
...
play/index.js
View file @
53723d82
...
@@ -405,7 +405,11 @@ function initializeApp(data) {
...
@@ -405,7 +405,11 @@ function initializeApp(data) {
const
newRects
=
[];
const
newRects
=
[];
const
newWords
=
[];
const
newWords
=
[];
// 检查是否在当前页的时间范围内
// 检查是否在当前页的时间范围内;若不在,则保留当前高亮,等待实际翻页时再清除
if
(
currentTime
<
this
.
currentPageStartTime
||
currentTime
>
this
.
currentPageEndTime
)
{
return
;
}
if
(
currentTime
>=
this
.
currentPageStartTime
&&
currentTime
<=
this
.
currentPageEndTime
)
{
if
(
currentTime
>=
this
.
currentPageStartTime
&&
currentTime
<=
this
.
currentPageEndTime
)
{
// 使用计算属性获取所有矩形框和单词数据
// 使用计算属性获取所有矩形框和单词数据
const
allRects
=
this
.
currentPageRects
;
const
allRects
=
this
.
currentPageRects
;
...
...
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