-
Обо мне
-
Булочная
-
Анализ Групп
+
diff --git a/main.js b/main.js
index e315716..dda2d20 100644
--- a/main.js
+++ b/main.js
@@ -1,6 +1,4 @@
function showHint() {
- console.log(document.getElementById("hint-div").style.display);
-
if (document.getElementById("hint-div").style.display == "block") {
document.getElementById("hint-div").style.display = "none";
document.getElementById("hint-link").innerHTML = "Что это?";
@@ -10,4 +8,11 @@ function showHint() {
document.getElementById("hint-link").innerHTML = "Понял";
document.getElementById("hint-link").style.color = "black";
}
+}
+
+var xhttp = new XMLHttpRequest();
+
+function send() {
+ xhttp.open("GET", "http://status.anatolykopyl.ru:5001/update", true);
+ xhttp.send();
}
\ No newline at end of file
diff --git a/server/index.js b/server/index.js
index 4185175..5c8bbe6 100644
--- a/server/index.js
+++ b/server/index.js
@@ -10,16 +10,18 @@ dotenv.config();
const app = Express();
const port = process.env.PORT || 5001;
-const statusIds = [1, 2, 3, 4, 5, 9, 10, 17, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 38, 39];
+//const statusIds = [1, 2, 3, 4, 5, 9, 10, 17, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 38, 39];
+const statusIds = [114, 115, 116, 117, 118, 119, 120, 121];
app.use(Cors());
app.get('/update', (req, res) => {
var id = statusIds[Math.floor(Math.random() * statusIds.length)];
- let url = `https://api.vk.com/method/users.setCovidStatus?access_token=${process.env.TOKEN}&status_id=${id}&v=5.103`;
+ let url = `https://api.vk.com/method/status.setImage?access_token=${process.env.TOKEN}&status_id=${id}&v=5.103`;
httpsReq(url).then((response) => {
console.log(response);
- res.redirect("https://status.anatolykopyl.ru");
+ //res.redirect("https://status.anatolykopyl.ru");
+ res.send();
});
});
diff --git a/style.css b/style.css
index 9c5a752..3e13a68 100644
--- a/style.css
+++ b/style.css
@@ -1,13 +1,13 @@
* {
font-family: 'Open Sans', sans-serif;
}
-html {
- height: 100%;
-}
-
-body {
+html, body {
height: 100%;
margin: 0px;
+}
+
+.main {
+ height: 100%;
text-align: center;
display: flex;
flex-direction: column;
@@ -75,6 +75,7 @@ div.links a:hover {
font-size: small;
text-decoration: underline;
z-index: 10;
+ cursor: pointer;
}
#hint-div {