Skip to content

Commit 741195d

Browse files
Merge pull request #3701 from bitcoin-dot-org/add-js
Add js
2 parents e8b2613 + 5b98c1a commit 741195d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

_includes/templates/index.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
{% comment %} This file is licensed under the MIT License (MIT) available on http://opensource.org/licenses/MIT. {% endcomment
22
%}
33

4-
<div class="legal-notice" style="margin-top: 20px;max-width: 770px;margin: 0 auto;color: black;border-bottom: 1px solid #ececec;display: none;"><p style="font-size: 1.2em;padding: 20px;">On 28 June 2021 the High Court of England and Wales made an order in
4+
<div id="legal-notice" style="margin-top: 20px;max-width: 770px;margin: 0 auto;color: black;border-bottom: 1px solid #ececec;display: none;"><p style="font-size: 1.2em;padding: 20px;">On 28 June 2021 the High Court of England and Wales made an order in
55
Claim No. IL-2021-000008 between Dr Craig Wright and the person or
66
persons responsible for the publication of this website whereby such person
77
or persons were restrained from infringing Dr Wright’s copyright in the
88
Bitcoin White Paper. The claim was not defended, and judgment was entered
99
in default. A copy of the order is available at the following link: <a href="https://bitcoin.org/IL-2021-000008-Wright-v-Cobra.pdf">https://bitcoin.org/IL-2021-000008-Wright-v-Cobra.pdf</a>.</p></div>
1010

11+
<script>
12+
var request = new XMLHttpRequest();
13+
14+
request.open('GET', 'https://bitcoin.org/getip.txt');
15+
16+
request.onreadystatechange = function () {
17+
if (this.readyState === 4) {
18+
if(request.getResponseHeader('geoip_country_code') === "GB") {
19+
document.getElementById("legal-notice").style.display = "block";
20+
}
21+
}
22+
23+
};
24+
25+
request.send();
26+
27+
</script>
28+
1129
<div class="mainhero">
1230
<div class="container hero-container">
1331
<p class="mainsummary">{% translate listintro %}</p>

0 commit comments

Comments
 (0)