-
Notifications
You must be signed in to change notification settings - Fork 0
/
cati-store-logo.html
60 lines (60 loc) · 2.01 KB
/
cati-store-logo.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="style.css" />
<style>
body{
background-color: #555;
}
</style>
<script src="html2canvas.min.js"></script>
<script>
function takeshot(){
let div = document.getElementById('photo');
html2canvas(div).then( function (canvas){
document.getElementById('output').appendChild(canvas);
});
}
</script>
</head>
<body>
<center id="photo" style="background-image: url('bag.png'); background-repeat: no-repeat; background-position: center; height: 520px; width: 460px; background-color: #555;">
<div class="main" style="width: 400px; transform: scale(0.7) translate(0, 300px)">
<div class='octagonWrap'>
<div class="sybil">
<div class="left">
<hr class="left-first" /><br />
<hr /><br />
<hr class="left-last" /><br />
</div>
<div class="right">
<hr class="right-first" /><br />
<hr /><br />
<hr class="right-last" /><br />
</div>
</div>
<div class='octagon'>
<div class='octagonWrap-mini'>
<div class='octagon'>
<div class="square"></div>
</div>
</div>
<div class="trapezoid"></div>
</div>
</div>
</div>
</center>
<center style="padding: 30px;">
<h3>Cati store logo</h3>
<h4>By <a href="https://github.com/parsampsh">parsa shahmaleki</a></h4>
<button onclick="takeshot()">Output</button>
<br />
<br />
<br />
<div id="output"></div>
</center>
</body>
</html>