summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/css/custom.css15
-rw-r--r--assets/js/analytics.js35
2 files changed, 0 insertions, 50 deletions
diff --git a/assets/css/custom.css b/assets/css/custom.css
deleted file mode 100644
index 4fab9b4..0000000
--- a/assets/css/custom.css
+++ /dev/null
@@ -1,15 +0,0 @@
-body {
- background-color: black;
-}
-
-.title div {
- color: white;
- font-size: 24px;
- font-weight: bold;
- margin: 19.92px 0 19.92px 0;
-}
-
-.white-link {
- color: white;
- text-decoration: none;"
-}
diff --git a/assets/js/analytics.js b/assets/js/analytics.js
deleted file mode 100644
index 9968ed5..0000000
--- a/assets/js/analytics.js
+++ /dev/null
@@ -1,35 +0,0 @@
-async function getIpAndCountry() {
- try {
- const response = await fetch("https://freeipapi.com/api/json")
- const data = await response.json()
- return {
- ip: data.ipAddress,
- country: data.countryName
- }
- } catch (error) {
- return { ip: "Unknown", country: "Unknown" }
- }
-}
-
-
-const url = "https://analytics.miraikumiko.com/api/send"
-const referrer = document.referrer
-const userAgent = navigator.userAgent
-const pageUrl = window.location.href
-const clientData = await getIpAndCountry()
-const data = {
- referrer: referrer,
- user_agent: userAgent,
- page_url: pageUrl,
- ip: clientData.ip,
- country: clientData.country
-}
-
-
-fetch(url, {
- method: "POST",
- headers: {
- "Token": "AAAA1234"
- },
- body: JSON.stringify(data)
-})