-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
68 lines (59 loc) · 2.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Klip.im - Stickers 4 devs</title>
<!-- CSS -->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:300,900" />
<link rel="stylesheet" href="public/css/main.css" />
</head>
<body>
<aside class="sidebar">
<h1>
<a href="/" class="sidebar-logo"></a>
</h1>
<div class="stickers-list-box">
<ul id="stickers-list"></ul>
</div>
</aside>
<main class="main">
<div class="sticker-meta">
<div class="sticker-data">
<h1 class="sticker-title">---</h1>
<a href="#" class="sticker-link" target="_blank">---</a>
</div>
<div class="sticker-download">
<a href="#" class="btn-download" id="download-button">Download</a>
<div class="sticker-download-list">
<a href="#" class="sticker-download-item">Item1</a>
<a href="#" class="sticker-download-item">Item2</a>
<a href="#" class="sticker-download-item">Item3</a>
<a href="#" class="sticker-download-item">Item4</a>
<a href="#" class="sticker-download-item">Item5</a>
</div>
</div>
</div>
<canvas class="canvas lower-canvas" id="canvas" width="750" height="560"></canvas>
</main>
<!--
<div class="coffee">
<div class="smoke"></div>
</div>
-->
<!-- JS -->
<script src="//cdnjs.cloudflare.com/ajax/libs/fabric.js/1.4.0/fabric.min.js"></script>
<script src="public/js/main.js"></script>
<script>
var downloadLink = document.getElementById('download-button');
var bodyPage = document.querySelector('body');
downloadLink.addEventListener('click', function (event) {
event.stopPropagation();
document.querySelector('.sticker-download-list').style.display="block";
});
bodyPage.addEventListener('click', function (event) {
event.stopPropagation();
document.querySelector('.sticker-download-list').style.display="none";
});
</script>
</body>
</html>