-
Notifications
You must be signed in to change notification settings - Fork 0
/
clam.html
115 lines (85 loc) · 2.49 KB
/
clam.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
<!DOCTYPE html>
<html>
<head>
<style>
html *
{
font-size: 20px !important;
color: #000 !important;
font-family: verdana !important;
}
</style>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<p>
</p>
<table style="width:100%">
<tr>
<th>CLAM_BCH</th>
<th>CLAM_DOGE</th>
<th>CLAM_DASH</th>
<th>CLAM_LTC</th>
</tr>
<tr>
<td><p id="CLAM_BCH" ></p><button onclick="copyToClipboard('#CLAM_BCH')">Copy</button></td>
<td><p id="CLAM_DOGE"></p><button onclick="copyToClipboard('#CLAM_DOGE')">Copy</button></td>
<td><p id="CLAM_DASH"></p><button onclick="copyToClipboard('#CLAM_DASH')">Copy</button></td>
<td><p id="CLAM_LTC"></p><button onclick="copyToClipboard('#CLAM_LTC')">Copy</button></td>
</tr>
</table>
<script type="text/javascript">
function copyToClipboard(element) {
var $temp = $("<input>");
$("body").append($temp);
$temp.val($(element).text()).select();
document.execCommand("copy");
$temp.remove();
}
</script>
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("CLAM_BCH").innerHTML = myObj.rate;
}
};
xmlhttp.open("GET", 'https://shapeshift.io/rate/clam_BCH', true);
xmlhttp.send();
</script>
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("CLAM_DASH").innerHTML = myObj.rate;
}
};
xmlhttp.open("GET", 'https://shapeshift.io/rate/clam_DASH', true);
xmlhttp.send();
</script>
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("CLAM_DOGE").innerHTML = myObj.rate;
}
};
xmlhttp.open("GET", 'https://shapeshift.io/rate/clam_DOGE', true);
xmlhttp.send();
</script>
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("CLAM_LTC").innerHTML = myObj.rate;
}
};
xmlhttp.open("GET", 'https://shapeshift.io/rate/clam_LTC', true);
xmlhttp.send();
</script>
</body>
</html>