Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor translate #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ <h1>Mikutap</h1>
<div class="set">
<p class="attention">点击 &amp; 拖动或者按任意键!</p>
<p class="set_bt" id="bt_backtrack"><a href="">背景音乐: 开启</a></p>
<p class="set_bt" id="bt_feedback"><a href="">FEEDBACK: ON</a></p>
<p class="set_bt" id="bt_anime"><a href="">ANIME: ON</a></p>
<p class="set_bt" id="bt_backplay"><a href="">Back Play: ON</a></p>
<p class="set_bt" id="bt_autoplay"><a href="">Auto Play: ON (SPACE to Stop)</a></p>
<p class="set_bt" id="bt_feedback"><a href="">按键反馈: 开启</a></p>
<p class="set_bt" id="bt_anime"><a href="">动画: 开启</a></p>
<p class="set_bt" id="bt_backplay"><a href="">后台播放: 开启</a></p>
<p class="set_bt" id="bt_autoplay"><a href="">自动演奏: 开启 (按空格键切换)</a></p>
</div>
</div>
<div id="about_cover"></div>
Expand Down
6 changes: 3 additions & 3 deletions js/mikutap.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,23 @@ var MainManager = function () {
// aidn.util.setCookie("animeSwitch", "on", 2592e3)) :
// ($("#bt_anime a").text("ANIME: OFF"),
// aidn.util.setCookie("animeSwitch", "off", 2592e3)),
$("#bt_anime a").text("ANIME: " + flag)
$("#bt_anime a").text("动画: " + flag)
aidn.util.setCookie("animeSwitch", flag.toLowerCase(), 2592e3)
a && a.preventDefault()
}

function bt_backplay(a) {
var flag;
(backPlay = !backPlay) ? flag = "ON" : flag = "OFF";
$("#bt_backplay a").text("Back Play: " + flag)
$("#bt_backplay a").text("后台播放: " + flag)
aidn.util.setCookie("backPlay", flag.toLowerCase(), 2592e3)
a && a.preventDefault()
}

this.bt_autoplay = bt_autoplay = (a) => {
var flag;
(autoPlay = !autoPlay) ? flag = "ON" : flag = "OFF";
$("#bt_autoplay a").text(`Auto Play: ${flag} (SPACE to Stop)`)
$("#bt_autoplay a").text(`自动演奏: ${flag} (按空格键切换)`)
aidn.util.setCookie("autoPlay", flag.toLowerCase(), 2592e3)
MIKU_CONFIG.AUTO_PLAY = autoPlay
a && a.preventDefault()
Expand Down