-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (45 loc) · 1.58 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Koodiklinikka nimilappu generaattori</title>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
<!--<script src="magic.js"></script>-->
</head>
<body onload="handleBoot()">
<div class="laput">
<button class="lisalappu" onclick="handleClickAdd()"><span>+</span>Tyhjä lappu</button>
<div class="hakulappu" style="display: none">
<input
type="search"
oninput="handleSearch(event)"
placeholder="Hae nimellä..."
/>
<div id="hakutulokset"></div>
</div>
</div>
<template id="lappu-template">
<div class="lappu">
<button class="delete-btn" onclick="handleYeet(event)">
× Poista
</button>
<div style="text-align: center">
<figure>
<input type="file" onchange="handleUpload(event)" />
<img
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M/wHwAEBgIApD5fRAAAAABJRU5ErkJggg=="
alt="Matti Meikäläinen"
style="width: 100%; height: 100%; object-fit: cover"
onDrop="handleDrop(event)"
onDragOver="handleDragOver(event)"
/>
</figure>
<h1 contenteditable class="nimi">Matti Meikäläinen</h1>
<h2 class="username" contenteditable>@mattimeikalainen</h2>
</div>
</div>
</template>
</body>
</html>