Skip to content

Commit

Permalink
1.6.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
YrracOwl committed Sep 6, 2024
1 parent f888bac commit 4649acf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion default.aproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<project ver="10" name="ChiikawaBest" libEmbed="true" icon="res\chiikawaIcon.ico" ui="win" output="ChiikawaBest.exe" CompanyName="CarryWho" FileDescription="ChiikawaBest" LegalCopyright="Copyright (C) CarryWho 2023" ProductName="ChiikawaBest" InternalName="ChiikawaBest" FileVersion="1.6.1.2" ProductVersion="1.6.1.2" publishDir="/dist/" dstrip="true" local="false" ignored="false">
<project ver="10" name="ChiikawaBest" libEmbed="true" icon="res\chiikawaIcon.ico" ui="win" output="ChiikawaBest.exe" CompanyName="CarryWho" FileDescription="ChiikawaBest" LegalCopyright="Copyright (C) CarryWho 2023" ProductName="ChiikawaBest" InternalName="ChiikawaBest" FileVersion="1.6.1.3" ProductVersion="1.6.1.3" publishDir="/dist/" dstrip="true" local="false" ignored="false">
<file name="main.aardio" path="main.aardio" comment="main.aardio"/>
<folder name="资源文件" path="res" embed="true" local="false" ignored="false">
<file name="chiikawa.png" path="res\chiikawa.png" comment="res\chiikawa.png"/>
Expand Down
2 changes: 2 additions & 0 deletions dlg/timeline.aardio
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,8 @@ winform.添加plus.oncommand = function(id,event){

//tl_webview.invoke("updateContent",{tostring(tl_time);tostring(tl_title);tostring(tl_content);imgUrl});
tl_webview.invoke("updateContent",{tostring(tl_time);tostring(tl_title);winform.gfmarkCheckList(tl_content);imgUrl});
tl_webview.invoke("updatedScroll",{tostring(tl_time)});

}
//修改了时间,或者纯粹新增,均不会触发
else {
Expand Down
1 change: 0 additions & 1 deletion release/1.6.1.1

This file was deleted.

1 change: 1 addition & 0 deletions release/1.6.1.2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.6.1.2
Binary file modified release/ChiikawaBest.exe
Binary file not shown.
13 changes: 11 additions & 2 deletions res/template_timeline.aardio
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,12 @@ var content_js = /**
window.watchImg();
window.updateTOC();
}

window.updatedScroll = function(datas){
var liEle = document.getElementById(datas);
liEle.scrollIntoView();
}


window.removeContent = function(datas){
var liEle = document.getElementById(datas[0]);
Expand Down Expand Up @@ -556,6 +562,7 @@ var content_js = /**
imgEle.setAttribute("title","点我查看大图")
imgEle.setAttribute("class","mkd-img")
imgEle.setAttribute("src",datas[3]);
imgEle.setAttribute("imgid",datas[0]);
imgEle.setAttribute("width","100%");
imgEle.setAttribute("height","auto");
imgEle.setAttribute("style","max-height:450px; object-fit: scale-down;");
Expand Down Expand Up @@ -797,6 +804,7 @@ var content_js = /**
console.log(currentImgEle);

if(currentImgEle.length != 0){
currentImgID = currentImgEle[0].getAttribute("imgid");
const menus3 = menuImg.getInstance();
menus3.style.top = `${e.clientY-20}px`;
menus3.style.left = `${e.clientX-6}px`;
Expand Down Expand Up @@ -1209,8 +1217,9 @@ var content_js = /**
curLevel = hLevel

if (heading.id === "") {
console.log('>>>if no heading id')
let tmpId = "toc-" + idFlag.toString() + "-" + titleText.replace(/\s+/g,"_").toLowerCase();
console.log('>>>if no heading id');
let tempTitle1 = titleText.replace(/\s+/g,"_").toLowerCase();
let tmpId = "toc-" + idFlag.toString() + "-" + tempTitle1.replace(/:+/g,"_");
heading.id = tmpId;
}
preTocItem.id = heading.id;
Expand Down

0 comments on commit 4649acf

Please sign in to comment.