Skip to content

Commit

Permalink
Update preView.html
Browse files Browse the repository at this point in the history
  • Loading branch information
BeardedManZhao committed Apr 13, 2024
1 parent 79fe616 commit adab39e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/preView.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2 class="item_Button noClick" style="text-align: center">
</div>
<div class="nav_pc">
<div class="button_list0">
<button class="item_Button">点击下载!</button>
<button class="item_Button download_button">点击下载!</button>
<button class="item_Button" onclick="window.open('index.html')">前往主页!</button>
</div>
</div>
Expand Down Expand Up @@ -73,7 +73,7 @@ <h2 class="item_Button noClick" style="text-align: center">
document.querySelector('audio').hidden = false;
} else {
document.querySelector('button').innerText = `不支持预览 *${searchParamType} 点击下载!`
document.querySelector('button').addEventListener('click', () => window.open(searchParam))
document.querySelector('.download_button').addEventListener('click', () => window.open(searchParam))
}
}
</script>

0 comments on commit adab39e

Please sign in to comment.