diff --git a/public/src/js/about.js b/public/src/js/about.js index 7afbfd4..15d54f4 100644 --- a/public/src/js/about.js +++ b/public/src/js/about.js @@ -11,7 +11,7 @@ if(touchEnabled){ this.tutorialOuter.classList.add("touch-enabled") } - this.linkGithub = document.getElementById("link-github") + this.linkIssues = document.getElementById("link-issues") this.linkEmail = document.getElementById("link-email") var tutorialTitle = document.getElementById("tutorial-title") @@ -29,7 +29,13 @@ this.endButton.innerText = strings.tutorial.ok this.endButton.setAttribute("alt", strings.tutorial.ok) - pageEvents.add(this.linkGithub, ["click", "touchend"], this.linkButton.bind(this)) + var versionUrl = "https://github.com/bui/taiko-web/" + if(gameConfig._version){ + versionUrl = gameConfig._version.url + } + this.getLink(this.linkIssues).href = versionUrl + "issues" + + pageEvents.add(this.linkIssues, ["click", "touchend"], this.linkButton.bind(this)) pageEvents.add(this.linkEmail, ["click", "touchend"], this.linkButton.bind(this)) pageEvents.once(this.endButton, ["mousedown", "touchstart"]).then(this.onEnd.bind(this)) pageEvents.keyOnce(this, 13, "down").then(this.onEnd.bind(this)) @@ -141,7 +147,6 @@ } var issueBody = strings.issueTemplate + "\n\n\n\n" + diag - this.getLink(this.linkGithub).href += "?body=" + encodeURIComponent(issueBody) this.getLink(this.linkEmail).href += "?body=" + encodeURIComponent(issueBody.replace(/\n/g, "
\r\n")) } getLink(target){ @@ -153,7 +158,7 @@ clean(){ cancelTouch = true this.gamepad.clean() - pageEvents.remove(this.linkGithub, ["click", "touchend"]) + pageEvents.remove(this.linkIssues, ["click", "touchend"]) pageEvents.remove(this.linkEmail, ["click", "touchend"]) pageEvents.remove(this.endButton, ["mousedown", "touchstart"]) if(this.textarea){ @@ -164,7 +169,7 @@ delete this.diagTxt delete this.version delete this.tutorialOuter - delete this.linkGithub + delete this.linkIssues delete this.linkEmail delete this.textarea } diff --git a/public/src/js/strings.js b/public/src/js/strings.js index 92ca76c..e0a68c2 100644 --- a/public/src/js/strings.js +++ b/public/src/js/strings.js @@ -78,7 +78,7 @@ bugReporting: [ "このシミュレータは現在開発中です。", "バグが発生した場合は、報告してください。", - "GitHubかメールでバグを報告してください。" + "Gitリポジトリかメールでバグを報告してください。" ], diagnosticWarning: "以下の端末診断情報も併せて報告してください!", issueTemplate: "###### 下記の問題を説明してください。 スクリーンショットと診断情報を含めてください。" @@ -169,7 +169,7 @@ function StringsEn(){ bugReporting: [ "This simulator is still in development.", "Please report any bugs you find.", - "You can report bugs either via GitHub or email." + "You can report bugs either via our Git repository or email." ], diagnosticWarning: "Be sure to include the following diagnostic data!", issueTemplate: "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information." @@ -260,7 +260,7 @@ function StringsCn(){ bugReporting: [ "This simulator is still in development.", "Please report any bugs you find.", - "You can report bugs either via GitHub or email." + "You can report bugs either via our Git repository or email." ], diagnosticWarning: "Be sure to include the following diagnostic data!", issueTemplate: "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information." @@ -351,7 +351,7 @@ function StringsTw(){ bugReporting: [ "This simulator is still in development.", "Please report any bugs you find.", - "You can report bugs either via GitHub or email." + "You can report bugs either via our Git repository or email." ], diagnosticWarning: "Be sure to include the following diagnostic data!", issueTemplate: "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information." @@ -442,7 +442,7 @@ function StringsKo(){ bugReporting: [ "This simulator is still in development.", "Please report any bugs you find.", - "You can report bugs either via GitHub or email." + "You can report bugs either via our Git repository or email." ], diagnosticWarning: "Be sure to include the following diagnostic data!", issueTemplate: "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information." diff --git a/public/src/views/about.html b/public/src/views/about.html index 070bb2c..7ec8436 100644 --- a/public/src/views/about.html +++ b/public/src/views/about.html @@ -4,8 +4,8 @@