Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit 88b3980

Browse files
LeoBadeaux00100000
authored andcommitted
Make show/hide menu actually work
1 parent 7a0a30c commit 88b3980

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

willsCheatMenu/dist/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

willsCheatMenu/src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ title.innerText = "Will's Prodigy Cheat Menu";
5353
menuleft.append(title);
5454
const disc = document.createElement("h2");
5555
disc.style.fontSize = "30px";
56-
disc.innerHTML = "Join our Discord for giveaways, access to new hacks, and notices of hack outages! <a href='https://discord.gg/XQDfbfq'>https://discord.gg/XQDfbfq</a>";
56+
disc.innerHTML = "Join our Discord for giveaways, access to new hacks, and notices of hack outages! <a href='https://discord.gg/XQDfbfq'>https://discord.gg/XQDfbfq</a> <br> Press SHIFT to show/hide the menu.";
5757
menuleft.append(disc);
5858
const subtitle = document.createElement("h3");
5959
subtitle.style.fontSize = "20px";
6060
subtitle.innerHTML = `On behalf of <a href="https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/README.md">ProdigyMathGameHacking</a>. <a href="https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/blob/master/README.md#Motivation">Learn about our mission</a>.
6161
<hr>
62-
This is free and open-source software. If you paid for this or accessed this behind a paywall/AdFly link, demand a refund. If you sell this software, or otherwise make a commercial advantage from it, you are violating Github conduct by not cooperating with our license.`;
62+
This is free and open-source software. If you paid for this or accessed this behind a paywall/AdFly link, demand a refund. If you sell this software, or otherwise make a commercial advantage from it, you are violating Github conduct by not cooperating with our license.
63+
`;
6364
menuleft.append(subtitle);
6465

6566
export class Hack {
@@ -179,8 +180,8 @@ if (localStorage.getItem("level")) {
179180
_.player.getLevel = () => localStorage.getItem("level");
180181
}
181182

182-
document.addEventListener("keypress", function (event) {
183-
if (event.keyCode == 16) {
183+
document.addEventListener("keydown", function (event) {
184+
if (event.key == "Shift") {
184185
if (document.getElementById("cheat-menu").style.display == "block" && document.getElementById("menu-toggler").style.display == "block") {
185186
// Cheats are shown, so let's hide them.
186187
document.getElementById("cheat-menu").style.display = "none";

0 commit comments

Comments
 (0)