diff --git a/task1-backend/lib/api.go b/task1-backend/lib/api.go index c25b277..dad7369 100644 --- a/task1-backend/lib/api.go +++ b/task1-backend/lib/api.go @@ -111,7 +111,7 @@ func (a *Api) checkAnswer(ctx *routing.Context) (err error) { claims := &jwtgo.StandardClaims{ Id: id.String(), Subject: answer.Name, - Issuer: "Anonymous Moroz Grandfather", + Issuer: "a quest", IssuedAt: now.Unix(), } @@ -125,8 +125,8 @@ func (a *Api) checkAnswer(ctx *routing.Context) (err error) { ctx.Response.Header.Set("Content-Type", "application/json") _, err = ctx.WriteString(fmt.Sprintf(` -["переход на следующий уровень ищи в альтернативном имени безопасного узла", -"используй ключ чтобы открыть следующий уровень", +["to find the next level check the subject alternative name", +"and use there this key to continue", "%s"] `, jwt)) if err != nil { diff --git a/task1/index.html b/task1/index.html index be088cf..10d47d3 100755 --- a/task1/index.html +++ b/task1/index.html @@ -2,7 +2,7 @@ - по следам анонимного деда мороза + First, let's grab some beer @@ -16,15 +16,21 @@
- иди по следу анонимного деда мороза и найди свой последний подарок! всего здесь тебя ждут три уровня. и да, - будь внимателен с именем, удачи! +
+One of the earliest signs of a "beer boom" is a lack of beer. The trend started during Prohibition, when prices started getting higher. People were not interested in beer. The people who didn't wanted to buy alcohol didn't care at all. They wanted better quality things, and not getting high. +
+The text above doesn't make sense. What is the author trying to say? +
+Just have some fun and +
+be careful with a name.
-
- +
+
-
- +
+
@@ -32,7 +38,7 @@
diff --git a/task1/js/main.js b/task1/js/main.js index 0cb24b3..8a33216 100755 --- a/task1/js/main.js +++ b/task1/js/main.js @@ -42,7 +42,7 @@ import '../css/util.css'; a.removeClass("hidden"); if (!approval.length) { - return msg.text("ну что-то сломалось 😅"); + return msg.text("something bad happend 😅"); } msg.empty(); @@ -56,11 +56,11 @@ import '../css/util.css'; var notpass = function () { bt.attr("disabled", false); bg.css("background", ""); - txt.text("хм, давай еще 🧐"); + txt.text("nope, try again 🧐"); setTimeout((bt.addClass("animated shake"), function () { bt.removeClass("animated shake") }), 1000); } - var rocking = setInterval((txt.text("хм 🚀"), function () { txt.text(txt.text() + "🚀") }), 50); + var rocking = setInterval((txt.text("hmm 🚀"), function () { txt.text(txt.text() + "🚀") }), 50); fetch('/answer/check', { method: 'POST', diff --git a/task2-backend/lib/api.go b/task2-backend/lib/api.go index 601fea5..32f6bc4 100644 --- a/task2-backend/lib/api.go +++ b/task2-backend/lib/api.go @@ -135,14 +135,14 @@ func (a *Api) checkScore(ctx *routing.Context) (err error) { if int64(zz[0].Score) > score.Score { resp.Msg = []string{ - `ух, хорошая игра, но нужно стараться еще!`, + `what a game! but try harder next time`, } } else { resp.Msg = []string{ - `поздравляю с победой`, - `следующий уровень ищи здесь:`, + `congratulations! you are the winner!`, + `to enter the next level use:`, `nc 1451e73305328869824eda4c81a75cb5.mehrweg.ga 31337`, - `отправь туда ключ чтобы открыть`, + `send your existing key to the server to let the next level run`, } _, err = a.Redis.SAdd(a.WinnersKey, claims.Id).Result() diff --git a/task2/index.html b/task2/index.html index d0f9f2c..cc6834a 100755 --- a/task2/index.html +++ b/task2/index.html @@ -2,7 +2,7 @@ - по следам анонимного деда мороза + Second, grab more beer @@ -16,11 +16,10 @@
- предлагаю поиграть, простая игра пинг-понг, вводи ключ и понеслась! первому месту в рейтинге открывается - скрытое знание. + let's play a bit, this is just a simple ping-pong game. should be easy to win, right? just put your key to begin. -
+
@@ -29,7 +28,7 @@
diff --git a/task2/js/main.js b/task2/js/main.js index 943ed45..16d0052 100755 --- a/task2/js/main.js +++ b/task2/js/main.js @@ -400,7 +400,7 @@ window.cancelRequestAnimFrame = (function () { ctx.font = "20px Roboto, sans-serif"; ctx.textAlign = "center"; ctx.textBaseline = "middle"; - ctx.fillText("Сохраняю результат...", W / 2, H / 2 + 25); + ctx.fillText("Saving...", W / 2, H / 2 + 25); var key = sessionStorage.getItem("key"); @@ -412,7 +412,7 @@ window.cancelRequestAnimFrame = (function () { .catch(function () { }) .then(function (approval) { if (!approval) { - ctx.fillText("Не удалось сохранить с этим ключом", W / 2, H / 2 + 65); + ctx.fillText("Cannot save with this key", W / 2, H / 2 + 65); return }