-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·61 lines (53 loc) · 2.18 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
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Hoop demo page">
<meta name="author" content="Emre Pişkin">
<title>Hoop — Emre Pişkin</title>
<link rel="shortcut icon" type="image/png" href="favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Pangolin&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="hoop.js"></script>
<script type="text/javascript" src="cumle-kaliplari.js"></script>
</head>
<body>
<div class="center-container">
<div class="box header">
<p>Hoop! İsmail Abi'yle rastgele selam verin.</p>
<p>Cümleye tıklayıp ✂️ kopyalayın,<br/>
hatrınızı soran eşe dosta 📨 gönderin.</p>
<p>Cümle kalıplarını <a href="./ayarlar.html" title="Ayarlar">🧰️ buradan</a> değiştirebilirsiniz.</p>
<a href="https://github.com/pemre/hoop" title="Star pemre/hoop on GitHub">
⭐ Yıldızla
</a>
<a href="https://github.com/pemre/hoop/fork" title="Fork pemre/hoop on GitHub">
🍴 Çatalla
</a>
<a href="https://github.com/pemre" title="Follow @pemre on GitHub">
💌️ Takip et @pemre
</a>
</div>
<div class="box" id="sentence" onclick="copyTextToClipboardFrom('#sentence')"></div>
</div>
<script type="text/javascript">
let groups = JSON.parse(localStorage.getItem('groups'))
if (!groups) {
console.log('"groups" local storage not found. Loading from groupsInitial...')
groups = groupsInitial
} else {
console.log('"groups" is loaded from local storage:', groups)
}
hoop(groups, 'sentence')
function copyTextToClipboardFrom (selector) {
const text = document.querySelector(selector).innerText
navigator.clipboard.writeText(text)
alert('Kopyalandı: ' + text)
}
</script>
</body>
</html>