-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccepted-here-widget.html
124 lines (113 loc) · 3.13 KB
/
accepted-here-widget.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<title>Canada eCoin Accepted Here Widget</title>
<style type="text/css">
.cdn-accepted-widget {
width: 280px;
height: 48px;
position: relative;
margin: 1em auto;
font-family: "Lato", Helvetica, Arial, sans-serif;
font-size: 0.8em;
font-weight: bold;
text-transform: uppercase;
color: #2d2d2d;
}
.cdn-accepted-widget * {
-moz-transition: all 1.6s ease;
-webkit-transition: all 1.6s ease;
-o-transition: all 1.6s ease;
-ms-transition: all 1.6s ease;
transition: all 1.6s ease;
}
.widget-background {
background-color: #fafafa;
border: 1px solid #ed2024;
width: 280px;
height: 48px;
position: relative;
overflow: hidden;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.widget-background:hover { cursor: pointer; }
.accepted-here {
position: absolute;
width: 100%;
height: 48px;
max-width: 238px;
left: 0;
top: 0;
padding: 0 0 0 42px;
background-color: #ed2024;
color: white;
line-height: 48px;
}
.logo {
position: absolute;
height: 60px;
width: 60px;
left: -30px;
top: -6px;
z-index: 10;
-moz-transition: all 1.6s easeInOut;
-webkit-transition: all 1.6s easeInOut;
-o-transition: all 1.6s easeInOut;
-ms-transition: all 1.6s easeInOut;
transition: al 1.6s easeInOut;
}
.tx-input { line-height: 48px; padding: 0 12px; }
.tx-input input {
background-color: #eaeaea;
border: none;
padding: 4px 6px;
line-height: 18px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.tx-input input.copied { background-color: lightgreen; }
.tx-input button, .tx-input a { position: relative; top: 3px; }
.tx-input button { border: none; background: none; }
.cdn-accepted-widget:hover .accepted-here {
left: 270px;
}
.cdn-accepted-widget:hover .logo {
-moz-transform: rotate(740deg);
-webkit-transform: rotate(740deg);
-o-transform: rorate(740deg);
-ms-transform: rotate(740deg);
transform: rotate(740deg);
left: 250px;
}
</style>
</head>
<body>
<div class="cdn-accepted-widget">
<div class="logo"><img src="images/canadaecoin.png" width="60" height="60" /></div>
<div class="widget-background">
<div class="tx-input" spellcheck="false">
<input type="text" value="CN53b5pqaFr2ce7CLkhGyuM7KGNHek11Df" onClick="this.select()" />
<button class="copy-btn"><img src="images/copy.png" border="0" title="Copy to Clipboard" /></button>
<a href="Canadaecoin:CN53b5pqaFr2ce7CLkhGyuM7KGNHek11Df" target="_blank">
<img src="images/send-to.ico" border="0" title="Send to Wallet" />
</a>
</div>
<div class="accepted-here">Canada eCoin Accepted Here</div>
</div>
</div>
<script type="text/javascript">
var copyToClip = document.querySelector(".copy-btn");
copyToClip.addEventListener('click', function(event) {
var toCopy = document.querySelector('.tx-input input');
toCopy.select();
try {
var itWorked = document.execCommand('copy');
if( itWorked ) { toCopy.classList.add('copied'); }
} catch(err) {}
});
</script>
</body>
</html>