Skip to content

Commit

Permalink
[v0.10.18] Live website
Browse files Browse the repository at this point in the history
  • Loading branch information
auto-deploy committed Jan 6, 2024
1 parent d48e15f commit 29d1f75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3299,7 +3299,7 @@ <h5>Welcome to the Battle Frontier!</h5>


<rect class="city"
data-town="Route 26"
data-town="Johto Route 26"
x="112"
y="464"
height="240"
Expand All @@ -3316,7 +3316,7 @@ <h5>Welcome to the Battle Frontier!</h5>


<rect class="city"
data-town="Route 27"
data-town="Johto Route 27"
x="0"
y="656"
height="48"
Expand All @@ -3333,7 +3333,7 @@ <h5>Welcome to the Battle Frontier!</h5>


<rect class="city"
data-town="Route 28"
data-town="Johto Route 28"
x="0"
y="416"
height="48"
Expand All @@ -3350,7 +3350,7 @@ <h5>Welcome to the Battle Frontier!</h5>


<rect class="city"
data-town="Route 28"
data-town="Johto Route 28"
x="0"
y="480"
height="64"
Expand Down Expand Up @@ -9212,7 +9212,7 @@ <h5>Welcome to the Battle Frontier!</h5>


<rect class="city"
data-town="Route 22"
data-town="Kanto Route 22"
x="1536"
y="416"
height="48"
Expand Down
10 changes: 7 additions & 3 deletions docs/scripts/script.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2043,10 +2043,14 @@ Game.achievementCounter = 0;
class GameController {
static applyRouteBindings() {
$('path, rect').hover(function () {
const id = $(this).attr('data-town');
if (id && id != 'mapTooltipWrapper') {
let tooltipText = $(this).attr('data-town');
const route = $(this).attr('data-route');
if (route) {
tooltipText = Routes.getName(Number(route), player.region);
}
if (tooltipText) {
const tooltip = $('#mapTooltip');
tooltip.text(id);
tooltip.text(tooltipText);
tooltip.css('visibility', 'visible');
}
}, () => {
Expand Down

0 comments on commit 29d1f75

Please sign in to comment.