Skip to content

Commit

Permalink
Deploying to gh-pages from @ 8b1f3d1 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
MCTBL committed Feb 21, 2025
1 parent 5921fea commit 98a2c7e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
7 changes: 4 additions & 3 deletions js/EeggMgr.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { TipsMgr } from "./TipsMgr.js";
import { Utils } from "./Utils.js";
export class EeggMgr {
static showEegg() {
Expand All @@ -12,7 +13,7 @@ export class EeggMgr {
}
//显示
if (Math.random() < 0.5) {
console.log(this.eeggs.txt[this.txtIndex]);
TipsMgr.showTips(this.eeggs.txt[this.txtIndex]);
this.txtIndex++;
if (this.txtIndex >= this.eeggs.txt.length) {
this.txtIndex = 0;
Expand All @@ -34,11 +35,11 @@ EeggMgr.imgIndex = -1;
//以及一些梗图
EeggMgr.eeggs = {
txt: [
"GTNH like a job",
"GTNH is like a job",
],
img: [
"static/eeggs/1.png",
]
};
//概率
EeggMgr.rate = 0.005;
EeggMgr.rate = 0.1;
1 change: 0 additions & 1 deletion js/MainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ export class MainPage {
}
showProjectMsg() {
setTimeout(() => {
console.clear();
console.log(`%c${ProjectConfig.projectName_zh}\n\n%c${ProjectConfig.projectDsc_zh}\n\n%c作者: ${ProjectConfig.projectAuthor}\n\n%c项目地址: ${ProjectConfig.projectUrl}`, "color:#252525; font-size: 30px;", "color:#e12885; font-size: 18px;", "color:#137a7f; font-size: 20px;", "color:#525658; font-size: 16px;");
}, 300);
}
Expand Down
2 changes: 1 addition & 1 deletion js/PopMgr.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class PopMgr {
if (temp[i] !== undefined) {
if (i % 2 === 1 && temp[i].trim().length > 0) {
let temp_str = temp[i];
new_desc += `<a href="${temp_str}">${temp_str}</a>`;
new_desc += `<a href="${temp_str}" target="_blank">${temp_str}</a>`;
}
else {
new_desc += temp[i];
Expand Down
4 changes: 2 additions & 2 deletions js/ProjectData.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ ProjectData.infoQuest = [
y: 0,
data: `
§c§l${ProjectConfig.projectDsc}§r<br/><br/>
§lAuthor:§r §9§l<a class="githubLink" href="https://github.com/MCTBL">${ProjectConfig.projectAuthor[0]}</a>§r、 §3§l<a class="githubLink" href="https://github.com/NoRainLand">${ProjectConfig.projectAuthor[1]}</a>§r<br/><br/>
§lAuthor:§r §9§l<a class="githubLink" href="https://github.com/MCTBL" target="_blank">${ProjectConfig.projectAuthor[0]}</a>§r、 §3§l<a class="githubLink" href="https://github.com/NoRainLand" target="_blank">${ProjectConfig.projectAuthor[1]}</a>§r<br/><br/>
§lProject Address: [url]${ProjectConfig.projectUrl}[/url]§r<br/>
- If you have any questions or needs, please go to the repository to submit an issue.<br/><br/>
The icon in the upper right corner can switch languages, the lower left corner can turn the taskbar on and off, and the upper left corner is the search bar.<br/><br/>
Expand All @@ -168,7 +168,7 @@ ProjectData.infoQuest = [
y: 0,
data: `<br/>
§c§l${ProjectConfig.projectDsc_zh}§r<br/><br/>
§l作者:§r §9§l<a class="githubLink" href="https://github.com/MCTBL">${ProjectConfig.projectAuthor[0]}</a>§r、 §3§l<a class="githubLink" href="https://github.com/NoRainLand">${ProjectConfig.projectAuthor[1]}</a>§r<br/><br/>
§l作者:§r §9§l<a class="githubLink" href="https://github.com/MCTBL" target="_blank">${ProjectConfig.projectAuthor[0]}</a>§r、 §3§l<a class="githubLink" href="https://github.com/NoRainLand" target="_blank">${ProjectConfig.projectAuthor[1]}</a>§r<br/><br/>
§l项目地址: [url]${ProjectConfig.projectUrl}[/url]§r<br/>
- 有任何问题或需求前往仓库提交issue即可<br/><br/>
右上角图标可切换语言,左下角可开关任务栏,左上角为搜索栏<br/><br/>
Expand Down
2 changes: 1 addition & 1 deletion js/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class Utils {
}
}
static encodeMsg2AHref(msg) {
return msg.replace(/\[url\](https?:\/\/[^\s\[\]]+)\[\/url\]/g, '<a href="$1">$1</a>');
return msg.replace(/\[url\](https?:\/\/[^\s\[\]]+)\[\/url\]/g, '<a href="$1" target="_blank">$1</a>');
}
static expMCcolor(source_str) {
if (!source_str.includes("§")) {
Expand Down

0 comments on commit 98a2c7e

Please sign in to comment.