-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (78 loc) · 3.66 KB
/
index.html
File metadata and controls
82 lines (78 loc) · 3.66 KB
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
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Unicode Party: The Unicode Emoji Search Engine</title>
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🌞</text></svg>"
/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Unicode emoji search engine">
<meta name="author" content="Trey Hunner">
<meta name="creator" content="Truthful Technology, LLC">
<meta property="og:image" content="https://unicode.party/logo.png">
<meta property="og:title" content="Unicode Party 🎈">
<meta property="og:url" content="https://unicode.party">
<meta property="og:description" content="Unicode emoji search engine">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<link rel="search" type="application/opensearchdescription+xml" title="Unicode Party" href="/opensearch.xml">
</head>
<body x-data="main">
<div class="alerts" x-data="copyCharacters">
<template x-for="char in copyCharacters">
<div class="alert alert-success">
Copied <span class="emoji-text" x-text="char"></span>
</div>
</template>
</div>
<header class="header">
<a href="/" class="active">
<h1 class="header-title">Unicode Party <span class="header-balloon">🎈</span></h1>
<h5 class="header-subtitle">The Unicode Emoji Search Engine</h5>
</a>
</header>
<main>
<form role="search" @submit.prevent>
<div class="form-element">
<input type="search" id="query" autofocus x-model="search"
x-init="setQuery(); $nextTick(() => { $el.select(); });"
:class="{ active: search.length > 0 }"
@keyup.enter.window="if (document.activeElement === $el) { $el.blur() } else { $el.select() }">
<label for="query">Search</label>
</div>
<div class="form-element">
<select id="skintone"
x-model="currentSkinToneChar"
:class="{ active: currentSkinToneChar !== skinTones.none}"
x-init="$nextTick(() => { loadSkinToneFromLocalStorage() })">
<template x-for="[name, modifier] in Object.entries(skinTones)">
<option :value="modifier"
x-text="modifier + ' ' + toKebabCase(name)"></option>
</template>
</select>
<label for="skintone">Skin tone</label>
</div>
</form>
<section class="emoji-tiles">
<template x-for="emoji in filteredItems.slice(0, 40)">
<div class="emoji-tile"
:class="{ 'skintone-enabled': emoji.skinTone }"
x-on:click="copy(withSkinTone(emoji))">
<div class="emoji-char" x-text="withSkinTone(emoji)">😀</div>
<div class="emoji-name" x-text="emoji.name">grinning face</div>
<div class="emoji-copy" x-text="window.matchMedia('(pointer: coarse)').matches?'Tap to Copy':'Click to Copy'">Click to Copy</div>
</div>
</template>
</section>
</main>
<footer>
<p>Unicode Emoji characters work on Facebook, Twitter, Hangouts, Android, iOS, and a number of other platforms.</p>
<h5>🐍 <a href="https://www.pythonmorsels.com/">Write better Python code</a> 🐍</h5>
<h6>💖 All code available on <a href="https://github.com/TruthfulTechnology/unicode.party">GitHub</a> 💖</h6>
</footer>
<script type="module" src="/main.js"></script>
</body>
</html>