|
|
@@ -13,7 +13,7 @@ function rnd(range) {
|
|
|
return Math.floor((Math.random() * range));
|
|
|
}
|
|
|
|
|
|
-function egg1() {
|
|
|
+function findEgg1() {
|
|
|
httpGet("/api/greet/", function(data) {
|
|
|
document.getElementById("title").textContent = data;
|
|
|
document.getElementById("egg1").src = "img/egg1.svg";
|
|
|
@@ -22,7 +22,7 @@ function egg1() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function egg2() {
|
|
|
+function findEgg2() {
|
|
|
getJson("GET", "/api/greet/", null, function(data) {
|
|
|
if (data.title && data.subtitle) {
|
|
|
document.getElementById("title").textContent = data.title;
|
|
|
@@ -36,7 +36,7 @@ function egg2() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function egg3() {
|
|
|
+function findEgg3() {
|
|
|
var nums = [];
|
|
|
var count = 50 + rnd(50);
|
|
|
var start = rnd(50);
|
|
|
@@ -61,7 +61,7 @@ function egg3() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function egg4() {
|
|
|
+function findEgg4() {
|
|
|
var name = document.getElementById("name").value;
|
|
|
var message = document.getElementById("message").value;
|
|
|
if (!name || !message) {
|
|
|
@@ -83,7 +83,7 @@ function egg4() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function egg5() {
|
|
|
+function findEgg5() {
|
|
|
if (!maxId) {
|
|
|
document.getElementById("egg5").src = broken;
|
|
|
return;
|