mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-26 04:50:18 +00:00
no message
This commit is contained in:
parent
0e63255a7f
commit
b6eb77ae63
16
public/site/css/download.css
vendored
16
public/site/css/download.css
vendored
@ -84,7 +84,7 @@
|
||||
color: var(--text-color);
|
||||
}
|
||||
.update-ul{
|
||||
width: 515px;
|
||||
width: 465px;
|
||||
}
|
||||
.update-item{
|
||||
display: flex;
|
||||
@ -127,7 +127,7 @@
|
||||
background-size: contain;
|
||||
}
|
||||
.update-r{
|
||||
max-width: 622px;
|
||||
max-width: 672px;
|
||||
margin-left: 123px;
|
||||
box-shadow: 0px 2px 8px 4px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 45px;
|
||||
@ -168,9 +168,13 @@
|
||||
}
|
||||
.download-other-btn{
|
||||
padding: 10px 16px;
|
||||
color: var(--txt-theme-color);
|
||||
color: var(--txt-gray-color);
|
||||
opacity: .7;
|
||||
border-radius: 8px;
|
||||
margin-top: 32px;
|
||||
margin-bottom: 120px;
|
||||
border: 1px solid var(--txt-theme-color);
|
||||
margin-top: 64px;
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
.download-other-btn:hover{
|
||||
color: var(--txt-theme-color);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@ -105,10 +105,10 @@
|
||||
<img class="icon mb-8" src="../img/dow_ios.svg" alt="ios">
|
||||
<i class="txt-4001624 txt">ios</i>
|
||||
</a>
|
||||
<div class="hover">
|
||||
<a class="hover" href="https://apps.apple.com/cn/app/dootask/id1624855111" target="_blank">
|
||||
<img class="qr-code mb-8" src="../img/ios_code.png" alt="Scan download,ios">
|
||||
<i class="txt-4001624 txt"> Download</i>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="download-ul-item dow-animate-box" style="--delay: 0.1s;" onmouseover='handleMouseover(1)' onmouseout='handleMouseout(1)'>
|
||||
<a class="normal" href="https://www.dootask.com/desktop/publish/latest?platform=android" target="_blank" id="Android">
|
||||
@ -394,17 +394,15 @@ function movieHandle(flag=true){
|
||||
}
|
||||
if(index==0){
|
||||
if(isIos){
|
||||
// Safari
|
||||
if (navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1 && navigator.userAgent.indexOf('Edge') === -1) {
|
||||
return (window.open(item.children[0].href,"_blank"));
|
||||
}
|
||||
return window.open(item.children[0].href,"_blank")
|
||||
window.location.href = item.children[0].href
|
||||
return
|
||||
}
|
||||
return showBox("Not supported on current device")
|
||||
}
|
||||
if(index==1){
|
||||
if(isAndroid){
|
||||
return window.open(item.children[0].href,"_blank")
|
||||
window.location.href = item.children[0].href
|
||||
return
|
||||
}
|
||||
return showBox("Not supported on current device")
|
||||
}
|
||||
|
||||
@ -2375,7 +2375,7 @@
|
||||
const offset = 90; // 上偏移量(可以根据需要进行调整)
|
||||
const targetPosition =
|
||||
content.getBoundingClientRect().top +
|
||||
window.pageYOffset; // 目标位置相对于视口的位置
|
||||
window.scrollY; // 目标位置相对于视口的位置
|
||||
// 滚动到目标位置,并考虑上偏移量
|
||||
window.scrollTo({
|
||||
top: targetPosition - offset,
|
||||
|
||||
@ -416,7 +416,16 @@ function domHandle (html){
|
||||
value.classList.toggle('active', value === clickedItem);
|
||||
}
|
||||
}
|
||||
window.location.hash = '#section-'+updateLogNum
|
||||
window.history.scrollRestoration = 'manual';
|
||||
const topSection = changelog.querySelector(`#section-${updateLogNum}`)
|
||||
if (topSection) {
|
||||
const offset = 90; // 上偏移量(可以根据需要进行调整)
|
||||
const targetPosition = topSection.getBoundingClientRect().top + window.scrollY; // 目标位置相对于视口的位置
|
||||
// 滚动到目标位置,并考虑上偏移量
|
||||
window.scrollTo({
|
||||
top: targetPosition-offset,
|
||||
});
|
||||
}
|
||||
}
|
||||
handleMou()
|
||||
localStorage.removeItem('update_log_num')
|
||||
@ -459,7 +468,7 @@ function logsHandler(){
|
||||
const content = document.getElementById(`${id}`)
|
||||
if (content) {
|
||||
const offset = 90; // 上偏移量(可以根据需要进行调整)
|
||||
const targetPosition = content.getBoundingClientRect().top + window.pageYOffset; // 目标位置相对于视口的位置
|
||||
const targetPosition = content.getBoundingClientRect().top + window.scrollY; // 目标位置相对于视口的位置
|
||||
// 滚动到目标位置,并考虑上偏移量
|
||||
window.scrollTo({
|
||||
top: targetPosition-offset,
|
||||
|
||||
@ -105,10 +105,10 @@
|
||||
<img class="icon mb-8" src="../img/dow_ios.svg" alt="ios">
|
||||
<i class="txt-4001624 txt">ios</i>
|
||||
</a>
|
||||
<div class="hover">
|
||||
<a class="hover" href="https://apps.apple.com/cn/app/dootask/id1624855111" target="_blank">
|
||||
<img class="qr-code mb-8" src="../img/ios_code.png" alt="扫描下载,ios">
|
||||
<i class="txt-4001624 txt">扫描下载</i>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="download-ul-item dow-animate-box" style="--delay: 0.1s;" onmouseover='handleMouseover(1)' onmouseout='handleMouseout(1)'>
|
||||
<a class="normal" href="https://www.dootask.com/desktop/publish/latest?platform=android" target="_blank" id="Android">
|
||||
@ -392,17 +392,15 @@ function movieHandle(flag=true){
|
||||
}
|
||||
if(index==0){
|
||||
if(isIos){
|
||||
// Safari
|
||||
if (navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1 && navigator.userAgent.indexOf('Edge') === -1) {
|
||||
return (window.open(item.children[0].href,"_blank"));
|
||||
}
|
||||
return window.open(item.children[0].href,"_blank")
|
||||
window.location.href = item.children[0].href
|
||||
return
|
||||
}
|
||||
return showBox("当前终端不支持")
|
||||
}
|
||||
if(index==1){
|
||||
if(isAndroid){
|
||||
return window.open(item.children[0].href,"_blank")
|
||||
window.location.href = item.children[0].href
|
||||
return
|
||||
}
|
||||
return showBox("当前终端不支持")
|
||||
}
|
||||
|
||||
@ -759,7 +759,7 @@ tabItems.forEach(item=>{
|
||||
const content = document.getElementById(`${id}`)
|
||||
if (content) {
|
||||
const offset = 90; // 上偏移量(可以根据需要进行调整)
|
||||
const targetPosition = content.getBoundingClientRect().top + window.pageYOffset; // 目标位置相对于视口的位置
|
||||
const targetPosition = content.getBoundingClientRect().top + window.scrollY; // 目标位置相对于视口的位置
|
||||
// 滚动到目标位置,并考虑上偏移量
|
||||
window.scrollTo({
|
||||
top: targetPosition-offset,
|
||||
|
||||
@ -414,7 +414,16 @@ const domHandle = (html)=>{
|
||||
value.classList.toggle('active', value === clickedItem);
|
||||
}
|
||||
}
|
||||
window.location.hash = '#section-'+updateLogNum
|
||||
window.history.scrollRestoration = 'manual';
|
||||
const topSection = changelog.querySelector(`#section-${updateLogNum}`)
|
||||
if (topSection) {
|
||||
const offset = 90; // 上偏移量(可以根据需要进行调整)
|
||||
const targetPosition = topSection.getBoundingClientRect().top + window.scrollY; // 目标位置相对于视口的位置
|
||||
// 滚动到目标位置,并考虑上偏移量
|
||||
window.scrollTo({
|
||||
top: targetPosition-offset,
|
||||
});
|
||||
}
|
||||
}
|
||||
handleMou()
|
||||
localStorage.removeItem('update_log_num')
|
||||
@ -457,7 +466,7 @@ function logsHandler(){
|
||||
const content = document.getElementById(`${id}`)
|
||||
if (content) {
|
||||
const offset = 90; // 上偏移量(可以根据需要进行调整)
|
||||
const targetPosition = content.getBoundingClientRect().top + window.pageYOffset; // 目标位置相对于视口的位置
|
||||
const targetPosition = content.getBoundingClientRect().top + window.scrollY; // 目标位置相对于视口的位置
|
||||
// 滚动到目标位置,并考虑上偏移量
|
||||
window.scrollTo({
|
||||
top: targetPosition-offset,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user