Skip to content

Commit

Permalink
序号彩标
Browse files Browse the repository at this point in the history
  • Loading branch information
yunzlp committed Mar 10, 2024
1 parent e57a21e commit 72bdb0d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
15 changes: 13 additions & 2 deletions patch/import/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,30 @@ textarea{
padding: 7px;
margin: 5px 0px;
font-family: sans-serif;
word-break: break-all;
}
.qqq .key{
height:50px;
}

div.lr{
min-height:380px;
min-height:720px;
font-size:18px;
line-height: 2;
font-weight:bolder;
}
div.lr span{
position: absolute;
margin-left: -4px;
margin-top: -6px;
font-size: 12px;
color: #0537f9;
text-shadow: 1px 1px 1px #ffffff61;
}
.lr_col{
overflow-y:scroll;
height:400px;
overflow-x:hidden;
height: 740px;
}

.qqq .old_show,.qqq .new_show{
Expand Down
20 changes: 18 additions & 2 deletions patch/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ qqq_translate_tts=async function (is_filt){
var old=$(".qqq_menu .old").html()

if( is_filt ){
old=old.replaceAll('{}',"")
old=old.replaceAll('{}'," ")
}

//翻译前转义空格的转义
Expand Down Expand Up @@ -186,15 +186,31 @@ qqq_hight_light=function(){
left=left.replace('{}',"{"+i+"}")
}
for (let i = 0; i < lc; i++) {

var rs="<b class='score' style='color:orange;'>{"+i+"}</b>"
var tmp=right.replace("{"+i+"}",rs)
right_show=right_show.replace("{"+i+"}",rs)
if(tmp===right){
right=right.replace('{}',"{"+i+"}")
}else{
right=tmp
rc++
}

tmp=left_show.replace("{"+i+"}",rs)
if(tmp===left_show){
left_show=left_show.replace('{}',"{<span>"+i+"</span>}")
}else{
left_show=tmp
}

tmp=right_show.replace("{"+i+"}",rs)
if(tmp===right_show){
right_show=right_show.replace('{}',"{<span>"+i+"</span>}")
}else{
right_show=tmp
}


}

//显示在显示层
Expand Down

0 comments on commit 72bdb0d

Please sign in to comment.