Skip to content

Commit ecb4736

Browse files
authored
Update game.min.js
1 parent a5bf88c commit ecb4736

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

1-70-0/js/game.min.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40285,6 +40285,19 @@ var Screen = function() {
4028540285
size: Prodigy.Control.TextButton.MED
4028640286
}, this. game.prodigy.open.message("To load your character with Google, click on load character, choose your save file, click on the Sign in with Google button, and then choose your Google account."), this.showLogin.bind(this, !0)), this.error.visible = !1, this.closeButton.visible = !1, this.progressBox.visible = !1, this.createAccountButton = this.game.prodigy.create.button(this.background, 100, 560, "login-buttons", "student", this.game.prodigy.start.bind(this, "CharCreate")), this.googleLoginButton = document.createElement("button"), this.googleLoginButton.style.position = "absolute", this.googleLoginButton.style.display = "block", this.googleLoginButton.style.left = "103px", this.googleLoginButton.style.top = "480px", this.googleLoginButton.style.height = "65px", this.googleLoginButton.style.width = "285px", this.googleLoginButton.setAttribute("id", "google-button"), this.googleButtonHeightOffset = 0, this.canvas = $("#game-container canvas");
4028740287
var i = document.getElementById("external-ui");
40288+
i.appendChild(this.googleLoginButton), this.googleLoginButton.addEventListener("click", this.onGoogleLoginButtonClick.bind(this)), this.googleLoginButton.addEventListener("mouseenter", function() {
40289+
this.googleButtonHeightOffset = 3
40290+
}.bind(this)), this.googleLoginButton.addEventListener("mouseleave", function() {
40291+
this.googleButtonHeightOffset = 0
40292+
}.bind(this)), this.googleLoginButton.style.backgroundImage = "url('" + GameConstants.get("GameConstants.Build.ASSETS_LOCATION") + "v1/single-images/login-google-signin/1/google-signin-btn.png')", this.googleLoginButton.style.backgroundRepeat = "no-repeat", this.googleLoginButton.style.backgroundSize = "100% 100%", this.googleLoginButton.style.backgroundColor = "transparent", e.isGoogleAuthLoaded || (this.googleLoginButton.disabled = !0, $("#google-button").css({
40293+
opacity: .65,
40294+
cursor: "default"
40295+
}), e.onGoogleAuthLoadedCallback = function() {
40296+
e.isGoogleAuthLoaded && (this.googleLoginButton.disabled = !1, $("#google-button").css({
40297+
opacity: 1,
40298+
cursor: "default"
40299+
}))
40300+
}.bind(this));
4028840301
var a = this.game.prodigy.create.panel(this.background, 100, 660, 4, 1, "lb");
4028940302
a.alpha = .25, this.game.prodigy.create.font(this.background, a.x, a.y + 8, "Privacy Policy", {
4029040303
size: 16,

0 commit comments

Comments
 (0)