-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
78 lines (74 loc) · 2.48 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link type="text/css" rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="script" href="script.js" />
<link
href="//db.onlinewebfonts.com/c/d7e8a95865396cddca89b00080d2cba6?family=SoDo+Sans+SemiBold"
rel="stylesheet"
type="text/css"
/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.13.0/css/all.css"
/>
<title>Random Location ✈️</title>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.13.0/css/all.css"
/>
<script id="_wau9tr">
var _wau = _wau || [];
_wau.push(["dynamic", "cry1yczj7f", "9tr", "", "small"]);
</script>
<script async src="//waust.at/d.js"></script>
<link rel="stylesheet" src="style.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Poppins:wght@300;400;500;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="mainButton">
<button id="random-location-button">Random Location✈️</button>
</div>
<div class="pop-up">
<p>
❗️ Announce:
<a href="https://mehmetkahya0.github.io/RandomStrangestLocations/"
>Random Strangest Locations is out!</a
>
</p>
</div>
<footer>
<p>
Mehmet Kahya -
<a href="https://github.com/mehmetkahya0/RandomLocation">This website is totally open-source project</a>
</p>
<div class="contact">
<a href="https://twitter.com/Mehmet1122334" target="_blank"
><i class="fab fa-twitter"></i
></a>
<a href="https://github.com/mehmetkahya0" target="_blank"
><i class="fab fa-github"></i
></a>
<a href="https://www.instagram.com/mehmettkahya_" target="_blank"
><i class="fab fa-instagram"></i
></a>
</div>
</footer>
<script>
const button = document.querySelector("#random-location-button");
button.addEventListener("click", function () {
const lat = Math.random() * 180 - 90;
const lng = Math.random() * 360 - 180;
const url = `https://www.google.com/maps/@${lat},${lng},8z`;
window.open(url, "_blank");
});
</script>
</body>
</html>